/[gentoo-x86]/sci-chemistry/icm-browser/icm-browser-3.6.1i.ebuild
Gentoo

Contents of /sci-chemistry/icm-browser/icm-browser-3.6.1i.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 12 21:58:38 2011 UTC (4 years, 1 month ago) by alexxy
Branch: MAIN
Changes since 1.1: +3 -3 lines
[sci-chemistry/icm-browser] Fix bug #370917

(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/icm-browser/icm-browser-3.6.1i.ebuild,v 1.1 2010/05/21 12:33:55 alexxy Exp $
4
5 EAPI="3"
6
7 inherit rpm eutils versionator
8
9 MY_PV=$(replace_version_separator 2 '-' )
10 MY_P="$PN-${MY_PV}"
11 DESCRIPTION="MolSoft LCC ICM Browser"
12 SRC_URI="${MY_P}.i386.rpm"
13 HOMEPAGE="http://www.molsoft.com/icm_browser.html"
14 LICENSE="MolSoft"
15
16 SLOT=0
17 DEPEND="!sci-chemistry/icm
18 amd64? (
19 app-emulation/emul-linux-x86-compat
20 app-emulation/emul-linux-x86-xlibs
21 )
22 x86? (
23 virtual/libstdc++
24 )"
25 RDEPEND="$DEPEND"
26 KEYWORDS="~amd64 ~x86"
27 IUSE=""
28 RESTRICT="fetch"
29 S="${WORKDIR}/usr/${PN}-pro-${MY_PV}"
30
31 pkg_nofetch() {
32 einfo "Please download ${SRC_URI} from "
33 einfo "${HOMEPAGE}"
34 einfo "and move it to ${DISTDIR}"
35 }
36
37 src_unpack() {
38 rpm_src_unpack
39 }
40
41 src_install () {
42 instdir=/opt/icm-browser
43 dodir "${instdir}"
44 dodir "${instdir}/licenses"
45 cp -pPR * "${D}/${instdir}"
46 doenvd "${FILESDIR}/90icm-browser" || die
47 exeinto ${instdir}
48 doexe "${S}/icmbrowserpro" || die
49 doexe "${S}/lmhostid" || die
50 doexe "${S}/txdoc" || die
51 dosym "${instdir}/icmbrowserpro" /opt/bin/icmbrowserpro || die
52 dosym "${instdir}/txdoc" /opt/bin/txdoc || die
53 dosym "${instdir}/lmhostid" /opt/bin/lmhostid || die
54 # make desktop entry
55 doicon "${FILESDIR}"/${PN}.xpm
56 make_desktop_entry "icmbrowserpro -g" "ICM Browser" ${PN} Chemistry
57 }
58
59 pkg_postinst () {
60 einfo
61 einfo "Documentation can be found in ${instdir}/man/"
62 einfo
63 einfo "If you want to upgrade free version of browser to pro version"
64 einfo "you should purchaise license from ${HOMEPAGE} and place it to"
65 einfo "${instdir}/licenses"
66 einfo
67 }

  ViewVC Help
Powered by ViewVC 1.1.20