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