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