diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-01-16 19:17:40 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-01-16 19:17:40 +0000 |
commit | 32b7d7c4f13844131d1086e8feeee150ddf48beb (patch) | |
tree | 5c6a689806f944af96860c94244edf716eb8ffc0 /dev-java/sun-j2ee/sun-j2ee-1.3.1-r4.ebuild | |
parent | Bump to 3.5.6 (prerelease). (diff) | |
download | gentoo-2-32b7d7c4f13844131d1086e8feeee150ddf48beb.tar.gz gentoo-2-32b7d7c4f13844131d1086e8feeee150ddf48beb.tar.bz2 gentoo-2-32b7d7c4f13844131d1086e8feeee150ddf48beb.zip |
Migrate to generation 2 so that we can call java-pkg_regjar on the installed jars and don't set a global classpath any more to stop this package from breaking other applications. Fixes bug #154044.
(Portage version: 2.1.2)
Diffstat (limited to 'dev-java/sun-j2ee/sun-j2ee-1.3.1-r4.ebuild')
-rw-r--r-- | dev-java/sun-j2ee/sun-j2ee-1.3.1-r4.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-java/sun-j2ee/sun-j2ee-1.3.1-r4.ebuild b/dev-java/sun-j2ee/sun-j2ee-1.3.1-r4.ebuild new file mode 100644 index 000000000000..f20b7af58147 --- /dev/null +++ b/dev-java/sun-j2ee/sun-j2ee-1.3.1-r4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2007 Gentoo Foundation +# 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-r4.ebuild,v 1.1 2007/01/16 19:17:40 betelgeuse Exp $ + +inherit java-pkg-2 eutils + +MY_PN="j2sdkee" + +DESCRIPTION="Sun's Java 2 Enterprise Edition Development Kit" +SRC_URI="${MY_PN}-1_3_1-linux.tar.gz" +HOMEPAGE="http://java.sun.com/j2ee/sdk_1.3/" +DEPEND=">=sys-libs/lib-compat-1.1" +RDEPEND=">=virtual/jre-1.3.1" +LICENSE="sun-bcla-j2ee" +RESTRICT="fetch" +SLOT="0" +KEYWORDS="~x86 -ppc" +IUSE="doc" + +S=${WORKDIR}/${MY_PN}${PV} + +pkg_nofetch() { + die "Please download ${SRC_URI} from ${HOMEPAGE} to ${DISTDIR}" +} + +src_install() { + local dirs="bin lib conf config cloudscape lib images nativelib repository public_html logs help images xsl" + + dodir /opt/${P} + for i in $dirs ; do + cp -pPR $i ${D}/opt/${P}/ + done + + java-pkg_regjar "${D}"/opt/${P}/lib/*.jar + java-pkg_regjar ${D}/opt/${P}/*/*/*.jar + + dodir /etc/env.d/java + local j2eeenv=${T}/22${P} + cat > $j2eeenv <<-END +PATH=/opt/${P}/bin +J2EE_HOME=/opt/${P} +END + doenvd "${j2eeenv}" + + dodoc LICENSE README || die + + use doc && java-pkg_dohtml -r doc/* +} + +pkg_postinst() { + elog "Remember to set JAVA_HOME before running /opt/${P}/bin/j2ee" + elog "A set of sample configuration files (that work) can be found in /opt/${P}/conf and /opt/${P}/config" +} |