diff options
author | Brad House <brad_mssw@gentoo.org> | 2003-12-23 16:54:14 +0000 |
---|---|---|
committer | Brad House <brad_mssw@gentoo.org> | 2003-12-23 16:54:14 +0000 |
commit | 0a6da656ae6598dffb970a39332be42843ceba11 (patch) | |
tree | 5ec000834543c2f4fde9c9724e8f7cfc2ca914d5 /dev-java | |
parent | initial commit (diff) | |
download | gentoo-2-0a6da656ae6598dffb970a39332be42843ceba11.tar.gz gentoo-2-0a6da656ae6598dffb970a39332be42843ceba11.tar.bz2 gentoo-2-0a6da656ae6598dffb970a39332be42843ceba11.zip |
1.4.2_rc1 amd64 native
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/blackdown-jdk/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/blackdown-jdk/Manifest | 10 | ||||
-rw-r--r-- | dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild | 141 | ||||
-rw-r--r-- | dev-java/blackdown-jdk/files/digest-blackdown-jdk-1.4.2_rc1 | 1 |
4 files changed, 155 insertions, 5 deletions
diff --git a/dev-java/blackdown-jdk/ChangeLog b/dev-java/blackdown-jdk/ChangeLog index 11e3f7666f5b..27a370412646 100644 --- a/dev-java/blackdown-jdk/ChangeLog +++ b/dev-java/blackdown-jdk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/blackdown-jdk # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/ChangeLog,v 1.43 2003/12/06 17:51:50 strider Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/ChangeLog,v 1.44 2003/12/23 16:54:07 brad_mssw Exp $ + +*blackdown-jdk-1.4.2_rc1 (23 Dec 2003) + + 23 Dec 2003; Brad House <brad_mssw@gentoo.org> + blackdown-jdk-1.4.2_rc1.ebuild: + Add 1.4.2_rc1 native for amd64 06 Dec 2003; Adrian Almenar <strider@gentoo.org> blackdown-jdk-1.3.1-r10.ebuild, blackdown-jdk-1.3.1-r7.ebuild, blackdown-jdk-1.3.1-r8.ebuild, diff --git a/dev-java/blackdown-jdk/Manifest b/dev-java/blackdown-jdk/Manifest index e476beccf32a..ce8f848de78a 100644 --- a/dev-java/blackdown-jdk/Manifest +++ b/dev-java/blackdown-jdk/Manifest @@ -1,10 +1,11 @@ -MD5 0afe65065838a68f0ff6d41e8d76a32c blackdown-jdk-1.3.1-r9.ebuild 2254 -MD5 924dacb195c322a9e663d1795bd4a516 blackdown-jdk-1.3.1-r8.ebuild 2142 +MD5 01eb94f58180b7e1a3ebe099d40f3afb ChangeLog 8077 MD5 d9f4ec84687b629ee09f31d3aca95db3 blackdown-jdk-1.3.1-r10.ebuild 2357 -MD5 878e1be4ff7e416c77a078571e342500 blackdown-jdk-1.4.1.ebuild 3706 -MD5 8d9f50331edec50928ef2f96eb5613bd ChangeLog 7918 MD5 11a92adb9e985c29494d8381ae678cae blackdown-jdk-1.3.1-r7.ebuild 2319 +MD5 924dacb195c322a9e663d1795bd4a516 blackdown-jdk-1.3.1-r8.ebuild 2142 +MD5 0afe65065838a68f0ff6d41e8d76a32c blackdown-jdk-1.3.1-r9.ebuild 2254 +MD5 878e1be4ff7e416c77a078571e342500 blackdown-jdk-1.4.1.ebuild 3706 MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +MD5 550722ed6a7aadca1a705dd84a39d3a0 blackdown-jdk-1.4.2_rc1.ebuild 3256 MD5 5c4af2422d5c3f0e28632481e316ac84 files/blackdown-jdk-1.3.1 734 MD5 44b89d1c2eaaf89d80f4306846a88dcc files/blackdown-jdk-1.4.1 733 MD5 729ed4be8a29fe7d7c3d946b8f14d8d4 files/digest-blackdown-jdk-1.3.1-r10 80 @@ -12,3 +13,4 @@ MD5 f150863fcc96f4ca2d2bdd75f1c0a1c5 files/digest-blackdown-jdk-1.3.1-r7 243 MD5 f150863fcc96f4ca2d2bdd75f1c0a1c5 files/digest-blackdown-jdk-1.3.1-r8 243 MD5 729ed4be8a29fe7d7c3d946b8f14d8d4 files/digest-blackdown-jdk-1.3.1-r9 80 MD5 487f303d5be4535fb85c518938476de5 files/digest-blackdown-jdk-1.4.1 251 +MD5 a1752a941ffea5e1502cdc7cc07c916f files/digest-blackdown-jdk-1.4.2_rc1 78 diff --git a/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild b/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild new file mode 100644 index 000000000000..7ab0084f95f9 --- /dev/null +++ b/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild,v 1.1 2003/12/23 16:54:07 brad_mssw Exp $ + +IUSE="doc" + +inherit java nsplugins + +JREV="rc1" + +JV="${PV}" +JV="${JV/_rc1/}" + +S="${WORKDIR}/j2sdk${JV}" +DESCRIPTION="Blackdown Java Development Kit ${PV}" +J_URI="ftp://ftp.tux.org/pub/java/JDK-${JV}" + +A="j2sdk-${JV}-${JREV}-linux-amd64.bin" +SRC_URI="${J_URI}/amd64/${JREV}/${A}" + +HOMEPAGE="http://www.blackdown.org" + +SLOT="1.4.2" +LICENSE="sun-bcla-java-vm" +KEYWORDS="-* amd64" + +DEPEND="virtual/glibc + >=dev-java/java-config-0.2.6 + doc? ( =dev-java/java-sdk-docs-1.4.1* )" + +PROVIDE="virtual/jdk-1.4.1 + virtual/jre-1.4.1 + virtual/java-scheme-2" + +# Extract the 'skip' value (offset of tarball) we should pass to tail +get_offset() { + [ ! -f "$1" ] && return + + local offset="`gawk ' + /^[[:space:]]*skip[[:space:]]*=/ { + + sub(/^[[:space:]]*skip[[:space:]]*=/, "") + SKIP = $0 + } + + END { print SKIP } + ' $1`" + + eval echo $offset +} + +src_unpack () { + local offset="`get_offset ${DISTDIR}/${A}`" + + if [ -z "${offset}" ] ; then + eerror "Failed to get offset of tarball!" + die "Failed to get offset of tarball!" + fi + + echo ">>> Unpacking ${A}..." + tail -n +${offset} ${DISTDIR}/${A} | tar --no-same-owner -jxp +} + +unpack_jars() +{ + # New to 1.4.2 + local PACKED_JARS="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar jre/lib/ext/localedata.jar jre/lib/plugin.jar jre/javaws/javaws.jar" + local JAVAHOME="${D}/opt/${P}" + local UNPACK_CMD="" + if [ -f "$JAVAHOME/lib/unpack" ]; then + UNPACK_CMD="$JAVAHOME/lib/unpack" + chmod +x "$UNPACK_CMD" + packerror="" + for i in $PACKED_JARS; do + if [ -f "$JAVAHOME/`dirname $i`/`basename $i .jar`.pack" ]; then + einfo "Creating ${JAVAHOME}/${i}\n" + "$UNPACK_CMD" "$JAVAHOME/`dirname $i`/`basename $i .jar`.pack" "$JAVAHOME/$i" + if [ ! -f "$JAVAHOME/$i" ]; then + ewarn "Failed to unpack jar files ${i}. Please refer\n" + ewarn "to the Troubleshooting section of the Installation\n" + ewarn "Instructions on the download page for more information.n" + packerror="1" + fi + rm -f "$JAVAHOME/`dirname $i`/`basename $i .jar`.pack" + fi + done + fi + rm -f "$UNPACK_CMD" +} + +src_install () { + local PLATFORM= + + dodir /opt/${P} + + cp -a ${S}/{bin,jre,lib,man,include} ${D}/opt/${P} + + dodir /opt/${P}/share/java + cp -a ${S}/{demo,src.zip} ${D}/opt/${P}/share + + dodoc COPYRIGHT LICENSE README INSTALL + dohtml README.html + + # Install mozilla plugin + if [ "${ARCH}" = "x86" ] ; then + PLATFORM="i386" + fi + + if [ "${ARCH}" = "amd64" ] ; then + PLATFORM="amd64" + fi + + if [ "${ARCH}" = "sparc" ] ; then + PLATFORM="sparc" + fi + + inst_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/javaplugin_oji.so + + find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \; + + dosed "s/standard symbols l/symbol/g" \ + /opt/${P}/jre/lib/font.properties + + # install env into /etc/env.d + set_java_env ${FILESDIR}/${VMHANDLE} || die + + # Fix for bug 26629 + if [ "${PROFILE_ARCH}" = "sparc64" ] + then + dosym /opt/${P}/jre/lib/sparc /opt/${P}/jre/lib/sparc64 + fi + + unpack_jars +} + +pkg_postinst () { + # Set as default system VM if none exists + java_pkg_postinst + +} + diff --git a/dev-java/blackdown-jdk/files/digest-blackdown-jdk-1.4.2_rc1 b/dev-java/blackdown-jdk/files/digest-blackdown-jdk-1.4.2_rc1 new file mode 100644 index 000000000000..fdcb571a57e4 --- /dev/null +++ b/dev-java/blackdown-jdk/files/digest-blackdown-jdk-1.4.2_rc1 @@ -0,0 +1 @@ +MD5 a6244fa37641d8478c38744c8677aef3 j2sdk-1.4.2-rc1-linux-amd64.bin 33748879 |