1 |
commit: 8f8f7fe90b4d4346b9e80b0ad73d82185791fc84 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 10 07:26:06 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 10 07:44:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f8f7fe9 |
7 |
|
8 |
dev-java/icedtea: bump to 3.16.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/720690 |
11 |
Bug: https://bugs.gentoo.org/707740 |
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
13 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
14 |
|
15 |
dev-java/icedtea/Manifest | 11 + |
16 |
dev-java/icedtea/icedtea-3.16.0.ebuild | 376 +++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 387 insertions(+) |
18 |
|
19 |
diff --git a/dev-java/icedtea/Manifest b/dev-java/icedtea/Manifest |
20 |
index ee269e4710e..789b3ac4114 100644 |
21 |
--- a/dev-java/icedtea/Manifest |
22 |
+++ b/dev-java/icedtea/Manifest |
23 |
@@ -9,5 +9,16 @@ DIST icedtea-3.15-nashorn-04210bbb67cd.tar.xz 2319568 BLAKE2B 1078f8847eefffffbd |
24 |
DIST icedtea-3.15-openjdk-c0ec72b715dd.tar.xz 362300 BLAKE2B e5bd5766bd9f436f09fb5146ab1c0ee3e82f9d32526fc41e2c9320c2e330a4603883206e0ebcfd076ffeff8ccdd3c289a5018f718223b68852e08bf4822167e0 SHA512 d7dca834fc65b67b1888c4cfbd50e263e58604b70560b4dd4e8e7ca518fcd54a70eaf9e5cff89fa1954beaa3071f5b55ef36fffb36589f5008e4be39e5a1aa38 |
25 |
DIST icedtea-3.15-shenandoah-9fcff2250bb4.tar.xz 7077244 BLAKE2B 1122b74e12683577e0a8fdc18be5b4db6c2ee59d64424200940c18889e6c39567f9471b44f4d7199bc1816ed2f5d2a16bfe06e0b1b1c0d93bc0722202c272115 SHA512 0c229ab3c1a2de6c24715d9713250e35c415f919ee3c4e99b0b101bc3f51fea54814f235da345d0d4954d4f3283c7757091076a7128847c879399fd1c8a6c15d |
26 |
DIST icedtea-3.15.0.tar.xz 1532664 BLAKE2B cdaa6fedc3ca804d63c9025c7798287948ddf917a4e04e15019c5b9b96db661ea339e51dc94b68647e4c19a01498c21a1a61da5496bc6cd873f144fd0c76d1db SHA512 7c5917acc03b19a41b5001beb71a72b3f63e65b3c97c5f9173067fbd795088f9578f628b386bfa0e934caa8f4faab4cfcae80329ee7180c0cbe49563309c84ca |
27 |
+DIST icedtea-3.16-aarch32-ecc1eb1dc760.tar.xz 6854900 BLAKE2B a4b0a4fec267f0dd64618aa83a2cf487e83bfa133e03914a079d451abb6be573e4d157f12372d6d2eaa66f834d4a1ec0bad8f1a65d2619468bb3de8567863036 SHA512 20ba1980a4f4161c632e8ec02330c3b0c971a5eff19456a568b2df4622fcfedb18594c7e350318a15a31a5395c0544899160d71805f0a3d3886ae7a16019c010 |
28 |
+DIST icedtea-3.16-corba-ea3169880d70.tar.xz 947604 BLAKE2B 22e7fdab5168b01501791c9537b72f884cdd008ec912e1e7afb05c410e47ab9fffc37aeeab78400a39b6216612927eb63bdc6ba2169fc7e74fe8d6c60b1af978 SHA512 bf90c95f401d4628e32b9a7ea78b7d43944f82882818a81d2ff368f09e49148091bf823d78ed56c343c175fe6d25492d9b78e25b725f218592ea94c4ae285e56 |
29 |
+DIST icedtea-3.16-hotspot-eeb08cfebded.tar.xz 6906968 BLAKE2B 78bd9ecef9801a190ce2993d1023d6eb3db8276cc7fc726cccbf406e630a4bc62401299885de42df85f92611da10c732ae50600af9e337dcf3014472777ba38a SHA512 19490ccc377fde5dc3d4396425e945f32e121ad0cc4be394b07f8698a7e3805b16fc41e427bab5fa290cb84efc7edb62acf8ca98072176343f5584d692592d2d |
30 |
+DIST icedtea-3.16-jaxp-883803235596.tar.xz 2293880 BLAKE2B c749477661d9e492ab15e0b773d641f68865196c8d2897eceeafd341cacf143e73c6b55face57d528ca5d1a648798db4533e7b924daa918c2ce62d26b407bf5b SHA512 86e8c18741c1f4baca27d784b068765e404a5c2ee6ecb172c826fc1d6192b5776133f103b749839c39154fcaec87a0df95e8fd5bcb56b1e9b811711b296a4836 |
31 |
+DIST icedtea-3.16-jaxws-e5d96dc9988a.tar.xz 2276192 BLAKE2B 79c33b530f95ab098297d0cdb5844660df4330555195c366611cadde8478711cc4a0fef3b68a23bbd710d4213298cd4293cdec3d12a07c0682f6e264489e9d11 SHA512 824ef15aa70ec629406fd9b98a69e5699fe8f6a8ab06be00ac546bcda1daf485b20de6ea0310064e000efbaf35b1cebee25bf69033634fdce8434efb3bb16f1d |
32 |
+DIST icedtea-3.16-jdk-bb9b9a0ad162.tar.xz 39849832 BLAKE2B 2b9b3ca3988955015760c82481a86af73c13b37b0c26714fbdac33de73b70ecf2fb3abcd908406dfe7dc202b02c70d66ba6b64f838b8e0b2ecb55a46944998c3 SHA512 9202f88b360637ad474920d8a6f85740e6a425679617ef713efd67778b4c7ca0b3eba7e4fc9d33de0bbd5dacda4862c8a9b63a13880204388b01af29d5fb6a55 |
33 |
+DIST icedtea-3.16-langtools-e47d37e5fe0b.tar.xz 2078808 BLAKE2B 2f7286c15c90607e67eea8b8ca560cc83a21e4a3ebbb5846afeb79ccfefe0713fe27ebe56a505f263276476e0a99c470171030cbaa406fbbc7cdef13acbf89b1 SHA512 1858bb3b7dd37edd817a52c67a878b48bc9b790623e77d9a6107f54b141638cb101ae3b8df560e3352c9ca2925aa5d493b4924e36a238be5a9628c714cc23642 |
34 |
+DIST icedtea-3.16-nashorn-1d70dcb4ab53.tar.xz 2319492 BLAKE2B c328c3a99fbd49be1efbecbb12e46be57d4cb78c65ca778f95644e2d193a4390ed1ad1ce3cddc6f737241d5e02b18b50adbc37748907db3eabe406a4880a6afb SHA512 4bf87e7441ac747f133612e1fba5c06946c6731bae76132ffc614b41fcb689fda9d9ceb1e1fee3765765c6109894c85cf0f6e6fa9eb301f9a2d640ea6cd1c16c |
35 |
+DIST icedtea-3.16-openjdk-bca1f7228ce8.tar.xz 363112 BLAKE2B aff804d5b5d58dcb25f9a576aa0a23355d2229f89d5dc69142580d5fab3bdd688225d2e33090714a3d292d9d98758867feaef9c179a4c77b5cab37c21c5f0610 SHA512 76b32457958c2cdbb0006629bb41652286a1a9bfbda862665eddf822d4653d4858f9f2565e849b0e49f031b7667be73be8fe8c71abc65e1795eb570a96d1fd1e |
36 |
+DIST icedtea-3.16-shenandoah-e4e81ae21643.tar.xz 7081200 BLAKE2B bbbd4f3cc7f3adb34a3c3497c62eeb1336d554f7396b952b94ad8f573295c1537e9c3416fc2d2881efef6d6a1750bd069da0fac37a0d556eeb55a0ace9b7b385 SHA512 adbb279d59d4978403b222caf9f0823b3ae2a0d6e27911a38243fe6ef9b1a7f0d8640d71b67fa510c341dc175031e52b4b6aa6187a37ac467372a55946ae37d3 |
37 |
+DIST icedtea-3.16.0.tar.xz 1534432 BLAKE2B ef8ffc6773c2ea1d71a2bad1f425f891edd65cb61fd22b1c36b06539b9656f211422d897e35b707bac1b0005eaa95d31bab3079c5e31454383be01d9750394ba SHA512 67964f283b5a220ded7c86141ac359fc51f41077686d3e68568a9f303d2e5e6d62472bef2d6f5f9d53897a55589c84d3212983194607b9a6704192752f8ad2ac |
38 |
DIST icedtea-cacao-c182f119eaad.tar.xz 3056520 BLAKE2B 6b1be66ce19f491d49f1591babcd8c088e8e327f828dca3f30b8f8b04c132140f8b9f487ef6d91aed212aebab2c7c3052d79fa3f2d76d3832341d94d48e77089 SHA512 22e8a031db5f93f82b276b310c175f1e926e48d64e1e50bebe51138e0f66391cd005501491a959d31663f338f27a29ec984ac29f77078f59472856e4d08edef7 |
39 |
DIST icedtea-jamvm-ec18fb9e49e62dce16c5094ef1527eed619463aa.tar.gz 317187 BLAKE2B 1ca581a02be4cf5c09162687bbc90ec01b58b4910d866d11512cf17a1caff181fdc69e42f7498b2df9deb875ddc6efc6bc2888428f411da94bbc2313ddf5a2c9 SHA512 a31348481e1c02747f5bb9db333f855c45a1555aa187ee35de5ef553a10a8a47dfcc1beb1e69502046c1758438b91958a328e0a0015812c153221f67734a70a6 |
40 |
|
41 |
diff --git a/dev-java/icedtea/icedtea-3.16.0.ebuild b/dev-java/icedtea/icedtea-3.16.0.ebuild |
42 |
new file mode 100644 |
43 |
index 00000000000..de38d49e593 |
44 |
--- /dev/null |
45 |
+++ b/dev-java/icedtea/icedtea-3.16.0.ebuild |
46 |
@@ -0,0 +1,376 @@ |
47 |
+# Copyright 1999-2020 Gentoo Authors |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+# Build written by Andrew John Hughes (gnu_andrew@××××××××××.org) |
51 |
+ |
52 |
+# ********************************************************* |
53 |
+# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-6.* AS WELL * |
54 |
+# ********************************************************* |
55 |
+ |
56 |
+EAPI="6" |
57 |
+SLOT="8" |
58 |
+ |
59 |
+inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing pax-utils prefix versionator xdg-utils |
60 |
+ |
61 |
+ICEDTEA_VER=$(get_version_component_range 1-3) |
62 |
+ICEDTEA_BRANCH=$(get_version_component_range 1-2) |
63 |
+ICEDTEA_PKG=icedtea-${ICEDTEA_VER} |
64 |
+ICEDTEA_PRE=$(get_version_component_range _) |
65 |
+ |
66 |
+CORBA_TARBALL="ea3169880d70.tar.xz" |
67 |
+JAXP_TARBALL="883803235596.tar.xz" |
68 |
+JAXWS_TARBALL="e5d96dc9988a.tar.xz" |
69 |
+JDK_TARBALL="bb9b9a0ad162.tar.xz" |
70 |
+LANGTOOLS_TARBALL="e47d37e5fe0b.tar.xz" |
71 |
+OPENJDK_TARBALL="bca1f7228ce8.tar.xz" |
72 |
+NASHORN_TARBALL="1d70dcb4ab53.tar.xz" |
73 |
+HOTSPOT_TARBALL="eeb08cfebded.tar.xz" |
74 |
+SHENANDOAH_TARBALL="e4e81ae21643.tar.xz" |
75 |
+AARCH32_TARBALL="ecc1eb1dc760.tar.xz" |
76 |
+ |
77 |
+CACAO_TARBALL="cacao-c182f119eaad.tar.xz" |
78 |
+JAMVM_TARBALL="jamvm-ec18fb9e49e62dce16c5094ef1527eed619463aa.tar.gz" |
79 |
+ |
80 |
+CORBA_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-corba-${CORBA_TARBALL}" |
81 |
+JAXP_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jaxp-${JAXP_TARBALL}" |
82 |
+JAXWS_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jaxws-${JAXWS_TARBALL}" |
83 |
+JDK_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jdk-${JDK_TARBALL}" |
84 |
+LANGTOOLS_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-langtools-${LANGTOOLS_TARBALL}" |
85 |
+OPENJDK_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-openjdk-${OPENJDK_TARBALL}" |
86 |
+NASHORN_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-nashorn-${NASHORN_TARBALL}" |
87 |
+HOTSPOT_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-hotspot-${HOTSPOT_TARBALL}" |
88 |
+SHENANDOAH_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-shenandoah-${SHENANDOAH_TARBALL}" |
89 |
+AARCH32_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-aarch32-${AARCH32_TARBALL}" |
90 |
+ |
91 |
+CACAO_GENTOO_TARBALL="icedtea-${CACAO_TARBALL}" |
92 |
+JAMVM_GENTOO_TARBALL="icedtea-${JAMVM_TARBALL}" |
93 |
+ |
94 |
+DROP_URL="https://icedtea.classpath.org/download/drops" |
95 |
+ICEDTEA_URL="${DROP_URL}/icedtea${SLOT}/${ICEDTEA_VER}" |
96 |
+ |
97 |
+DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies" |
98 |
+HOMEPAGE="https://icedtea.classpath.org" |
99 |
+SRC_PKG="${ICEDTEA_PKG}.tar.xz" |
100 |
+SRC_URI=" |
101 |
+ https://icedtea.classpath.org/download/source/${SRC_PKG} |
102 |
+ ${ICEDTEA_URL}/openjdk.tar.xz -> ${OPENJDK_GENTOO_TARBALL} |
103 |
+ ${ICEDTEA_URL}/corba.tar.xz -> ${CORBA_GENTOO_TARBALL} |
104 |
+ ${ICEDTEA_URL}/jaxp.tar.xz -> ${JAXP_GENTOO_TARBALL} |
105 |
+ ${ICEDTEA_URL}/jaxws.tar.xz -> ${JAXWS_GENTOO_TARBALL} |
106 |
+ ${ICEDTEA_URL}/jdk.tar.xz -> ${JDK_GENTOO_TARBALL} |
107 |
+ ${ICEDTEA_URL}/hotspot.tar.xz -> ${HOTSPOT_GENTOO_TARBALL} |
108 |
+ ${ICEDTEA_URL}/nashorn.tar.xz -> ${NASHORN_GENTOO_TARBALL} |
109 |
+ ${ICEDTEA_URL}/langtools.tar.xz -> ${LANGTOOLS_GENTOO_TARBALL} |
110 |
+ shenandoah? ( ${ICEDTEA_URL}/shenandoah.tar.xz -> ${SHENANDOAH_GENTOO_TARBALL} ) |
111 |
+ arm? ( ${ICEDTEA_URL}/aarch32.tar.xz -> ${AARCH32_GENTOO_TARBALL} ) |
112 |
+ ${DROP_URL}/cacao/${CACAO_TARBALL} -> ${CACAO_GENTOO_TARBALL} |
113 |
+ ${DROP_URL}/jamvm/${JAMVM_TARBALL} -> ${JAMVM_GENTOO_TARBALL}" |
114 |
+ |
115 |
+LICENSE="Apache-1.1 Apache-2.0 GPL-1 GPL-2 GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C" |
116 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
117 |
+ |
118 |
+IUSE="+alsa cacao +cups doc examples +gtk headless-awt |
119 |
+ jamvm +jbootstrap kerberos libressl nsplugin pax_kernel +pch |
120 |
+ pulseaudio sctp selinux shenandoah smartcard +source +system-lcms test webstart zero" |
121 |
+ |
122 |
+RESTRICT="!test? ( test )" |
123 |
+REQUIRED_USE="gtk? ( !headless-awt )" |
124 |
+ |
125 |
+# Ideally the following were optional at build time. |
126 |
+ALSA_COMMON_DEP=" |
127 |
+ >=media-libs/alsa-lib-1.0" |
128 |
+CUPS_COMMON_DEP=" |
129 |
+ >=net-print/cups-1.2.12" |
130 |
+X_COMMON_DEP=" |
131 |
+ >=media-libs/giflib-4.1.6:0= |
132 |
+ >=media-libs/libpng-1.2:0= |
133 |
+ >=x11-libs/libX11-1.1.3 |
134 |
+ >=x11-libs/libXext-1.1.1 |
135 |
+ >=x11-libs/libXi-1.1.3 |
136 |
+ >=x11-libs/libXrender-0.9.4 |
137 |
+ >=x11-libs/libXtst-1.0.3 |
138 |
+ x11-libs/libXcomposite" |
139 |
+X_DEPEND=" |
140 |
+ x11-base/xorg-proto |
141 |
+ >=x11-libs/libXau-1.0.3 |
142 |
+ >=x11-libs/libXdmcp-1.0.2 |
143 |
+ >=x11-libs/libXinerama-1.0.2" |
144 |
+ |
145 |
+# The Javascript requirement is obsolete; OpenJDK 8+ has Nashorn |
146 |
+COMMON_DEP=" |
147 |
+ >=dev-libs/glib-2.26:2= |
148 |
+ >=dev-util/systemtap-1 |
149 |
+ media-libs/fontconfig:1.0= |
150 |
+ >=media-libs/freetype-2.5.3:2= |
151 |
+ >=sys-libs/zlib-1.2.3 |
152 |
+ virtual/jpeg:0= |
153 |
+ kerberos? ( virtual/krb5 ) |
154 |
+ sctp? ( net-misc/lksctp-tools ) |
155 |
+ smartcard? ( sys-apps/pcsc-lite ) |
156 |
+ system-lcms? ( >=media-libs/lcms-2.9:2= )" |
157 |
+ |
158 |
+# Gtk+ will move to COMMON_DEP in time; PR1982 |
159 |
+# gsettings-desktop-schemas will be needed for native proxy support; PR1976 |
160 |
+RDEPEND="${COMMON_DEP} |
161 |
+ !dev-java/icedtea:0 |
162 |
+ !dev-java/icedtea-web:7 |
163 |
+ >=gnome-base/gsettings-desktop-schemas-3.12.2 |
164 |
+ >=sys-apps/baselayout-java-0.1.0-r1 |
165 |
+ virtual/ttf-fonts |
166 |
+ alsa? ( ${ALSA_COMMON_DEP} ) |
167 |
+ cups? ( ${CUPS_COMMON_DEP} ) |
168 |
+ gtk? ( |
169 |
+ >=dev-libs/atk-1.30.0 |
170 |
+ >=x11-libs/cairo-1.8.8 |
171 |
+ x11-libs/gdk-pixbuf:2 |
172 |
+ >=x11-libs/gtk+-2.8:2 |
173 |
+ >=x11-libs/pango-1.24.5 |
174 |
+ ) |
175 |
+ !headless-awt? ( ${X_COMMON_DEP} ) |
176 |
+ selinux? ( sec-policy/selinux-java )" |
177 |
+ |
178 |
+# ca-certificates, perl and openssl are used for the cacerts keystore generation |
179 |
+# perl is needed for running the SystemTap tests and the bootstrap javac |
180 |
+# lsb-release is used to obtain distro information for the version & crash dump output |
181 |
+# attr is needed for xattr.h which defines the extended attribute syscalls used by NIO2 |
182 |
+# x11-libs/libXt is needed for headers only (Intrinsic.h, IntrinsicP.h, Shell.h, StringDefs.h) |
183 |
+# Ant is no longer needed under the new build system |
184 |
+DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP} ${X_DEPEND} |
185 |
+ || ( |
186 |
+ dev-java/icedtea-bin:8 |
187 |
+ dev-java/icedtea:8 |
188 |
+ dev-java/openjdk:8 |
189 |
+ dev-java/openjdk-bin:8 |
190 |
+ ) |
191 |
+ app-arch/cpio |
192 |
+ app-arch/unzip |
193 |
+ app-arch/zip |
194 |
+ app-misc/ca-certificates |
195 |
+ dev-lang/perl |
196 |
+ !libressl? ( dev-libs/openssl:0 ) |
197 |
+ libressl? ( dev-libs/libressl:0 ) |
198 |
+ sys-apps/attr |
199 |
+ sys-apps/lsb-release |
200 |
+ x11-libs/libXt |
201 |
+ virtual/pkgconfig |
202 |
+ pax_kernel? ( sys-apps/elfix )" |
203 |
+ |
204 |
+PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 ) |
205 |
+ nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] ) |
206 |
+ pulseaudio? ( dev-java/icedtea-sound )" |
207 |
+ |
208 |
+S="${WORKDIR}"/${ICEDTEA_PKG} |
209 |
+ |
210 |
+icedtea_check_requirements() { |
211 |
+ local CHECKREQS_DISK_BUILD |
212 |
+ |
213 |
+ if use doc; then |
214 |
+ CHECKREQS_DISK_BUILD="9000M" |
215 |
+ else |
216 |
+ CHECKREQS_DISK_BUILD="8500M" |
217 |
+ fi |
218 |
+ |
219 |
+ check-reqs_pkg_${EBUILD_PHASE} |
220 |
+} |
221 |
+ |
222 |
+pkg_pretend() { |
223 |
+ icedtea_check_requirements |
224 |
+} |
225 |
+ |
226 |
+pkg_setup() { |
227 |
+ icedtea_check_requirements |
228 |
+ |
229 |
+ JAVA_PKG_WANT_BUILD_VM=" |
230 |
+ icedtea-8 icedtea-bin-8 |
231 |
+ openjdk-8 openjdk-bin-8" |
232 |
+ JAVA_PKG_WANT_SOURCE="1.5" |
233 |
+ JAVA_PKG_WANT_TARGET="1.5" |
234 |
+ |
235 |
+ java-vm-2_pkg_setup |
236 |
+ java-pkg-2_pkg_setup |
237 |
+} |
238 |
+ |
239 |
+src_unpack() { |
240 |
+ unpack ${SRC_PKG} |
241 |
+} |
242 |
+ |
243 |
+src_configure() { |
244 |
+ # GCC10/-fno-common handling |
245 |
+ append-flags -fcommon |
246 |
+ |
247 |
+ # For bootstrap builds as the sandbox control file might not yet exist. |
248 |
+ addpredict /proc/self/coredump_filter #nowarn |
249 |
+ |
250 |
+ # icedtea doesn't like some locales. #330433 #389717 |
251 |
+ export LANG="C" LC_ALL="C" |
252 |
+ |
253 |
+ local cacao_config config hotspot_port hs_config jamvm_config use_cacao use_jamvm use_zero zero_config |
254 |
+ local vm=$(java-pkg_get-current-vm) |
255 |
+ |
256 |
+ # gcj-jdk ensures ecj is present. |
257 |
+ if use jbootstrap || has "${vm}" gcj-jdk; then |
258 |
+ use jbootstrap || einfo "bootstrap is necessary when building with ${vm}, ignoring USE=\"-jbootstrap\"" |
259 |
+ config+=" --enable-bootstrap" |
260 |
+ else |
261 |
+ config+=" --disable-bootstrap" |
262 |
+ fi |
263 |
+ |
264 |
+ # Use Zero if requested |
265 |
+ if use zero; then |
266 |
+ use_zero="yes" |
267 |
+ fi |
268 |
+ |
269 |
+ # Use JamVM if requested |
270 |
+ if use jamvm; then |
271 |
+ use_jamvm="yes" |
272 |
+ fi |
273 |
+ |
274 |
+ # Use CACAO if requested |
275 |
+ if use cacao; then |
276 |
+ use_cacao="yes" |
277 |
+ fi |
278 |
+ |
279 |
+ # Are we on a architecture with a HotSpot port? |
280 |
+ # In-tree JIT ports are available for amd64, arm, arm64, ppc64 (be&le), SPARC and x86. |
281 |
+ if { use amd64 || use arm || use arm64 || use ppc64 || use sparc || use x86; }; then |
282 |
+ hotspot_port="yes" |
283 |
+ # Work around stack alignment issue, bug #647954. |
284 |
+ use x86 && append-flags -mincoming-stack-boundary=2 |
285 |
+ fi |
286 |
+ |
287 |
+ # Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ... |
288 |
+ # Otherwise use Zero for now until alternate VMs are working |
289 |
+ if test "x${hotspot_port}" != "xyes"; then |
290 |
+ use_zero="yes" |
291 |
+ fi |
292 |
+ |
293 |
+ if use shenandoah; then |
294 |
+ if { use amd64 || use arm64; }; then |
295 |
+ hs_config="--with-hotspot-build=shenandoah" |
296 |
+ hs_config+=" --with-hotspot-src-zip="${DISTDIR}/${SHENANDOAH_GENTOO_TARBALL}"" |
297 |
+ else |
298 |
+ eerror "Shenandoah is only supported on arm64 and x86_64. Please re-build with USE="-shenandoah"" |
299 |
+ fi |
300 |
+ else |
301 |
+ if use arm ; then |
302 |
+ hs_config="--with-hotspot-src-zip="${DISTDIR}/${AARCH32_GENTOO_TARBALL}"" |
303 |
+ else |
304 |
+ hs_config="--with-hotspot-src-zip="${DISTDIR}/${HOTSPOT_GENTOO_TARBALL}"" |
305 |
+ fi |
306 |
+ fi |
307 |
+ |
308 |
+ # Turn on JamVM if needed (non-HS archs) or requested |
309 |
+ if test "x${use_jamvm}" = "xyes"; then |
310 |
+ if test "x${hotspot_port}" = "xyes"; then |
311 |
+ ewarn 'Enabling JamVM on an architecture with HotSpot support; issues may result.' |
312 |
+ ewarn 'If so, please rebuild with USE="-jamvm"' |
313 |
+ fi |
314 |
+ ewarn 'JamVM is known to still have issues with IcedTea 3.x; please rebuild with USE="-jamvm"' |
315 |
+ jamvm_config="--enable-jamvm" |
316 |
+ fi |
317 |
+ |
318 |
+ # Turn on CACAO if needed (non-HS archs) or requested |
319 |
+ if test "x${use_cacao}" = "xyes"; then |
320 |
+ if test "x${hotspot_port}" = "xyes"; then |
321 |
+ ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.' |
322 |
+ ewarn 'If so, please rebuild with USE="-cacao"' |
323 |
+ fi |
324 |
+ ewarn 'CACAO is known to still have issues with IcedTea 3.x; please rebuild with USE="-cacao"' |
325 |
+ cacao_config="--enable-cacao" |
326 |
+ fi |
327 |
+ |
328 |
+ # Turn on Zero if needed (non-HS/CACAO archs) or requested |
329 |
+ if test "x${use_zero}" = "xyes"; then |
330 |
+ if test "x${hotspot_port}" = "xyes"; then |
331 |
+ ewarn 'Enabling Zero on an architecture with HotSpot support; performance will be significantly reduced.' |
332 |
+ fi |
333 |
+ zero_config="--enable-zero" |
334 |
+ fi |
335 |
+ |
336 |
+ # PaX breaks pch, bug #601016 |
337 |
+ if use pch && ! host-is-pax; then |
338 |
+ config+=" --enable-precompiled-headers" |
339 |
+ else |
340 |
+ config+=" --disable-precompiled-headers" |
341 |
+ fi |
342 |
+ |
343 |
+ config+=" --with-parallel-jobs=$(makeopts_jobs)" |
344 |
+ |
345 |
+ unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS |
346 |
+ |
347 |
+ econf ${config} \ |
348 |
+ --with-openjdk-src-zip="${DISTDIR}/${OPENJDK_GENTOO_TARBALL}" \ |
349 |
+ --with-corba-src-zip="${DISTDIR}/${CORBA_GENTOO_TARBALL}" \ |
350 |
+ --with-jaxp-src-zip="${DISTDIR}/${JAXP_GENTOO_TARBALL}" \ |
351 |
+ --with-jaxws-src-zip="${DISTDIR}/${JAXWS_GENTOO_TARBALL}" \ |
352 |
+ --with-jdk-src-zip="${DISTDIR}/${JDK_GENTOO_TARBALL}" \ |
353 |
+ --with-langtools-src-zip="${DISTDIR}/${LANGTOOLS_GENTOO_TARBALL}" \ |
354 |
+ --with-nashorn-src-zip="${DISTDIR}/${NASHORN_GENTOO_TARBALL}" \ |
355 |
+ --with-cacao-src-zip="${DISTDIR}/${CACAO_GENTOO_TARBALL}" \ |
356 |
+ --with-jamvm-src-zip="${DISTDIR}/${JAMVM_GENTOO_TARBALL}" \ |
357 |
+ --with-jdk-home="$(java-config -O)" \ |
358 |
+ --prefix="${EPREFIX}/usr/$(get_libdir)/icedtea${SLOT}" \ |
359 |
+ --mandir="${EPREFIX}/usr/$(get_libdir)/icedtea${SLOT}/man" \ |
360 |
+ --with-pkgversion="Gentoo ${PF}" \ |
361 |
+ --disable-ccache \ |
362 |
+ --disable-downloading --disable-Werror --disable-tests \ |
363 |
+ --disable-systemtap-tests --enable-improved-font-rendering \ |
364 |
+ --enable-system-jpeg --enable-system-zlib \ |
365 |
+ $(use_enable headless-awt headless) \ |
366 |
+ $(use_enable !headless-awt system-gif) \ |
367 |
+ $(use_enable !headless-awt system-png) \ |
368 |
+ $(use_enable doc docs) \ |
369 |
+ $(use_enable kerberos system-kerberos) \ |
370 |
+ $(use_enable system-lcms) \ |
371 |
+ $(use_with pax_kernel pax "${EPREFIX}/usr/sbin/paxmark.sh") \ |
372 |
+ $(use_enable sctp system-sctp) \ |
373 |
+ $(use_enable smartcard system-pcsc) \ |
374 |
+ ${zero_config} ${cacao_config} ${jamvm_config} ${hs_config} |
375 |
+} |
376 |
+ |
377 |
+src_compile() { |
378 |
+ default |
379 |
+} |
380 |
+ |
381 |
+src_test() { |
382 |
+ default |
383 |
+} |
384 |
+ |
385 |
+src_install() { |
386 |
+ default |
387 |
+ |
388 |
+ local dest="/usr/$(get_libdir)/icedtea${SLOT}" |
389 |
+ local ddest="${ED}${dest#/}" |
390 |
+ |
391 |
+ if ! use alsa; then |
392 |
+ rm -v "${ddest}"/jre/lib/$(get_system_arch)/libjsoundalsa.* || die |
393 |
+ fi |
394 |
+ |
395 |
+ if ! use examples; then |
396 |
+ rm -r "${ddest}"/demo "${ddest}"/sample || die |
397 |
+ fi |
398 |
+ |
399 |
+ if ! use source; then |
400 |
+ rm -v "${ddest}"/src.zip || die |
401 |
+ fi |
402 |
+ |
403 |
+ dosym ../../../usr/share/doc/"${PF}" usr/share/doc/"${PN}${SLOT}" |
404 |
+ |
405 |
+ # Fix the permissions. |
406 |
+ find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die |
407 |
+ |
408 |
+ dosym ../../../../../../etc/ssl/certs/java/cacerts "${dest}"/jre/lib/security/cacerts |
409 |
+ |
410 |
+ java-vm_install-env "${FILESDIR}/icedtea.env.sh" |
411 |
+ java-vm_sandbox-predict /proc/self/coredump_filter |
412 |
+} |
413 |
+ |
414 |
+pkg_postinst() { |
415 |
+ xdg_icon_cache_update |
416 |
+ java-vm-2_pkg_postinst |
417 |
+} |
418 |
+ |
419 |
+pkg_postrm() { |
420 |
+ xdg_icon_cache_update |
421 |
+ java-vm-2_pkg_postrm |
422 |
+} |