summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2010-05-21 12:33:55 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2010-05-21 12:33:55 +0000
commitb821ec3c6f7b34c30bd3de65b4bfde1ffb17920c (patch)
treecf169c56f4ed1a34c834bb0d14dedeb5f76b9139 /sci-chemistry/icm-browser/icm-browser-3.6.1i.ebuild
parentVersion Bump (diff)
downloadgentoo-2-b821ec3c6f7b34c30bd3de65b4bfde1ffb17920c.tar.gz
gentoo-2-b821ec3c6f7b34c30bd3de65b4bfde1ffb17920c.tar.bz2
gentoo-2-b821ec3c6f7b34c30bd3de65b4bfde1ffb17920c.zip
[sci-chemistry/icm-browser] Version bump
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/icm-browser/icm-browser-3.6.1i.ebuild')
-rw-r--r--sci-chemistry/icm-browser/icm-browser-3.6.1i.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/sci-chemistry/icm-browser/icm-browser-3.6.1i.ebuild b/sci-chemistry/icm-browser/icm-browser-3.6.1i.ebuild
new file mode 100644
index 000000000000..f4b76fa923cd
--- /dev/null
+++ b/sci-chemistry/icm-browser/icm-browser-3.6.1i.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2010 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.1 2010/05/21 12:33:55 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}.png
+ 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
+}