summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2007-07-05 00:17:58 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2007-07-05 00:17:58 +0000
commit8496fe6acc764e24d1eef9fdf29f88644ac9eede (patch)
tree969b3171b007a96a92dcab689d8d9e3abbad742b
parentAdd check for correct USE flag for x11-libs/gtk+-2. (diff)
downloadgentoo-2-8496fe6acc764e24d1eef9fdf29f88644ac9eede.tar.gz
gentoo-2-8496fe6acc764e24d1eef9fdf29f88644ac9eede.tar.bz2
gentoo-2-8496fe6acc764e24d1eef9fdf29f88644ac9eede.zip
Protecting netscape.jar from removal on amd64.
(Portage version: 2.1.2.9)
-rw-r--r--sci-chemistry/jmol/ChangeLog5
-rw-r--r--sci-chemistry/jmol/files/digest-jmol-11.0.33
-rw-r--r--sci-chemistry/jmol/jmol-11.0.3-r1.ebuild8
-rw-r--r--sci-chemistry/jmol/jmol-11.0.3.ebuild120
4 files changed, 10 insertions, 126 deletions
diff --git a/sci-chemistry/jmol/ChangeLog b/sci-chemistry/jmol/ChangeLog
index 3df06819c855..5a23e6f84eeb 100644
--- a/sci-chemistry/jmol/ChangeLog
+++ b/sci-chemistry/jmol/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sci-chemistry/jmol
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/jmol/ChangeLog,v 1.3 2007/06/22 22:43:14 je_fro Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/jmol/ChangeLog,v 1.4 2007/07/05 00:17:58 je_fro Exp $
+
+ 05 Jul 2007; Jeff Gardner <je_fro@gentoo.org> jmol-11.0.3-r1.ebuild:
+ Protecting netscape.jar from removal on amd64.
22 Jun 2007; Jeff Gardner <je_fro@gentoo.org> jmol-11.0.3-r1.ebuild:
Removing ~amd64 for jmol-11.0.3-r1 because the bundled netscape.jar is still
diff --git a/sci-chemistry/jmol/files/digest-jmol-11.0.3 b/sci-chemistry/jmol/files/digest-jmol-11.0.3
deleted file mode 100644
index 8a749a8f3cc5..000000000000
--- a/sci-chemistry/jmol/files/digest-jmol-11.0.3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 09a589e1fc1099a522b96a7bda16fdd0 jmol-11.0.3-full.tar.gz 13578526
-RMD160 53e34c52d6085635daea74cd9c5787da67ef483e jmol-11.0.3-full.tar.gz 13578526
-SHA256 210eb7d119e53ed0b7f41939321bcfcdb4d7312761d8002e340c83ff49664616 jmol-11.0.3-full.tar.gz 13578526
diff --git a/sci-chemistry/jmol/jmol-11.0.3-r1.ebuild b/sci-chemistry/jmol/jmol-11.0.3-r1.ebuild
index 8bca784581df..a71a7f948d1b 100644
--- a/sci-chemistry/jmol/jmol-11.0.3-r1.ebuild
+++ b/sci-chemistry/jmol/jmol-11.0.3-r1.ebuild
@@ -1,13 +1,13 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/jmol/jmol-11.0.3-r1.ebuild,v 1.2 2007/06/22 22:43:14 je_fro Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/jmol/jmol-11.0.3-r1.ebuild,v 1.3 2007/07/05 00:17:58 je_fro Exp $
inherit eutils webapp java-pkg-2 java-ant-2
DESCRIPTION="Jmol is a java molecular viever for 3-D chemical structures."
SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz"
HOMEPAGE="http://jmol.sourceforge.net/"
-KEYWORDS="~x86"
+KEYWORDS="~x86 ~amd64"
LICENSE="LGPL-2.1"
IUSE="client-only vhosts"
@@ -48,7 +48,11 @@ src_unpack() {
rm -v "${S}"/*.jar "${S}"/plugin-jars/*.jar || die
cd "${S}/jars"
+
+# We still have to use netscape.jar on amd64 until a nice way to include plugin.jar comes along.
+ use amd64 && mv -v netscape.jar netscape.tempjar || die "Failed to move netscape.jar."
rm -v *.jar *.tar.gz || die
+ use amd64 && mv -v netscape.tempjar netscape.jar || die "Failed to move netscape.tempjar."
java-pkg_jar-from vecmath-objectclub vecmath-objectclub.jar vecmath1.2-1.14.jar
java-pkg_jar-from itext iText.jar itext-1.4.5.jar
diff --git a/sci-chemistry/jmol/jmol-11.0.3.ebuild b/sci-chemistry/jmol/jmol-11.0.3.ebuild
deleted file mode 100644
index da4da1858fb0..000000000000
--- a/sci-chemistry/jmol/jmol-11.0.3.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/jmol/jmol-11.0.3.ebuild,v 1.2 2007/06/22 08:30:25 caster Exp $
-
-inherit eutils webapp java-pkg-2 java-ant-2
-
-DESCRIPTION="Jmol is a java molecular viever for 3-D chemical structures."
-SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz"
-HOMEPAGE="http://jmol.sourceforge.net/"
-KEYWORDS="~amd64 ~x86"
-LICENSE="LGPL-2.1"
-
-IUSE="client-only vhosts"
-
-WEBAPP_MANUAL_SLOT="yes"
-SLOT="0"
-SAXON_SLOT="6.5"
-
-RDEPEND=">=virtual/jre-1.4"
-DEPEND=">=virtual/jdk-1.4
- dev-java/ant-core
- dev-java/ant-contrib
- dev-java/commons-cli
- dev-java/itext
- dev-java/junit
- dev-java/gnu-jaxp
- dev-java/sax
- =dev-java/saxon-6.5.5
- sci-libs/jmol-acme
- sci-libs/vecmath-objectclub
- vhosts? ( app-admin/webapp-config )"
-
-pkg_setup() {
-
- if ! use client-only ; then
- webapp_pkg_setup || die "Failed to setup webapp"
- fi
-
- java-pkg-2_pkg_setup
-
-}
-
-src_unpack() {
-
- unpack ${A}
- epatch "${FILESDIR}"/${P}-nointl.patch
- epatch "${FILESDIR}"/${P}-manifest.patch
-
- sed -i -e '/^command=java/a source \/etc\/env.d\/java\/30jmol' "${S}/${PN}" || die "sed failed"
-
- mkdir "${S}"/selfSignedCertificate || die "Failed to create Cert directory."
- cp "${FILESDIR}"/selfSignedCertificate.store "${S}"/selfSignedCertificate/ \
- || die "Failed to install Cert file."
-
-# The only bundled jar we still rely on is netscape.jar.
- cd "${S}/jars"
-
- java-pkg_jar-from --build-only ant-contrib
- java-pkg_jar-from --build-only itext iText.jar itext-1.4.5.jar
- java-pkg_jar-from --build-only junit
- java-pkg_jar-from --build-only gnu-jaxp
- java-pkg_jar-from --build-only saxon-${SAXON_SLOT} saxon.jar saxon.jar
- java-pkg_jar-from --build-only commons-cli-1 commons-cli.jar commons-cli-1.0.jar
- java-pkg_jar-from --build-only jmol-acme jmol-acme.jar Acme.jar
- java-pkg_jar-from --build-only vecmath-objectclub vecmath-objectclub.jar vecmath1.2-1.14.jar
- java-pkg_jar-from --build-only gnu-jaxp gnujaxp.jar gnujaxp-onlysax.jar
-
-}
-
-src_install() {
-
- java-pkg_dojar Jmol.jar JmolApplet.jar
- dohtml -r build/doc/* || die "Failed to install html docs."
- dodoc *.txt doc/*license* || die "Failed to install licenses."
- edos2unix jmol || die "Failed to convert jmol from DOS format."
- dobin jmol || die "Failed to install startup script."
-
- dodir /etc/env.d/java
- cat >> "${D}"/etc/env.d/java/30jmol << EOF
-JMOL_HOME=/usr/share/${PN}/lib
-EOF
-
- if ! use client-only ; then
- webapp_src_preinst || die "Failed webapp_src_preinst."
- cmd="cp Jmol.* "${D}${MY_HTDOCSDIR}"" ; ${cmd} \
- || die "${cmd} failed."
- cmd="cp jmol "${D}${MY_HTDOCSDIR}"" ; ${cmd} \
- || die "${cmd} failed."
- cmd="cp JmolApplet.* "${D}${MY_HTDOCSDIR}"" ; ${cmd} \
- || die "${cmd} failed."
- cmd="cp applet.classes "${D}${MY_HTDOCSDIR}"" ; ${cmd} \
- || die "${cmd} failed."
- cmd="cp -r build/classes/* "${D}${MY_HTDOCSDIR}"" ; ${cmd} \
- || die "${cmd} failed."
- cmd="cp -r build/appjars/* "${D}${MY_HTDOCSDIR}"" ; ${cmd} \
- || die "${cmd} failed."
- cmd="cp "${FILESDIR}"/caffeine.xyz "${D}${MY_HTDOCSDIR}"" ; ${cmd} \
- || die "${cmd} failed."
- cmd="cp "${FILESDIR}"/index.html "${D}${MY_HTDOCSDIR}"" ; ${cmd} \
- || die "${cmd} failed."
-
- webapp_src_install || die "Failed running webapp_src_install"
- fi
-}
-
-pkg_postinst() {
-
- if ! use client-only ; then
- webapp_pkg_postinst || die "webapp_pkg_postinst failed"
- fi
-
-}
-
-pkg_prerm() {
-
- if ! use client-only ; then
- webapp_pkg_prerm || die "webapp_pkg_prerm failed"
- fi
-
-}