changeset 22:f00d13ecb343

added jrockit ebuild
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 26 May 2008 16:25:10 +0200
parents d371aa5e3d6c
children 41713688d1e0
files dev-java/jrockit-jdk-bin/Manifest dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.6.0.01 dev-java/jrockit-jdk-bin/files/jrockit-jdk-bin-1.6.env dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.6.0.01.ebuild
diffstat 4 files changed, 141 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-java/jrockit-jdk-bin/Manifest	Mon May 26 16:25:10 2008 +0200
@@ -0,0 +1,12 @@
+AUX jrockit-jdk-bin-1.6.env 644 RMD160 11837c6f9475b6c36353687d4a3492f97ba96a62 SHA1 d3b3718b1cd3c0858983ac5d3a3708925ad7a1c3 SHA256 9dcce217e023f750648313d8455f984d548dad7ece4b6b3a79654b67da888379
+MD5 4abbf0dafb3c13e8f5aea75fba42ce59 files/jrockit-jdk-bin-1.6.env 644
+RMD160 11837c6f9475b6c36353687d4a3492f97ba96a62 files/jrockit-jdk-bin-1.6.env 644
+SHA256 9dcce217e023f750648313d8455f984d548dad7ece4b6b3a79654b67da888379 files/jrockit-jdk-bin-1.6.env 644
+DIST jrockit-R27.3.1-jdk1.6.0_01-linux-ia32.bin 108013278 RMD160 3bc37892bc5150dd59f8339b4c78612d9c8dbc4d SHA1 8c5ca933d726224f5b78a6c48c21165ec5568930 SHA256 a2a7f49fb5b2d0052d171c92877d757739881841c61c631192149f57e2803390
+EBUILD jrockit-jdk-bin-1.6.0.01.ebuild 3456 RMD160 9f4c0cd3737e0a336c7f81f932b5cc447e41b42d SHA1 0f303a37718c299f21878952bddfb2d7b5ac37bc SHA256 ca9dbb17ba1a1b343ad0602b9e04a5a35c158c3b40ec9fca8223d0a0de9ef493
+MD5 f1d557f7b674879029a6c954754419d7 jrockit-jdk-bin-1.6.0.01.ebuild 3456
+RMD160 9f4c0cd3737e0a336c7f81f932b5cc447e41b42d jrockit-jdk-bin-1.6.0.01.ebuild 3456
+SHA256 ca9dbb17ba1a1b343ad0602b9e04a5a35c158c3b40ec9fca8223d0a0de9ef493 jrockit-jdk-bin-1.6.0.01.ebuild 3456
+MD5 0a25dd3c0e25871c1e97c1a882c42c89 files/digest-jrockit-jdk-bin-1.6.0.01 316
+RMD160 069d2719d7acd1332e3c2010f777de71e70866e0 files/digest-jrockit-jdk-bin-1.6.0.01 316
+SHA256 e069ea2884b16a62aa60fc35f1c978ef0416fcf8e8a7e7f55e2bb0667bafa457 files/digest-jrockit-jdk-bin-1.6.0.01 316
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.6.0.01	Mon May 26 16:25:10 2008 +0200
@@ -0,0 +1,3 @@
+MD5 293ebf02e4e881bda3dc158fbf5a516a jrockit-R27.3.1-jdk1.6.0_01-linux-ia32.bin 108013278
+RMD160 3bc37892bc5150dd59f8339b4c78612d9c8dbc4d jrockit-R27.3.1-jdk1.6.0_01-linux-ia32.bin 108013278
+SHA256 a2a7f49fb5b2d0052d171c92877d757739881841c61c631192149f57e2803390 jrockit-R27.3.1-jdk1.6.0_01-linux-ia32.bin 108013278
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-java/jrockit-jdk-bin/files/jrockit-jdk-bin-1.6.env	Mon May 26 16:25:10 2008 +0200
@@ -0,0 +1,13 @@
+VERSION="WebLogic JRockit @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="/opt/@P@/jre/lib"
+MANPATH="/opt/@P@/man/"
+PROVIDES_TYPE="JDK JRE"
+PROVIDES_VERSION="1.6"
+BOOTCLASSPATH="${JAVA_HOME}/jre/lib/jrockit.jar:${JAVA_HOME}/jre/lib/managementapi.jar:${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"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.6.0.01.ebuild	Mon May 26 16:25:10 2008 +0200
@@ -0,0 +1,113 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+# WARNING: This is the default VM on ia64, so treat this ebuild
+# with proper care.
+
+# The stripping of symbols seems to mess up the BEA code. Not sure why.
+RESTRICT="strip fetch"
+
+inherit java-vm-2 versionator
+
+PV_MAJOR="$(get_version_component_range 1-3 ${PV})"
+PV_EXTRA="$(get_version_component_range 4 ${PV})"
+UPSTREAM_RELEASE="27.3.1"
+
+SRC_URI_BASE="jrockit-R${UPSTREAM_RELEASE}-jdk${PV_MAJOR}_${PV_EXTRA}-linux-"
+#SRC_URI="x86? ( ${SRC_URI_BASE}ia32.bin )
+#		amd64? ( ${SRC_URI_BASE}x64.bin )
+#		ia64? ( ${SRC_URI_BASE}ipf.bin )"
+SRC_URI="x86? ( ${SRC_URI_BASE}ia32.bin )"
+
+DESCRIPTION="BEA WebLogic's J2SE Development Kit, R${UPSTREAM_RELEASE}"
+
+HOMEPAGE="http://commerce.bea.com/products/weblogicjrockit/jrockit_prod_fam.jsp"
+
+LICENSE="jrockit"
+SLOT="1.6"
+KEYWORDS="-* ~amd64 ~ia64 ~x86"
+IUSE="doc examples"
+
+DEPEND="app-arch/unzip"
+RDEPEND="doc? ( =dev-java/java-sdk-docs-1.5.0* )"
+JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
+
+QA_TEXTRELS_amd64="opt/${P}/mercuryprofiler/lib/sparc-sunos/libprobejni.so
+	opt/${P}/mercuryprofiler/lib/x86-linux/libprobejni.so"
+
+# not working for some reason...
+# because it probably needs WX_LOAD and not EXECSTACK
+QA_EXECSTACK_amd64="opt/${P}/mercuryprofiler/bin/sparc-sunos/systemmetrics
+	opt/${P}/mercuryprofiler/lib/sparc-sunos/libprobejni.so"
+
+QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/jrockit/libjvm.so
+opt/${P}/jre/lib/i386/motif21/libmawt.so
+opt/${P}/jre/lib/i386/libjmapi.so
+opt/${P}/mercuryprofiler/lib/x86-linux/libjvmti.so
+opt/${P}/mercuryprofiler/lib/x86-linux/libprobejni.so
+opt/${P}/mercuryprofiler/lib/sparc-sunos64/libjvmti.so
+opt/${P}/mercuryprofiler/lib/sparc-sunos64/libprobejni.so
+opt/${P}/mercuryprofiler/lib/sparc-sunos/libjvmti.so
+opt/${P}/mercuryprofiler/lib/sparc-sunos/libprobejni.so"
+
+QA_EXECSTACK_x86="opt/${P}/bin/*
+opt/${P}/jre/bin/*
+opt/${P}/jre/lib/i386/jrockit/libjvm.so
+opt/${P}/jre/lib/i386/libnet.so"
+
+QA_WX_LOAD_x86="opt/${P}/mercuryprofiler/bin/sparc-sunos/systemmetrics
+opt/${P}/mercuryprofiler/bin/sparc-sunos/reference_sort
+opt/${P}/mercuryprofiler/lib/sparc-sunos64/libjvmti.so
+opt/${P}/mercuryprofiler/lib/sparc-sunos64/libprobejni.so
+opt/${P}/mercuryprofiler/lib/sparc-sunos/libjvmti.so
+opt/${P}/mercuryprofiler/lib/sparc-sunos/libprobejni.so"
+
+pkg_nofetch() {
+	einfo "Please download ${A} from:"
+	einfo ${HOMEPAGE}
+	einfo "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+	# unpack cannot determine file format
+	# unzip to get more zips
+	unzip ${DISTDIR}/${A} || die
+
+	mkdir ${S} || die
+
+	# this is ugly but don't see any better way
+	# empty jre dir is part of the zip
+	unzip *sdk_no_jre.zip -d ${S} || die
+	# remove so it doesn't affect next unzip
+	rm *sdk_no_jre.zip || die
+	# unpack the jre into its dir
+	unzip *jre.zip -d ${S}/jre || die
+}
+
+src_install() {
+	local dirs="bin include jre lib missioncontrol src.zip"
+
+	insinto "/opt/${P}"
+	for i in ${dirs} ; do
+		doins -r $i || die
+	done
+
+	if use examples; then
+		doins -r demo || die
+		doins -r sample || die
+	fi
+
+	newdoc README.txt README || die
+	dodoc LICENSE || die
+
+	chmod +x ${D}/opt/${P}/bin/* ${D}/opt/${P}/jre/bin/* || die "Could not chmod"
+	set_java_env
+}
+
+pkg_postinst () {
+	# Set as default VM if none exists
+	java-vm-2_pkg_postinst
+	elog "Please review the license agreement in /usr/share/doc/${PF}/LICENSE"
+	elog "If you do not agree to the terms of this license, please uninstall this package"
+}