summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2012-02-27 12:48:08 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2012-02-27 12:48:08 +0000
commit14ac4e48da9df6afa447309f3a3ca74dfd000842 (patch)
tree96becd58544d3d1c206abbe24ef3cc3396608306 /sci-chemistry/icm
parentUnmask boost and friends (diff)
downloadgentoo-2-14ac4e48da9df6afa447309f3a3ca74dfd000842.tar.gz
gentoo-2-14ac4e48da9df6afa447309f3a3ca74dfd000842.tar.bz2
gentoo-2-14ac4e48da9df6afa447309f3a3ca74dfd000842.zip
[sci-chemistry/icm] Version bump
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/icm')
-rw-r--r--sci-chemistry/icm/ChangeLog7
-rw-r--r--sci-chemistry/icm/icm-3.7.2c.ebuild140
2 files changed, 146 insertions, 1 deletions
diff --git a/sci-chemistry/icm/ChangeLog b/sci-chemistry/icm/ChangeLog
index 5ca13386699e..31869b03db5b 100644
--- a/sci-chemistry/icm/ChangeLog
+++ b/sci-chemistry/icm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-chemistry/icm
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/icm/ChangeLog,v 1.8 2012/02/05 05:59:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/icm/ChangeLog,v 1.9 2012/02/27 12:48:08 alexxy Exp $
+
+*icm-3.7.2c (27 Feb 2012)
+
+ 27 Feb 2012; Alexey Shvetsov <alexxy@gentoo.org> +icm-3.7.2c.ebuild:
+ Version bump
05 Feb 2012; Mike Frysinger <vapier@gentoo.org> icm-3.7.2b.ebuild:
Move to new unpacker eclass for unpack_makeself.
diff --git a/sci-chemistry/icm/icm-3.7.2c.ebuild b/sci-chemistry/icm/icm-3.7.2c.ebuild
new file mode 100644
index 000000000000..6c763dd40e22
--- /dev/null
+++ b/sci-chemistry/icm/icm-3.7.2c.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/icm/icm-3.7.2c.ebuild,v 1.1 2012/02/27 12:48:07 alexxy Exp $
+
+EAPI="4"
+
+inherit eutils unpacker versionator
+
+MY_PV=$(replace_version_separator 2 '-' )
+MY_P="$PN-${MY_PV}"
+
+DESCRIPTION="MolSoft LCC ICM Pro"
+HOMEPAGE="http://www.molsoft.com/icm_pro.html"
+SRC_URI="${MY_P}-linux.sh"
+
+LICENSE="MolSoft"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="32bit 64bit vim-syntax"
+
+REQUIRED_USE="^^ (
+ ( !32bit 64bit )
+ ( 32bit !64bit )
+ ( 32bit 64bit )
+ )"
+
+RESTRICT="fetch"
+
+DEPEND="!sci-chemistry/icm-browser
+ app-arch/unzip
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
+ amd64? (
+ 64bit? (
+ =media-libs/tiff-3*
+ media-libs/libmng
+ app-crypt/mit-krb5
+ app-arch/bzip2
+ media-libs/libpng:1.2
+ media-libs/jpeg:62
+ x11-libs/libdrm
+ x11-libs/libX11
+ sys-apps/keyutils
+ )
+ 32bit? (
+ app-emulation/emul-linux-x86-compat
+ app-emulation/emul-linux-x86-xlibs
+ )
+ )
+ x86? (
+ =media-libs/tiff-3*
+ media-libs/libpng:1.2
+ media-libs/libmng
+ app-crypt/mit-krb5
+ app-arch/bzip2
+ x11-libs/libdrm
+ x11-libs/libX11
+ sys-apps/keyutils
+ )"
+RDEPEND="$DEPEND"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ einfo "Please download ${SRC_URI} from "
+ einfo "${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+ unpack_makeself
+ unpack ./data.tgz
+ rm ./data.tgz
+}
+
+src_install () {
+ instdir=/opt/icm
+ dodir "${instdir}"
+ dodir "${instdir}/licenses"
+ cp -pPR * "${D}/${instdir}"
+ rm "${D}/${instdir}/unzip"
+ doenvd "${FILESDIR}/90icm" || die
+ if use x86; then
+ dosym "${instdir}/icm" /opt/bin/icm || die
+ dosym "${instdir}/icmng" /opt/bin/icmng || die
+ rm "${D}/${instdir}/icm64" || die
+ rm "${D}/${instdir}/icmng64" || die
+ rm "${D}/${instdir}/icmora64" || die
+ rm "${D}/${instdir}/icmora64.bin" || die
+ rm -rf ${D}/${instdir}/lib64 || die
+ elif use amd64; then
+ if use 32bit; then
+ dosym "${instdir}/icm" /opt/bin/icm || die
+ dosym "${instdir}/icmng" /opt/bin/icmng || die
+ fi
+ if use 64bit; then
+ dosym "${instdir}/icm64" /opt/bin/icm64 || die
+ dosym "${instdir}/icmng64" /opt/bin/icmng64 || die
+ fi
+ if ! use 64bit; then
+ rm "${D}/${instdir}/icm64" || die
+ rm "${D}/${instdir}/icmng64" || die
+ rm "${D}/${instdir}/icmora64{,.bin}" || die
+ rm -rf "${D}/${instdir}/lib64" || die
+ fi
+ if ! use 32bit; then
+ rm "${D}/${instdir}/icm" || die
+ rm "${D}/${instdir}/icmng" || die
+ rm "${D}/${instdir}/icmora" || die
+ rm "${D}/${instdir}/icmora.bin" || die
+ rm -rf "${D}/${instdir}/lib32" || die
+ fi
+ fi
+ dosym "${instdir}/txdoc" /opt/bin/txdoc || die
+ dosym "${instdir}/lmhostid" /opt/bin/lmhostid || die
+ # install vim files
+ if use vim-syntax ; then
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${WORKDIR}/icm.vim"
+ insinto /usr/share/vim/vimfiles/syntax
+ doins "${WORKDIR}/icm.vim"
+ rm "${D}/${instdir}/icm.vim" || die
+ fi
+ # make desktop entry
+ doicon "${FILESDIR}/${PN}.xpm"
+ if use x86; then
+ make_desktop_entry "icm -g" "ICM Pro" ${PN} Chemistry
+ elif use amd64; then
+ use 32bit && make_desktop_entry "icm -g" "ICM Pro (32bit)" ${PN} Chemistry
+ use 64bit && make_desktop_entry "icm64 -g" "ICM Pro (64bit)" ${PN} Chemistry
+ fi
+}
+
+pkg_postinst () {
+ einfo
+ einfo "Documentation can be found in ${instdir}/man/"
+ einfo
+ einfo "You will need to place your license in ${instdir}/licenses/"
+ einfo
+
+}