summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Aniszczyk <zx@gentoo.org>2004-03-18 04:37:03 +0000
committerChris Aniszczyk <zx@gentoo.org>2004-03-18 04:37:03 +0000
commitb79c120d34a9b77305e1710d7acae8acfd8b9512 (patch)
tree4f988c4548b43c6e64347924b8ab952be0f6be84 /dev-java/sun-j2ee
parentinitial ebuild #44928 (diff)
downloadgentoo-2-b79c120d34a9b77305e1710d7acae8acfd8b9512.tar.gz
gentoo-2-b79c120d34a9b77305e1710d7acae8acfd8b9512.tar.bz2
gentoo-2-b79c120d34a9b77305e1710d7acae8acfd8b9512.zip
Fix env vars, clean up. Closes #10855
Diffstat (limited to 'dev-java/sun-j2ee')
-rw-r--r--dev-java/sun-j2ee/ChangeLog8
-rw-r--r--dev-java/sun-j2ee/files/digest-sun-j2ee-1.3.10
-rw-r--r--dev-java/sun-j2ee/sun-j2ee-1.3.1-r1.ebuild13
-rw-r--r--dev-java/sun-j2ee/sun-j2ee-1.3.1.ebuild39
4 files changed, 16 insertions, 44 deletions
diff --git a/dev-java/sun-j2ee/ChangeLog b/dev-java/sun-j2ee/ChangeLog
index 7a3f8dea9361..4c3886e59bda 100644
--- a/dev-java/sun-j2ee/ChangeLog
+++ b/dev-java/sun-j2ee/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-java/sun-j2ee
-# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2ee/ChangeLog,v 1.8 2003/05/24 05:36:32 absinthe Exp $
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2ee/ChangeLog,v 1.9 2004/03/18 04:37:02 zx Exp $
+
+ 17 Mar 2004; Chris Aniszczyk <zx@gentoo.org> sun-j2ee-1.3.1-r1.ebuild:
+ Properly set up env vars. Closes #10855. Thanks Michael Smith
+ <masst181@pitt.edu>
24 May 2003; Dylan Carlson <absinthe@gentoo.org> sun-j2ee-1.3.1-r1.ebuild,
sun-j2ee-1.3.1.ebuild:
diff --git a/dev-java/sun-j2ee/files/digest-sun-j2ee-1.3.1 b/dev-java/sun-j2ee/files/digest-sun-j2ee-1.3.1
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/dev-java/sun-j2ee/files/digest-sun-j2ee-1.3.1
+++ /dev/null
diff --git a/dev-java/sun-j2ee/sun-j2ee-1.3.1-r1.ebuild b/dev-java/sun-j2ee/sun-j2ee-1.3.1-r1.ebuild
index b1c999c19c60..ed45291fa7b8 100644
--- a/dev-java/sun-j2ee/sun-j2ee-1.3.1-r1.ebuild
+++ b/dev-java/sun-j2ee/sun-j2ee-1.3.1-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2ee/sun-j2ee-1.3.1-r1.ebuild,v 1.4 2003/09/06 22:26:46 msterret Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2ee/sun-j2ee-1.3.1-r1.ebuild,v 1.5 2004/03/18 04:37:03 zx Exp $
At=j2sdkee-1_3_1-linux.tar.gz
S=${WORKDIR}/j2sdkee1.3.1
@@ -31,13 +31,20 @@ src_install () {
cp -a $i ${D}/opt/${P}/
done
+ # Setup env vars
+ addwrite /etc/env.d/29${P}
+ j2eeenv=/etc/env.d/29${P}
+ echo "CLASSPATH=/opt/${P}/lib/j2ee.jar" > $j2eeenv
+ echo "PATH=/opt/${P}/bin" >> $j2eeenv
+ echo "J2EE_HOME=/opt/${P}" >> $j2eeenv
dodoc LICENSE README
+
if [ -n "`use doc`" ] ; then
dohtml -r doc/*
fi
}
-src_postinst() {
+pkg_postinst() {
einfo "Remember to set JAVA_HOME before running /opt/${P}/bin/j2ee"
einfo "A set of sample configuration files (that work) can be found in /opt/${P}/conf and /opt/${P}/config"
}
diff --git a/dev-java/sun-j2ee/sun-j2ee-1.3.1.ebuild b/dev-java/sun-j2ee/sun-j2ee-1.3.1.ebuild
deleted file mode 100644
index 43cde9a61844..000000000000
--- a/dev-java/sun-j2ee/sun-j2ee-1.3.1.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2ee/sun-j2ee-1.3.1.ebuild,v 1.10 2003/09/06 22:26:46 msterret Exp $
-
-At=j2sdkee-1_3_1-linux.tar.gz
-S=${WORKDIR}/j2sdkee1.3.1
-DESCRIPTION="Sun's Java 2 Enterprise Edition Development Kit"
-SRC_URI=""
-HOMEPAGE="http://java.sun.com/j2ee/download.html#sdk"
-DEPEND="virtual/glibc"
-RDEPEND=">=virtual/jre-1.3.1"
-PROVIDE="virtual/j2ee-1.3.1"
-LICENSE="sun-bcla-j2ee"
-SLOT="0"
-KEYWORDS="x86 -ppc"
-
-src_unpack() {
- if [ ! -f ${DISTDIR}/${At} ] ; then
- die "Please download ${At} from ${HOMEPAGE} to ${DISTDIR}"
- fi
- unpack ${At}
-}
-
-src_install () {
- local dirs="bin lib conf config cloudscape lib images nativelib repository public_html logs help images"
-
- dodir /opt/${P}
- for i in $dirs ; do
- cp -a $i ${D}/opt/${P}/
- done
-
- dodoc LICENSE README
- dohtml -r doc/*
-}
-
-src_postinst() {
- einfo "Remember to set JAVA_HOME before running /opt/${P}/bin/j2ee"
- einfo "A set of sample configuration files (that work) can be found in /opt/${P}/conf and /opt/${P}/config"
-}