annotate dev-java/jrockit-jdk-bin/jrockit-jdk-bin-1.6.0.01.ebuild @ 339:60459a8f4bd6

pptp ebuild that includes some stability patches from redhat
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 11 Jul 2012 13:20:47 +0200
parents f00d13ecb343
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2007 Gentoo Foundation
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header$
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 # WARNING: This is the default VM on ia64, so treat this ebuild
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 # with proper care.
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 # The stripping of symbols seems to mess up the BEA code. Not sure why.
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 RESTRICT="strip fetch"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 inherit java-vm-2 versionator
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 PV_MAJOR="$(get_version_component_range 1-3 ${PV})"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 PV_EXTRA="$(get_version_component_range 4 ${PV})"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 UPSTREAM_RELEASE="27.3.1"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 SRC_URI_BASE="jrockit-R${UPSTREAM_RELEASE}-jdk${PV_MAJOR}_${PV_EXTRA}-linux-"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 #SRC_URI="x86? ( ${SRC_URI_BASE}ia32.bin )
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 # amd64? ( ${SRC_URI_BASE}x64.bin )
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 # ia64? ( ${SRC_URI_BASE}ipf.bin )"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 SRC_URI="x86? ( ${SRC_URI_BASE}ia32.bin )"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 DESCRIPTION="BEA WebLogic's J2SE Development Kit, R${UPSTREAM_RELEASE}"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 HOMEPAGE="http://commerce.bea.com/products/weblogicjrockit/jrockit_prod_fam.jsp"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 LICENSE="jrockit"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 SLOT="1.6"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 KEYWORDS="-* ~amd64 ~ia64 ~x86"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 IUSE="doc examples"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 DEPEND="app-arch/unzip"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 RDEPEND="doc? ( =dev-java/java-sdk-docs-1.5.0* )"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 QA_TEXTRELS_amd64="opt/${P}/mercuryprofiler/lib/sparc-sunos/libprobejni.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 opt/${P}/mercuryprofiler/lib/x86-linux/libprobejni.so"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 # not working for some reason...
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 # because it probably needs WX_LOAD and not EXECSTACK
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 QA_EXECSTACK_amd64="opt/${P}/mercuryprofiler/bin/sparc-sunos/systemmetrics
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 opt/${P}/mercuryprofiler/lib/sparc-sunos/libprobejni.so"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/jrockit/libjvm.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 opt/${P}/jre/lib/i386/motif21/libmawt.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 opt/${P}/jre/lib/i386/libjmapi.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 opt/${P}/mercuryprofiler/lib/x86-linux/libjvmti.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 opt/${P}/mercuryprofiler/lib/x86-linux/libprobejni.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 opt/${P}/mercuryprofiler/lib/sparc-sunos64/libjvmti.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 opt/${P}/mercuryprofiler/lib/sparc-sunos64/libprobejni.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 opt/${P}/mercuryprofiler/lib/sparc-sunos/libjvmti.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 opt/${P}/mercuryprofiler/lib/sparc-sunos/libprobejni.so"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 QA_EXECSTACK_x86="opt/${P}/bin/*
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 opt/${P}/jre/bin/*
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 opt/${P}/jre/lib/i386/jrockit/libjvm.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 opt/${P}/jre/lib/i386/libnet.so"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 QA_WX_LOAD_x86="opt/${P}/mercuryprofiler/bin/sparc-sunos/systemmetrics
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 opt/${P}/mercuryprofiler/bin/sparc-sunos/reference_sort
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 opt/${P}/mercuryprofiler/lib/sparc-sunos64/libjvmti.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 opt/${P}/mercuryprofiler/lib/sparc-sunos64/libprobejni.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 opt/${P}/mercuryprofiler/lib/sparc-sunos/libjvmti.so
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 opt/${P}/mercuryprofiler/lib/sparc-sunos/libprobejni.so"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 pkg_nofetch() {
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67 einfo "Please download ${A} from:"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 einfo ${HOMEPAGE}
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69 einfo "and move it to ${DISTDIR}"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 }
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72 src_unpack() {
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73 # unpack cannot determine file format
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74 # unzip to get more zips
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
75 unzip ${DISTDIR}/${A} || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
76
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
77 mkdir ${S} || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
78
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
79 # this is ugly but don't see any better way
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
80 # empty jre dir is part of the zip
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
81 unzip *sdk_no_jre.zip -d ${S} || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
82 # remove so it doesn't affect next unzip
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
83 rm *sdk_no_jre.zip || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
84 # unpack the jre into its dir
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
85 unzip *jre.zip -d ${S}/jre || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
86 }
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
87
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
88 src_install() {
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
89 local dirs="bin include jre lib missioncontrol src.zip"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
90
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
91 insinto "/opt/${P}"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
92 for i in ${dirs} ; do
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
93 doins -r $i || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
94 done
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
95
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
96 if use examples; then
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
97 doins -r demo || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
98 doins -r sample || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
99 fi
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
100
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
101 newdoc README.txt README || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
102 dodoc LICENSE || die
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
103
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
104 chmod +x ${D}/opt/${P}/bin/* ${D}/opt/${P}/jre/bin/* || die "Could not chmod"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
105 set_java_env
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
106 }
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
107
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
108 pkg_postinst () {
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
109 # Set as default VM if none exists
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
110 java-vm-2_pkg_postinst
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
111 elog "Please review the license agreement in /usr/share/doc/${PF}/LICENSE"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
112 elog "If you do not agree to the terms of this license, please uninstall this package"
f00d13ecb343 added jrockit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
113 }