From debca7cc25187438cdc2b3f725a1e03837a546ba Mon Sep 17 00:00:00 2001 From: Vlastimil Babka Date: Fri, 20 Apr 2007 11:53:30 +0000 Subject: [PATCH] Version bump, bug #175095. Thanks to Marat Radchenko for initial work in the overlay. Introduces examples USE flag to install demos and doc flag that pulls java-sdk-docs, for consistency with other JDK's in the tree. Package-Manager: portage-2.1.2.4 --- dev-java/jrockit-jdk-bin/ChangeLog | 20 +++- dev-java/jrockit-jdk-bin/Manifest | 27 ++++- .../files/digest-jrockit-jdk-bin-1.4.2.13 | 6 + .../files/digest-jrockit-jdk-bin-1.5.0.10 | 9 ++ .../jrockit-jdk-bin-1.4.2.13.ebuild | 85 ++++++++++++++ .../jrockit-jdk-bin-1.5.0.10.ebuild | 111 ++++++++++++++++++ 6 files changed, 253 insertions(+), 5 deletions(-) create mode 100644 dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.4.2.13 create mode 100644 dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.5.0.10 create mode 100644 dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.4.2.13.ebuild create mode 100644 dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.5.0.10.ebuild diff --git a/dev-java/jrockit-jdk-bin/ChangeLog b/dev-java/jrockit-jdk-bin/ChangeLog index 5a20cb8a9d97..85576b8fc586 100644 --- a/dev-java/jrockit-jdk-bin/ChangeLog +++ b/dev-java/jrockit-jdk-bin/ChangeLog @@ -1,6 +1,24 @@ # ChangeLog for dev-java/jrockit-jdk-bin # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jrockit-jdk-bin/ChangeLog,v 1.32 2007/01/05 16:39:35 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jrockit-jdk-bin/ChangeLog,v 1.33 2007/04/20 11:53:30 caster Exp $ + +*jrockit-jdk-bin-1.5.0.10 (20 Apr 2007) + + 20 Apr 2007; Vlastimil Babka + +jrockit-jdk-bin-1.4.2.13.ebuild, +jrockit-jdk-bin-1.5.0.10.ebuild: + Version bump, bug #175095. Thanks to Marat Radchenko for + initial work in the overlay. Introduces examples USE flag to install demos + and doc flag that pulls java-sdk-docs, for consistency with other JDK's in + the tree. + +*jrockit-jdk-bin-1.4.2.13 (20 Apr 2007) + + 20 Apr 2007; Vlastimil Babka + +jrockit-jdk-bin-1.4.2.13.ebuild: + Version bump, bug #175095. Thanks to Marat Radchenko for + initial work in the overlay. Introduces examples USE flag to install demos + and doc flag that pulls java-sdk-docs, for consistency with other JDK's in + the tree. 05 Jan 2007; Vlastimil Babka jrockit-jdk-bin-1.4.2.11.ebuild, jrockit-jdk-bin-1.5.0.06-r1.ebuild: diff --git a/dev-java/jrockit-jdk-bin/Manifest b/dev-java/jrockit-jdk-bin/Manifest index 4c76c4a0bfc4..7c9be075b7bc 100644 --- a/dev-java/jrockit-jdk-bin/Manifest +++ b/dev-java/jrockit-jdk-bin/Manifest @@ -19,18 +19,31 @@ DIST jrockit-R26.4.0-jdk1.4.2_11-linux-ipf.bin 52115652 RMD160 d19410fc59ba0e870 DIST jrockit-R26.4.0-jdk1.5.0_06-linux-ia32.bin 79566326 RMD160 c7952d999dc23c786c99ca3a71758e13d67178b2 SHA1 3638d63cea88b6076e4ff507574a74137ea7f6ac SHA256 e05f6d2d8ed8f49a1a33cd0aabdf9ea47eb059fdae9c661fed5e44d59daa8f0b DIST jrockit-R26.4.0-jdk1.5.0_06-linux-ipf.bin 82421675 RMD160 866bfb102884dffd3c85f7c6bce696e7963b0183 SHA1 09fbcbea768c93e749b329d59ca76b8d4d9707ce SHA256 e38b50ebe92018b1c8af10aa8154c88e268dbf1d66c4db02e69fcfcba923169c DIST jrockit-R26.4.0-jdk1.5.0_06-linux-x64.bin 80216552 RMD160 e144d5ff74cfdf39fb0ac640f253ffb6a28c3b54 SHA1 18a983ba2acc84cf1de1ec89c3fb805e0c516f60 SHA256 e2e31d626c0d216e6915f3b018ffc02930978957b41020fd3a1c7af84d60874f +DIST jrockit-R27.2.0-jdk1.4.2_13-linux-ia32.bin 75189994 RMD160 0297b05252c8d74a7ee3cc0c453499d8bf833a33 SHA1 c549dc056449f1fb207dd958bc7a39fa2f7448f5 SHA256 9f5c5bae7a199b751c00017432ee37077c856ebf811044621b9af5ac0292d38d +DIST jrockit-R27.2.0-jdk1.4.2_13-linux-ipf.bin 47627876 RMD160 2d5f9247a52ea8999378e6698ac1c754f76077b2 SHA1 3ba3e9cc4f44d3d0ca59aa2488197425925b7437 SHA256 acf95a26da94ed05bb99354e958996dbe76db6eb6374872e7add6d28e4de007b +DIST jrockit-R27.2.0-jdk1.5.0_10-linux-ia32.bin 122196072 RMD160 4dfea51f73f655332e0ec74bf4fccb541b3c6f10 SHA1 84c908f855d71532134c0113cd1677c8e790dc82 SHA256 7405fbe7ea07581ef1368cc41165eb3eef9bda25450a7fc81fc9ef1cd29f5057 +DIST jrockit-R27.2.0-jdk1.5.0_10-linux-ipf.bin 93844561 RMD160 f9f82fb7a36412ff1f1c4f8f291674919763e060 SHA1 9fe5fa3136b7496bfaafa3968d622dfab4f5e198 SHA256 e49f4bcb027294a4866b1ff428c5d1225161392d7f70624f25199bf429fd9e4e +DIST jrockit-R27.2.0-jdk1.5.0_10-linux-x64.bin 122849203 RMD160 c6a29c845fd9b5fb9fab8754be90c33351a88a68 SHA1 cbb7b0a5c70bad4acdb19982e37da38fbcf7b6d1 SHA256 82d1bda46bac794f65e7c97c03e332e318070cd20ca427cc73ca987f07cd72e8 EBUILD jrockit-jdk-bin-1.4.2.11.ebuild 1812 RMD160 a862f8a19609eacf6a1c6b1748f39f2b1116eec2 SHA1 0028c4aa36bdf4392b7a482dfceb35c9cf8fe046 SHA256 80bece6af77b7ff4fa203268e83bad3315ee9576b4e6ac2ecbc5add5e76a0574 MD5 53218d48c7a24c65033d7bc190411e57 jrockit-jdk-bin-1.4.2.11.ebuild 1812 RMD160 a862f8a19609eacf6a1c6b1748f39f2b1116eec2 jrockit-jdk-bin-1.4.2.11.ebuild 1812 SHA256 80bece6af77b7ff4fa203268e83bad3315ee9576b4e6ac2ecbc5add5e76a0574 jrockit-jdk-bin-1.4.2.11.ebuild 1812 +EBUILD jrockit-jdk-bin-1.4.2.13.ebuild 2415 RMD160 28fb6d1d4ff8e09914bb2415a4cc85c7927c6973 SHA1 18a2f628bbac5486ca7b6a9389f4ab2c8573e2bb SHA256 9a460e66275a86ffbae23732966d8ef93b11a2fbbcc15072737f23a8abf8037d +MD5 060e3e02217cf8955f2360228023f87e jrockit-jdk-bin-1.4.2.13.ebuild 2415 +RMD160 28fb6d1d4ff8e09914bb2415a4cc85c7927c6973 jrockit-jdk-bin-1.4.2.13.ebuild 2415 +SHA256 9a460e66275a86ffbae23732966d8ef93b11a2fbbcc15072737f23a8abf8037d jrockit-jdk-bin-1.4.2.13.ebuild 2415 EBUILD jrockit-jdk-bin-1.5.0.06-r1.ebuild 2219 RMD160 0d8dc4202336d5536caa3407fd7433e371e2bbd3 SHA1 bcd99e813f2ffa9a95c6ae8311117b99538ad520 SHA256 7cad1614c2d772ee126c033038996721393098dcd00f3cfdb48e4e4061de4c5b MD5 e1cc6ec2ff9631b4e6aec98616cd8092 jrockit-jdk-bin-1.5.0.06-r1.ebuild 2219 RMD160 0d8dc4202336d5536caa3407fd7433e371e2bbd3 jrockit-jdk-bin-1.5.0.06-r1.ebuild 2219 SHA256 7cad1614c2d772ee126c033038996721393098dcd00f3cfdb48e4e4061de4c5b jrockit-jdk-bin-1.5.0.06-r1.ebuild 2219 -MISC ChangeLog 6568 RMD160 fa6c079d0c36010151f84a039e85f51c4ae65bf1 SHA1 07f85313276976f66bf98e34cf6af3de80410598 SHA256 c98a2aefc783c1812fe9e94a30b1c4aa95ddd3f8f79a70b70bea681fbcbc63bd -MD5 3c6e4365d252f2603ccf04bee2f07f51 ChangeLog 6568 -RMD160 fa6c079d0c36010151f84a039e85f51c4ae65bf1 ChangeLog 6568 -SHA256 c98a2aefc783c1812fe9e94a30b1c4aa95ddd3f8f79a70b70bea681fbcbc63bd ChangeLog 6568 +EBUILD jrockit-jdk-bin-1.5.0.10.ebuild 3547 RMD160 a231fb22b0bc63c92c8e2fabbe3cab61a21c92d1 SHA1 6e398aab2e0ad46c56df6198c7125e86c5ddbfba SHA256 ffc0ebbd5e146a6bc5f7deb6998c8cf8afed4950527fbb30331f0570a70c074e +MD5 8773648164be6d93951a2aff06702702 jrockit-jdk-bin-1.5.0.10.ebuild 3547 +RMD160 a231fb22b0bc63c92c8e2fabbe3cab61a21c92d1 jrockit-jdk-bin-1.5.0.10.ebuild 3547 +SHA256 ffc0ebbd5e146a6bc5f7deb6998c8cf8afed4950527fbb30331f0570a70c074e jrockit-jdk-bin-1.5.0.10.ebuild 3547 +MISC ChangeLog 7348 RMD160 836dc6fecf037ecdd7eef08a205a4a59aa6732f2 SHA1 7b7780848f735ba7feeb2e6159cd1b56a23e5549 SHA256 433da7b4ec98b1a3fe8377f3abeb7ec8ac4213d9050beda728e5ab124dd37a1e +MD5 b06cbbf24a2d1dcb6c993c9b1471b424 ChangeLog 7348 +RMD160 836dc6fecf037ecdd7eef08a205a4a59aa6732f2 ChangeLog 7348 +SHA256 433da7b4ec98b1a3fe8377f3abeb7ec8ac4213d9050beda728e5ab124dd37a1e ChangeLog 7348 MISC metadata.xml 554 RMD160 0ac4d0bc8bab37fde093b976e361be52d32e8c05 SHA1 a2e1bcf7bb8bc7261d8c3a11f13de05c16663eb3 SHA256 df88a1321bc4fd8d9b8d36696fb7147d3cc6bbb2c35a046be8a9eb89aaffb0c3 MD5 44f00b9f278d0941a4820ce56f0fefe1 metadata.xml 554 RMD160 0ac4d0bc8bab37fde093b976e361be52d32e8c05 metadata.xml 554 @@ -38,6 +51,12 @@ SHA256 df88a1321bc4fd8d9b8d36696fb7147d3cc6bbb2c35a046be8a9eb89aaffb0c3 metadata MD5 1d751c2b7f080215b6184d908caa3325 files/digest-jrockit-jdk-bin-1.4.2.11 623 RMD160 8fcd6a3a66e30b2fa4b8eafbf07784c564bd505e files/digest-jrockit-jdk-bin-1.4.2.11 623 SHA256 bcdb08b0aad6dec05c5d5028307d525ebad97e23d07ea5cc2de5c8ca9a3255dd files/digest-jrockit-jdk-bin-1.4.2.11 623 +MD5 6b9722f70c6b46fdd6c51a7e99a7de66 files/digest-jrockit-jdk-bin-1.4.2.13 623 +RMD160 de3c5018c7a172ad1625227d9244b2efea6378b0 files/digest-jrockit-jdk-bin-1.4.2.13 623 +SHA256 4973c3c78db014682de740fb1c741f65a60943662b734f00583d4e6ac427d3ed files/digest-jrockit-jdk-bin-1.4.2.13 623 MD5 aea9e627aeff249176ae9758d484aba1 files/digest-jrockit-jdk-bin-1.5.0.06-r1 933 RMD160 bd81bdbfcede2a85612fa596e6ac73117d4f875d files/digest-jrockit-jdk-bin-1.5.0.06-r1 933 SHA256 18f8546024c6329192e9f3cbd588833359393a4e8692d55be8659d9e874a65d8 files/digest-jrockit-jdk-bin-1.5.0.06-r1 933 +MD5 9c3720c3aebac6e42d8085303a08488e files/digest-jrockit-jdk-bin-1.5.0.10 939 +RMD160 d8032019a5f5492cf614a39fbe319e1ecb2c8a12 files/digest-jrockit-jdk-bin-1.5.0.10 939 +SHA256 fdb4bc626d4bb032ee70a49dbd73202cf28743f66cc2762c96029210a15d1d5c files/digest-jrockit-jdk-bin-1.5.0.10 939 diff --git a/dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.4.2.13 b/dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.4.2.13 new file mode 100644 index 000000000000..f460ccb2317e --- /dev/null +++ b/dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.4.2.13 @@ -0,0 +1,6 @@ +MD5 8926398ff5286c15b98d1ff9e3068a0e jrockit-R27.2.0-jdk1.4.2_13-linux-ia32.bin 75189994 +RMD160 0297b05252c8d74a7ee3cc0c453499d8bf833a33 jrockit-R27.2.0-jdk1.4.2_13-linux-ia32.bin 75189994 +SHA256 9f5c5bae7a199b751c00017432ee37077c856ebf811044621b9af5ac0292d38d jrockit-R27.2.0-jdk1.4.2_13-linux-ia32.bin 75189994 +MD5 a7fcebe5b8a6efb9c50143abc10fa6b1 jrockit-R27.2.0-jdk1.4.2_13-linux-ipf.bin 47627876 +RMD160 2d5f9247a52ea8999378e6698ac1c754f76077b2 jrockit-R27.2.0-jdk1.4.2_13-linux-ipf.bin 47627876 +SHA256 acf95a26da94ed05bb99354e958996dbe76db6eb6374872e7add6d28e4de007b jrockit-R27.2.0-jdk1.4.2_13-linux-ipf.bin 47627876 diff --git a/dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.5.0.10 b/dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.5.0.10 new file mode 100644 index 000000000000..6f90e41da595 --- /dev/null +++ b/dev-java/jrockit-jdk-bin/files/digest-jrockit-jdk-bin-1.5.0.10 @@ -0,0 +1,9 @@ +MD5 92b290afd577d617e430bbcace13b756 jrockit-R27.2.0-jdk1.5.0_10-linux-ia32.bin 122196072 +RMD160 4dfea51f73f655332e0ec74bf4fccb541b3c6f10 jrockit-R27.2.0-jdk1.5.0_10-linux-ia32.bin 122196072 +SHA256 7405fbe7ea07581ef1368cc41165eb3eef9bda25450a7fc81fc9ef1cd29f5057 jrockit-R27.2.0-jdk1.5.0_10-linux-ia32.bin 122196072 +MD5 11c2b5ad5a55094e0bb0d0c8ede766f9 jrockit-R27.2.0-jdk1.5.0_10-linux-ipf.bin 93844561 +RMD160 f9f82fb7a36412ff1f1c4f8f291674919763e060 jrockit-R27.2.0-jdk1.5.0_10-linux-ipf.bin 93844561 +SHA256 e49f4bcb027294a4866b1ff428c5d1225161392d7f70624f25199bf429fd9e4e jrockit-R27.2.0-jdk1.5.0_10-linux-ipf.bin 93844561 +MD5 9ba2c1e0408c836f6520572a310f1549 jrockit-R27.2.0-jdk1.5.0_10-linux-x64.bin 122849203 +RMD160 c6a29c845fd9b5fb9fab8754be90c33351a88a68 jrockit-R27.2.0-jdk1.5.0_10-linux-x64.bin 122849203 +SHA256 82d1bda46bac794f65e7c97c03e332e318070cd20ca427cc73ca987f07cd72e8 jrockit-R27.2.0-jdk1.5.0_10-linux-x64.bin 122849203 diff --git a/dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.4.2.13.ebuild b/dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.4.2.13.ebuild new file mode 100644 index 000000000000..b6e134cb5354 --- /dev/null +++ b/dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.4.2.13.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.4.2.13.ebuild,v 1.1 2007/04/20 11:53:30 caster Exp $ + +# 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="nostrip fetch" +JAVA_SUPPORTS_GENERATION_1="true" +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.2.0" + +SRC_URI_BASE="jrockit-R${UPSTREAM_RELEASE}-jdk${PV_MAJOR}_${PV_EXTRA}-linux-" +SRC_URI="ia64? ( ${SRC_URI_BASE}ipf.bin ) + 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.4" +KEYWORDS="-* ~ia64 ~x86" +DEPEND="app-arch/unzip" +RDEPEND="doc? ( =dev-java/java-sdk-docs-1.4.2* )" +IUSE="doc examples" + +QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/jrockit/libjvm.so +opt/${P}/jre/lib/i386/libjmapi.so +opt/${P}/jre/lib/i386/libawt.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" + +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 + 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" +} diff --git a/dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.5.0.10.ebuild b/dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.5.0.10.ebuild new file mode 100644 index 000000000000..c68e5ae5581f --- /dev/null +++ b/dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.5.0.10.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.5.0.10.ebuild,v 1.1 2007/04/20 11:53:30 caster Exp $ + +# 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="nostrip 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.2.0" + +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 )" +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.5" +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 mercuryprofiler 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" +} -- 2.26.2