summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2009-11-05 20:59:06 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2009-11-05 20:59:06 +0000
commit1e7c47c6c84c8c062d6c97d9cf8e9cdafa903add (patch)
tree1977b4f629f7ae9dc4a2428f9bddeddd9bdf3a02 /sci-chemistry/icm
parent[sci-chemistry/icm-browser] Add icm-browser (diff)
downloadgentoo-2-1e7c47c6c84c8c062d6c97d9cf8e9cdafa903add.tar.gz
gentoo-2-1e7c47c6c84c8c062d6c97d9cf8e9cdafa903add.tar.bz2
gentoo-2-1e7c47c6c84c8c062d6c97d9cf8e9cdafa903add.zip
[sci-chemistry/icm] Add icm
(Portage version: 2.2_rc48/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/icm')
-rw-r--r--sci-chemistry/icm/ChangeLog10
-rw-r--r--sci-chemistry/icm/files/90icm3
-rw-r--r--sci-chemistry/icm/files/icm.pngbin0 -> 7075 bytes
-rw-r--r--sci-chemistry/icm/icm-3.6.1g.ebuild68
-rw-r--r--sci-chemistry/icm/metadata.xml9
5 files changed, 90 insertions, 0 deletions
diff --git a/sci-chemistry/icm/ChangeLog b/sci-chemistry/icm/ChangeLog
new file mode 100644
index 000000000000..e34cc24df9fb
--- /dev/null
+++ b/sci-chemistry/icm/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-chemistry/icm
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/icm/ChangeLog,v 1.1 2009/11/05 20:59:05 alexxy Exp $
+
+*icm-3.6.1g (05 Nov 2009)
+
+ 05 Nov 2009; Alexey Shvetsov <alexxy@gentoo.org> +files/90icm,
+ +icm-3.6.1g.ebuild, +files/icm.png, +metadata.xml:
+ Initial import
+
diff --git a/sci-chemistry/icm/files/90icm b/sci-chemistry/icm/files/90icm
new file mode 100644
index 000000000000..ce8966c406c3
--- /dev/null
+++ b/sci-chemistry/icm/files/90icm
@@ -0,0 +1,3 @@
+ICMHOME=/opt/icm
+LM_LICENSE_FILE=/opt/icm/licenses/license.dat
+MANPATH=/opt/icm/man
diff --git a/sci-chemistry/icm/files/icm.png b/sci-chemistry/icm/files/icm.png
new file mode 100644
index 000000000000..2ded11676e10
--- /dev/null
+++ b/sci-chemistry/icm/files/icm.png
Binary files differ
diff --git a/sci-chemistry/icm/icm-3.6.1g.ebuild b/sci-chemistry/icm/icm-3.6.1g.ebuild
new file mode 100644
index 000000000000..279c12e484fc
--- /dev/null
+++ b/sci-chemistry/icm/icm-3.6.1g.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/icm/icm-3.6.1g.ebuild,v 1.1 2009/11/05 20:59:05 alexxy Exp $
+
+inherit rpm eutils versionator
+
+MY_PV=$(replace_version_separator 2 '-' )
+MY_P="$PN-${MY_PV}"
+DESCRIPTION="MolSoft LCC ICM Pro"
+SRC_URI="${MY_P}.i386.rpm"
+HOMEPAGE="http://www.molsoft.com/icm_pro.html"
+LICENSE="MolSoft"
+
+SLOT=0
+
+DEPEND="!sci-chemistry/icm-browser
+ 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/${MY_P}"
+
+pkg_nofetch() {
+ einfo "Please download ${SRC_URI} from "
+ einfo "${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+ rpm_src_unpack
+ cd "${S}" || die
+}
+
+src_install () {
+ instdir=/opt/icm
+ dodir "${instdir}"
+ dodir "${instdir}/licenses"
+ cp -pPR * "${D}/${instdir}"
+ doenvd "${FILESDIR}/90icm" || die
+ exeinto ${instdir}
+ doexe "${S}/icm" || die
+ doexe "${S}/lmhostid" || die
+ doexe "${S}/txdoc" || die
+ dosym "${instdir}/icm" /opt/bin/icm || 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 "icm -g" "ICM Pro" ${PN}.png Chemistry
+}
+
+pkg_postinst () {
+ einfo
+ einfo "Documentation can be found in ${instdir}/man/"
+ einfo
+ einfo "You will need to place your license in ${instdir}/licenses/"
+ einfo
+
+}
diff --git a/sci-chemistry/icm/metadata.xml b/sci-chemistry/icm/metadata.xml
new file mode 100644
index 000000000000..3cfdd8f68922
--- /dev/null
+++ b/sci-chemistry/icm/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-chemistry</herd>
+<maintainer>
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+</maintainer>
+</pkgmetadata>