summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@howl.(none)>2008-06-08 12:21:10 -0400
committerroot <root@howl.(none)>2008-06-08 12:21:10 -0400
commit94aa7925538c2a37e81ed6bc2b3caa9cb99085e2 (patch)
tree9368663eaf77dfcae8af7908e9d1f946c0ca2548 /dev-java
parentFix typos (diff)
downloadeatnumber1-94aa7925538c2a37e81ed6bc2b3caa9cb99085e2.tar.gz
eatnumber1-94aa7925538c2a37e81ed6bc2b3caa9cb99085e2.tar.bz2
eatnumber1-94aa7925538c2a37e81ed6bc2b3caa9cb99085e2.zip
Add alpha sun-jdk-1.7 ebuild.
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/sun-jdk/Manifest5
-rw-r--r--dev-java/sun-jdk/files/sun-jdk-1.6.0.02.env17
-rw-r--r--dev-java/sun-jdk/files/sun-jdk-1.7.env17
-rw-r--r--dev-java/sun-jdk/sun-jdk-1.7.0.0_alpha28.ebuild170
4 files changed, 209 insertions, 0 deletions
diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest
new file mode 100644
index 0000000..015b13a
--- /dev/null
+++ b/dev-java/sun-jdk/Manifest
@@ -0,0 +1,5 @@
+AUX sun-jdk-1.6.0.02.env 925 RMD160 cac1306ba6dd05dcf74fb2e536bf40bd3f03bee1 SHA1 02587c415e0dffefdf8900fad5884d2bd604056c SHA256 8fd2d12405a41b923b3c64d56b9e42a89d2479323fd78703f2b065fb0ee7ec2b
+AUX sun-jdk-1.7.env 925 RMD160 f20078640a13176763381811e2050d0b9cd0ca1e SHA1 e2ef76e945eb3b4a34c4edfcf6376c58a54697b7 SHA256 95689b9bc21a9d571f556da0c6377c326bd2d24bc71f0b32f9bdc836c90cf581
+DIST jdk-7-ea-bin-b28-linux-i586-05_jun_2008.bin 61420621 RMD160 716cb9833b30e11ee6527ed24a80345a7272e750 SHA1 c8c3f2e8373024724c0866a7608c9c000c6a312c SHA256 c845dbf28868b55609786d7443302f4e7e31d80e3bc53f75ec2e17ffe5b23ae7
+DIST jdk-7-ea-bin-b28-linux-x64-05_jun_2008.bin 55058270 RMD160 0310dd1156b1f030e13ebbd4ac2ee713e85a078a SHA1 c2fca5b17f388f716cdfe378bf007287182ab3ef SHA256 05703526c013253ca9d0f0221f9f1c53539f2eccffb7e928a4d835b23b75e2ef
+EBUILD sun-jdk-1.7.0.0_alpha28.ebuild 4924 RMD160 04dd2b00c2c7128cd12fc23582ee5392e858b469 SHA1 5c731410b621173ec32b4168fb1f84635122e1dc SHA256 00adc26ad86199f49fda2200626cc40820923666fc299da4fdd2505e845e8a6e
diff --git a/dev-java/sun-jdk/files/sun-jdk-1.6.0.02.env b/dev-java/sun-jdk/files/sun-jdk-1.6.0.02.env
new file mode 100644
index 0000000..dcbac3e
--- /dev/null
+++ b/dev-java/sun-jdk/files/sun-jdk-1.6.0.02.env
@@ -0,0 +1,17 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/files/sun-jdk-1.6.env,v 1.1 2006/12/13 22:54:28 caster Exp $
+
+VERSION="Sun JDK @PV@"
+JAVA_HOME=/opt/@P@
+JDK_HOME=/opt/@P@
+JAVAC=${JAVA_HOME}/bin/javac
+PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
+ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
+LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
+MANPATH="/opt/@P@/man"
+PROVIDES_TYPE="JDK JRE"
+PROVIDES_VERSION="1.6"
+BOOTCLASSPATH="${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/i18n.jar:${JAVA_HOME}/jre/lib/sunrsasign.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar"
+GENERATION="2"
+ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
diff --git a/dev-java/sun-jdk/files/sun-jdk-1.7.env b/dev-java/sun-jdk/files/sun-jdk-1.7.env
new file mode 100644
index 0000000..c1875ee
--- /dev/null
+++ b/dev-java/sun-jdk/files/sun-jdk-1.7.env
@@ -0,0 +1,17 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/files/sun-jdk-1.5.env,v 1.1 2006/06/25 20:06:24 nichoj Exp $
+
+VERSION="Sun JDK @PV@"
+JAVA_HOME=/opt/@P@
+JDK_HOME=/opt/@P@
+JAVAC=${JAVA_HOME}/bin/javac
+PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
+ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
+LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
+MANPATH="/opt/@P@/man"
+PROVIDES_TYPE="JDK JRE"
+PROVIDES_VERSION="1.7"
+BOOTCLASSPATH="${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/i18n.jar:${JAVA_HOME}/jre/lib/sunrsasign.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar"
+GENERATION="2"
+ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
diff --git a/dev-java/sun-jdk/sun-jdk-1.7.0.0_alpha28.ebuild b/dev-java/sun-jdk/sun-jdk-1.7.0.0_alpha28.ebuild
new file mode 100644
index 0000000..f77e210
--- /dev/null
+++ b/dev-java/sun-jdk/sun-jdk-1.7.0.0_alpha28.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.5.0.05.ebuild,v 1.2 2005/10/10 16:23:12 betelgeuse Exp $
+
+inherit java-vm-2 eutils pax-utils
+
+MY_PV=${PV/_beta*/}
+MY_PVL=${MY_PV%.*}_${MY_PV##*.}
+MY_PVA=${MY_PV//./_}
+ALPHA=${PV#*_alpha}
+DATE="05_jun_2008"
+MY_RPV=${MY_PV%.*}
+
+
+BASE_URL="http://download.java.net/jdk7/binaries/"
+x86file="jdk-7-ea-bin-b${ALPHA}-linux-i586-${DATE}.bin"
+amd64file="jdk-7-ea-bin-b${ALPHA}-linux-x64-${DATE}.bin"
+
+S="${WORKDIR}/jdk${MY_RPV}"
+DESCRIPTION="Sun's Java Development Kit"
+HOMEPAGE="https://jdk7.dev.java.net/"
+SRC_URI="x86? ( ${BASE_URL}/$x86file ) amd64? ( ${BASE_URL}/$amd64file )"
+SLOT="1.7"
+LICENSE="sun-prerelease-jdk7"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="nostrip"
+IUSE="X alsa doc nsplugin examples"
+
+DEPEND="sys-apps/sed"
+
+RDEPEND="doc? ( =dev-java/java-sdk-docs-1.6.0* )
+ alsa? ( media-libs/alsa-lib )
+ x86? ( =virtual/libstdc++-3.3 )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXtst
+ )
+ "
+
+JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
+
+QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/server/libjvm.so
+ opt/${P}/jre/lib/i386/client/libjvm.so
+ opt/${P}/jre/lib/i386/motif21/libmawt.so
+ opt/${P}/jre/lib/i386/libdeploy.so"
+
+pkg_nofetch() {
+ einfo "Please download:"
+ einfo "${A} from ${BASE_URL}${A}"
+ einfo "Then place it in ${DISTDIR}"
+ einfo "tip: wget ${BASE_URL}${A} -O ${DISTDIR}/${A}"
+
+ ewarn "By downloading and installing, you are agreeing to the terms"
+ ewarn "of Sun's prerelease license."
+}
+
+src_unpack() {
+ # Do a little voodoo to extract the distfile
+ # Find the ELF in the script
+ testExp=$(echo -e '\0105\0114\0106')
+ startAt=$(grep -aonm 1 ${testExp} ${DISTDIR}/${A} | cut -d: -f1)
+ # Extract and run it
+ tail -n +${startAt} ${DISTDIR}/${A} > install.sfx
+ chmod +x install.sfx
+ ./install.sfx >/dev/null || die
+ rm install.sfx
+
+ 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/lib/javaws.jar jre/lib/deploy.jar"
+
+ if [ -f ${S}/bin/unpack200 ]; then
+ UNPACK_CMD=${S}/bin/unpack200
+ chmod +x $UNPACK_CMD
+ sed -i 's#/tmp/unpack.log#/dev/null\x00\x00\x00\x00\x00\x00#g' $UNPACK_CMD
+ for i in $packed_jars; do
+ PACK_FILE=${S}/$(dirname $i)/$(basename $i .jar).pack
+ if [ -f ${PACK_FILE} ]; then
+ echo " unpacking: $i"
+ $UNPACK_CMD ${PACK_FILE} ${S}/$i
+ rm -f ${PACK_FILE}
+ fi
+ done
+ rm -f ${UNPACK_CMD}
+ else
+ die "unpack not found"
+ fi
+ ${S}/bin/java -client -Xshare:dump
+}
+
+src_install() {
+ local dirs="bin include jre lib man"
+
+ # Set PaX markings on all JDK/JRE executables to allow code-generation on
+ # the heap by the JIT compiler.
+ pax-mark m $(list-paxables ${S}{,/jre}/bin/*)
+
+ dodir /opt/${P}
+
+ cp -pPR ${dirs} "${D}/opt/${P}/" || die "failed to copy"
+ dodoc COPYRIGHT LICENSE README.html || die
+ dohtml README.html || die
+ dodir /opt/${P}/share/
+
+ if use examples; then
+ cp -pPR demo sample ${D}/opt/${P}/share/ || die
+ fi
+ cp -pPR src.zip ${D}/opt/${P}/ || die
+
+ if use nsplugin; then
+ local plugin_dir="ns7-gcc29"
+ if has_version '>=sys-devel/gcc-3' ; then
+ plugin_dir="ns7"
+ fi
+
+ if use x86 ; then
+ install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
+ else
+ eerror "No plugin available for amd64 arch"
+ fi
+ fi
+
+ # create dir for system preferences
+ dodir /opt/${P}/jre/.systemPrefs
+ # Create files used as storage for system preferences.
+ touch ${D}/opt/${P}/jre/.systemPrefs/.system.lock
+ chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.system.lock
+ touch ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile
+ chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile
+
+ # install control panel for Gnome/KDE
+ sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \
+ -e "s/\(Name=Java\)/\1 Control Panel/" \
+ ${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop > \
+ ${T}/sun_java-${SLOT}.desktop
+
+ domenu ${T}/sun_java-${SLOT}.desktop
+
+ set_java_env
+}
+
+pkg_postinst() {
+ # Set as default VM if none exists
+ java-vm-2_pkg_postinst
+
+ if ! use X; then
+ local xwarn="virtual/x11 and/or"
+ fi
+
+ echo
+ ewarn "Some parts of Sun's JDK require ${xwarn} virtual/lpr to be installed."
+ ewarn "Be careful which Java libraries you attempt to use."
+
+ echo
+ einfo " Be careful: ${P}'s Java compiler uses"
+ einfo " '-source 1.7' as default. This means that some keywords "
+ einfo " such as 'enum' are not valid identifiers any more in that mode,"
+ einfo " which can cause incompatibility with certain sources."
+ einfo " Additionally, some API changes may cause some breakages."
+ echo
+ elog "Beginning with 1.5.0.10 the hotspot vm can use epoll"
+ elog "The epoll-based implementation of SelectorProvider is not selected by"
+ elog "default."
+ elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider"
+ elog ""
+}