commit: dd6b8f1ce24d968a85d2f6d156d7687a97f6f365 Author: Andrew John Hughes <gnu_andrew <AT> member <DOT> fsf <DOT> org> AuthorDate: Sat May 21 15:21:26 2016 +0000 Commit: Andrew John Hughes <gnu_andrew <AT> member <DOT> fsf <DOT> org> CommitDate: Sat May 21 15:21:26 2016 +0000 URL: https://gitweb.gentoo.org/proj/java.git/commit/?id=dd6b8f1c
dev-java/icedtea: Add support for 3.1.0pre02. Package-Manager: portage-2.2.27 dev-java/icedtea/ChangeLog | 6 + dev-java/icedtea/Manifest | 8 + dev-java/icedtea/icedtea-3.1.0_pre02.ebuild | 386 ++++++++++++++++++++++++++++ 3 files changed, 400 insertions(+) diff --git a/dev-java/icedtea/ChangeLog b/dev-java/icedtea/ChangeLog index da38141..17c9541 100644 --- a/dev-java/icedtea/ChangeLog +++ b/dev-java/icedtea/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*icedtea-3.1.0_pre02 (21 May 2016) + + 21 May 2016; Andrew John Hughes <gnu_and...@member.fsf.org> + +icedtea-3.1.0_pre02.ebuild: + dev-java/icedtea: Add support for 3.1.0pre02. + *icedtea-6.1.13.11 (04 May 2016) 04 May 2016; Andrew John Hughes <gnu_and...@member.fsf.org> diff --git a/dev-java/icedtea/Manifest b/dev-java/icedtea/Manifest index 0fbc556..835dc97 100644 --- a/dev-java/icedtea/Manifest +++ b/dev-java/icedtea/Manifest @@ -22,6 +22,14 @@ DIST icedtea-3.0-langtools-ad6886e3a101.tar.xz 2056412 SHA256 260260115257602173 DIST icedtea-3.0-nashorn-c89dc17f7c75.tar.xz 2220176 SHA256 e7040d55a499c002cd6edcedc44890072a2f88cb19a341950e5865c544b51edc SHA512 3cf12d2696b630eec2a4c6fefe08db9e14db62bbd81a3a4546ef886f6b7fa059a2f41dd3a4377ab2da1f65d371b70766caac4054b447454863de82ce961c3d31 WHIRLPOOL ad2ede063f0e6cb1a67f90d42ddcf2ab33175008361620abf04ccc1a55b9e3c2a8a9827100137842c8f6de2a3af367b6143c0916a5ffa4920dbcd33fb66547c0 DIST icedtea-3.0-openjdk-6a70821528ba.tar.xz 330720 SHA256 8b766fffa39d67e62802a8cddd23e02b0ac2fd6aff48658b4b08fd6dbee38184 SHA512 5054d4a541b8f3e6fd09cd44355b39d3a0e1ea27247bcaf8bb800e1e3cf23a4133076383b74c19be1928a5fc0c3986ab3303614a834b9741209dcf20eb19d703 WHIRLPOOL 7ea8c98d4dca75325841929aa8049ecf713e637124e4ce6f9a98d7845d25153d851c42f632132ab61ff6823e0aeab07ad0dc43e6f699d4f3747b536e90eb0b76 DIST icedtea-3.0.1.tar.xz 1403400 SHA256 346ce30de1de6c493729b79b246f250438fc5b8df7eae47229a97f9000a73af2 SHA512 01506994e3c4b4a1dc927251de0db5e5a22754031604cf7c8660597525616d3205527ed768d67aa4b4c62b40a0e3fbd3327c97b95c81b634175dec69c5802c8f WHIRLPOOL 0641f49b6fcccb3981e2756a2403638897887634ff09b6ede9ae61af80259b5bc1168c6c5f236a07157befec4a1fe848d0814afe5515bb5a98c591370c62dacb +DIST icedtea-3.1-corba-cb4d2e8f71f9.tar.xz 937932 SHA256 45ca85d1109f7f60d36ee191b3863826afe2c8561d019c929c1f809e86dfb47a SHA512 2e2d450092ddb6969cb873f1db00f0093753756552ce0f6fbfce9344197c56832966d6c1898c9ef9f2512a487f43e3e17e54998055a698cbbe5d640908b4aa9f WHIRLPOOL 3132a9ce2c89a5a5d531d7a1f09b80bdb0267f299825b7cfc2a9083c2a8721be99aaab4884f3d40984ada6ed6877c2f406baa5f2eae68028982a2c5cc2b820ea +DIST icedtea-3.1-hotspot-76eca5cf3150.tar.xz 6776156 SHA256 4e7f47aece621fbda69cb55c34574b050bfb1f9b3a61873d7e6d61dcb9cb81a6 SHA512 eb0c1b2a860051265645821dcc48cb9a277ca0ef989319650afc83254ecd50b0922165448e58f79b62965766bc3bdddc4a33cb26d6be294c4e09f06aab5510d6 WHIRLPOOL fa86c40fbe716d583ecbb0262e29d365b171d1119cb37c4ca5d513ccdca983747b5d889a1e86a422e6cb827b95af22f513fb5abcb21d0e10caabcce625f6f6c2 +DIST icedtea-3.1-jaxp-6ee6f8ac7489.tar.xz 2297024 SHA256 57a6684dc993d917d5180ce40091293c11cd20f7501190e610c1b253409778f1 SHA512 b30006933ca933338058caaa54a0e6c9ea41ab79a1621991eeafdcdcce9e14dc97881b7429f47e84ecb27c230b0b37a80694fcbdb098953c392329a6116cabbf WHIRLPOOL 67eb92323dc1243944bb629d9860a55cd00390f67d2ddd7376f9e2338dd6c32190332faf80a68d2ac26952b9d30953777d5a0ebc19a5053aadf43c4ce6845a88 +DIST icedtea-3.1-jaxws-4946f14d652f.tar.xz 2267248 SHA256 d5ca841f8663293940e75cd9e947f9c8cd9626fbb8984d635afe85f5f6856dce SHA512 d8ae8b415aa3c55542761abefc1a649e8affa822fb309730b50253f2daa2a17173fd93df6b474735347752734477313fec7f50003537caf741ae027d08f2b537 WHIRLPOOL 966d8c5799fad3a77532dbc0408ae0b3d01b61afec3241eb4665272d05ab6a7dd3cae6a6fcdb3703539d8b15a0c7b0a4d16debdd9d4f4184493de52047782220 +DIST icedtea-3.1-jdk-7513dae3426b.tar.xz 38264992 SHA256 d084e64c4c593e2113c86f98da25ee1c6a2465e20912e3039c22f17b00f29a8d SHA512 e7646ca79c60764426e8dea4f07d49adbd6a0de03ed3e72bb9bd75e10c39827506e067b5dc5058d9f181fbb364e6b70382fe59e6624b4b9b6af2687b6fe9f8c0 WHIRLPOOL fb74b6866e86d77b22623bf5de978d26955f70c753ffbbf82b10c0b73e94a61acc266d1d40ec99e080edf50391801f0245c106ad530c1248b888ee432ce680d6 +DIST icedtea-3.1-langtools-dbf29857221f.tar.xz 2059196 SHA256 0ed872911880c72c2d264fda5f6e247c4b08df160f71d18cdfb5ab8ec8aae285 SHA512 3661ebe7e507dfce76289218f266df59cc247f781c5479797e65464e58e9017c6fb982c645eddb144761fade80cd18c733f66d652f23fb5212f5110d032f86c4 WHIRLPOOL fd1262ea4f3b6bcfe1f511b81696ed253839216af9263b13afd57e47f99aa60ed028e0c3f649f5a5a91da2fc75ab6b6935d3c1ac418d05bb641ac09fafd9e6d6 +DIST icedtea-3.1-nashorn-a69ff719fccb.tar.xz 2223028 SHA256 7d6640bdecfe4a2a51581c8c1958fb448cae1f6dc87b4211adaabaf3012e9c8a SHA512 4acae34e394ca53ba9bdc60e80f5f7d9d20914fd72598294e2d513cc3cd7d966628481f23894238d13efb1c54b4aa3fd52176f95620bd20c43a26fcba0cfb448 WHIRLPOOL 183821fe302ce339fd288bc679fa24f4ba46e38b16fab698af2dbe877490cda6b155f151fa0f20441dccb5f858defae740596f7046d43956f9f773a8d35ec6c4 +DIST icedtea-3.1-openjdk-97afdcdbffb0.tar.xz 331184 SHA256 3b1f89b0028ed93895ff1bf44713b18307b967eb6ec333029bce711de834f32c SHA512 63e3e98ded9ba13787c6ce64a5d95c43b53a73fd25100c039bffa64859f517fe953f8c1e711ffdbb4e8288a9af7f8a0bb27b8bf84323bda4b5de75d0deda7bd3 WHIRLPOOL c4de8778a83d983d370de7ee8d9fd7f35b2c9ea78ec2e40b8606b3604945751923e7ca3706df37e6111d2d588f5c547a83316c576c1ffd21ac3246e3fd36c76a DIST icedtea-cacao-68fe50ac34ec.tar.gz 4263528 SHA256 b8230f20d7022f9230bbfea13b2f3f179b2f42db40138ac6d32c82fc418ffc3a SHA512 bfa719e5c0212435bbc0e3abc7c69d84b52b17edc1571df94f13e4183889da07c82bb332745724cfa4944e18034c71fd9383e3c4515a69dbfa1369ba9318231f WHIRLPOOL 539c0fed1057723212b209d4341ece9c6b2786b1c216789ebdb8d22b4339daf26425883bbc2f08ea754252c28259f02bc829a42ec05d6838162232066f0ec0a3 DIST icedtea-cacao-c182f119eaad.tar.gz 4485353 SHA256 eade43f6c5da8b3b5a64e6b206b624eaca88539f80101d7164d6aa426eb590b1 SHA512 2ccb947d71b80d84b83295d473c19952e98698a1fd944fc7c12004ff1af29af2989d46fbd95b5daf95eae2fda9de7c7f88f964fa887a6345b4f57d0c490bee23 WHIRLPOOL 8da9aff897bb7119d99ca825e70b4e79663f04d86a58c23cbf50b2bf56e96d833cc09d18380e510671c0ea65a3e19ae4cd1470741fc3b2c6cd6bcd1b9b9323b4 DIST icedtea-cacao-c182f119eaad.tar.xz 3056520 SHA256 bf48f6b725a4dc0c936f6770a67ab4074c3bb35352d5de727368350d32549808 SHA512 22e8a031db5f93f82b276b310c175f1e926e48d64e1e50bebe51138e0f66391cd005501491a959d31663f338f27a29ec984ac29f77078f59472856e4d08edef7 WHIRLPOOL ad72950f37af738b6a6b472b8410a8c8ba52c53d6243976ba983f1802e082c7778d831db202468b7ec5e036dbea1513af6345c666c68b52bae2a95941567cdf0 diff --git a/dev-java/icedtea/icedtea-3.1.0_pre02.ebuild b/dev-java/icedtea/icedtea-3.1.0_pre02.ebuild new file mode 100644 index 0000000..832c2e7 --- /dev/null +++ b/dev-java/icedtea/icedtea-3.1.0_pre02.ebuild @@ -0,0 +1,386 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +# Build written by Andrew John Hughes (gnu_and...@member.fsf.org) + +# ********************************************************* +# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-6.* AS WELL * +# ********************************************************* + +EAPI="5" +SLOT="8" + +inherit autotools check-reqs gnome2-utils java-pkg-2 java-vm-2 mercurial multiprocessing pax-utils prefix versionator virtualx + +ICEDTEA_VER=$(get_version_component_range 1-3) +ICEDTEA_BRANCH=$(get_version_component_range 1-2) +ICEDTEA_PKG=icedtea-${ICEDTEA_VER} +ICEDTEA_PRE=$(get_version_component_range _) + +CORBA_TARBALL="cb4d2e8f71f9.tar.xz" +JAXP_TARBALL="6ee6f8ac7489.tar.xz" +JAXWS_TARBALL="4946f14d652f.tar.xz" +JDK_TARBALL="7513dae3426b.tar.xz" +LANGTOOLS_TARBALL="dbf29857221f.tar.xz" +OPENJDK_TARBALL="97afdcdbffb0.tar.xz" +NASHORN_TARBALL="a69ff719fccb.tar.xz" +HOTSPOT_TARBALL="76eca5cf3150.tar.xz" + +CACAO_TARBALL="cacao-c182f119eaad.tar.xz" +JAMVM_TARBALL="jamvm-ec18fb9e49e62dce16c5094ef1527eed619463aa.tar.gz" + +CORBA_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-corba-${CORBA_TARBALL}" +JAXP_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jaxp-${JAXP_TARBALL}" +JAXWS_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jaxws-${JAXWS_TARBALL}" +JDK_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jdk-${JDK_TARBALL}" +LANGTOOLS_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-langtools-${LANGTOOLS_TARBALL}" +OPENJDK_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-openjdk-${OPENJDK_TARBALL}" +NASHORN_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-nashorn-${NASHORN_TARBALL}" +HOTSPOT_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-hotspot-${HOTSPOT_TARBALL}" + +CACAO_GENTOO_TARBALL="icedtea-${CACAO_TARBALL}" +JAMVM_GENTOO_TARBALL="icedtea-${JAMVM_TARBALL}" + +DROP_URL="http://icedtea.classpath.org/download/drops" +ICEDTEA_URL="${DROP_URL}/icedtea${SLOT}/${ICEDTEA_VER}" + +DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies" +HOMEPAGE="http://icedtea.classpath.org" +SRC_URI=" + ${ICEDTEA_URL}/openjdk.tar.xz -> ${OPENJDK_GENTOO_TARBALL} + ${ICEDTEA_URL}/corba.tar.xz -> ${CORBA_GENTOO_TARBALL} + ${ICEDTEA_URL}/jaxp.tar.xz -> ${JAXP_GENTOO_TARBALL} + ${ICEDTEA_URL}/jaxws.tar.xz -> ${JAXWS_GENTOO_TARBALL} + ${ICEDTEA_URL}/jdk.tar.xz -> ${JDK_GENTOO_TARBALL} + ${ICEDTEA_URL}/hotspot.tar.xz -> ${HOTSPOT_GENTOO_TARBALL} + ${ICEDTEA_URL}/nashorn.tar.xz -> ${NASHORN_GENTOO_TARBALL} + ${ICEDTEA_URL}/langtools.tar.xz -> ${LANGTOOLS_GENTOO_TARBALL} + ${DROP_URL}/cacao/${CACAO_TARBALL} -> ${CACAO_GENTOO_TARBALL} + ${DROP_URL}/jamvm/${JAMVM_TARBALL} -> ${JAMVM_GENTOO_TARBALL}" +EHG_REPO_URI="http://icedtea.classpath.org/hg/icedtea8" +EHG_REVISION="${ICEDTEA_PKG}${ICEDTEA_PRE}" + +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" +KEYWORDS="" + +IUSE="+alsa cacao cjk +cups debug doc examples +gtk headless-awt + jamvm +jbootstrap libressl nsplugin pax_kernel + pulseaudio sctp selinux smartcard +source +sunec test +webstart zero" + +REQUIRED_USE="gtk? ( !headless-awt )" + +# Ideally the following were optional at build time. +ALSA_COMMON_DEP=" + >=media-libs/alsa-lib-1.0" +CUPS_COMMON_DEP=" + >=net-print/cups-1.2.12" +X_COMMON_DEP=" + >=media-libs/giflib-4.1.6:= + >=media-libs/libpng-1.2:0= + >=x11-libs/libX11-1.1.3 + >=x11-libs/libXext-1.1.1 + >=x11-libs/libXi-1.1.3 + >=x11-libs/libXrender-0.9.4 + >=x11-libs/libXtst-1.0.3 + x11-libs/libXcomposite" +X_DEPEND=" + >=x11-libs/libXau-1.0.3 + >=x11-libs/libXdmcp-1.0.2 + >=x11-libs/libXinerama-1.0.2 + x11-proto/inputproto + >=x11-proto/xextproto-7.1.1 + x11-proto/xineramaproto + x11-proto/xproto" + +# The Javascript requirement is obsolete; OpenJDK 8+ has Nashorn +# Kerberos will be added following PR1537 +COMMON_DEP=" + >=dev-libs/glib-2.26:2 + >=dev-util/systemtap-1 + media-libs/fontconfig + >=media-libs/freetype-2.5.3:2= + >=media-libs/lcms-2.5 + >=sys-libs/zlib-1.2.3:= + virtual/jpeg:0= + sctp? ( net-misc/lksctp-tools ) + smartcard? ( sys-apps/pcsc-lite ) + sunec? ( >=dev-libs/nss-3.16.1-r1 )" + +# Gtk+ will move to COMMON_DEP in time; PR1982 +# gsettings-desktop-schemas will be needed for native proxy support; PR1976 +RDEPEND="${COMMON_DEP} + !dev-java/icedtea:0 + !dev-java/icedtea-web:7 + media-fonts/dejavu + alsa? ( ${ALSA_COMMON_DEP} ) + cjk? ( + media-fonts/arphicfonts + media-fonts/baekmuk-fonts + media-fonts/lklug + media-fonts/lohit-fonts + media-fonts/sazanami + ) + cups? ( ${CUPS_COMMON_DEP} ) + gtk? ( + >=dev-libs/atk-1.30.0 + >=x11-libs/cairo-1.8.8:= + x11-libs/gdk-pixbuf:2 + >=x11-libs/gtk+-2.8:2= + >=x11-libs/pango-1.24.5 + ) + !headless-awt? ( ${X_COMMON_DEP} ) + selinux? ( sec-policy/selinux-java )" + +# ca-certificates, perl and openssl are used for the cacerts keystore generation +# perl is needed for running the SystemTap tests +# lsb-release is used to obtain distro information for the version & crash dump output +# attr is needed for xattr.h which defines the extended attribute syscalls used by NIO2 +# x11-libs/libXt is needed for headers only (Intrinsic.h, IntrinsicP.h, Shell.h, StringDefs.h) +# Ant is no longer needed under the new build system +DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP} ${X_DEPEND} + || ( + dev-java/icedtea-bin:8 + dev-java/icedtea-bin:7 + dev-java/icedtea:8 + dev-java/icedtea:7 + ) + app-arch/cpio + app-arch/unzip + app-arch/zip + app-misc/ca-certificates + dev-lang/perl + !libressl? ( dev-libs/openssl ) + libressl? ( dev-libs/libressl ) + sys-apps/attr + sys-apps/lsb-release + x11-libs/libXt + virtual/pkgconfig + pax_kernel? ( sys-apps/elfix )" + +PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 ) + nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] ) + pulseaudio? ( dev-java/icedtea-sound )" + +S="${WORKDIR}"/${ICEDTEA_PKG} + +icedtea_check_requirements() { + local CHECKREQS_DISK_BUILD + + if use doc; then + CHECKREQS_DISK_BUILD="9000M" + else + CHECKREQS_DISK_BUILD="8500M" + fi + + check-reqs_pkg_${EBUILD_PHASE} +} + +pkg_pretend() { + icedtea_check_requirements +} + +pkg_setup() { + icedtea_check_requirements + + JAVA_PKG_WANT_BUILD_VM=" + icedtea-8 icedtea-bin-8 + icedtea-7 icedtea-bin-7" + JAVA_PKG_WANT_SOURCE="1.5" + JAVA_PKG_WANT_TARGET="1.5" + + java-vm-2_pkg_setup + java-pkg-2_pkg_setup +} + +src_unpack() { + mercurial_src_unpack +} + +java_prepare() { + # For bootstrap builds as the sandbox control file might not yet exist. + addpredict /proc/self/coredump_filter + + # icedtea doesn't like some locales. #330433 #389717 + export LANG="C" LC_ALL="C" + + eautoreconf +} + +src_configure() { + local cacao_config config hotspot_port jamvm_config use_cacao use_jamvm use_zero zero_config + local vm=$(java-pkg_get-current-vm) + + # gcj-jdk ensures ecj is present. + if use jbootstrap || has "${vm}" gcj-jdk; then + use jbootstrap || einfo "bootstrap is necessary when building with ${vm}, ignoring USE=\"-jbootstrap\"" + config+=" --enable-bootstrap" + else + config+=" --disable-bootstrap" + fi + + # Use Zero if requested + if use zero; then + use_zero="yes" + fi + + # Use JamVM if requested + if use jamvm; then + use_jamvm="yes" + fi + + # Use CACAO if requested + if use cacao; then + use_cacao="yes" + fi + + # Are we on a architecture with a HotSpot port? + # In-tree JIT ports are available for amd64, arm, arm64, ppc64 (be&le), SPARC and x86. + if { use amd64 || use arm64 || use ppc64 || use sparc || use x86; }; then + hotspot_port="yes" + fi + + # Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ... + # Otherwise use Zero for now until alternate VMs are working + if test "x${hotspot_port}" != "xyes"; then + use_zero="yes" + fi + + # Turn on JamVM if needed (non-HS archs) or requested + if test "x${use_jamvm}" = "xyes"; then + if test "x${hotspot_port}" = "xyes"; then + ewarn 'Enabling JamVM on an architecture with HotSpot support; issues may result.' + ewarn 'If so, please rebuild with USE="-jamvm"' + fi + ewarn 'JamVM is known to still have issues with IcedTea 3.x; please rebuild with USE="-jamvm"' + jamvm_config="--enable-jamvm" + fi + + # Turn on CACAO if needed (non-HS archs) or requested + if test "x${use_cacao}" = "xyes"; then + if test "x${hotspot_port}" = "xyes"; then + ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.' + ewarn 'If so, please rebuild with USE="-cacao"' + fi + ewarn 'CACAO is known to still have issues with IcedTea 3.x; please rebuild with USE="-cacao"' + cacao_config="--enable-cacao" + fi + + # Turn on Zero if needed (non-HS/CACAO archs) or requested + if test "x${use_zero}" = "xyes"; then + if test "x${hotspot_port}" = "xyes"; then + ewarn 'Enabling Zero on an architecture with HotSpot support; performance will be significantly reduced.' + fi + zero_config="--enable-zero" + fi + + # IcedTea itself doesn't handle ccache yet. + if has ccache ${FEATURES}; then + ewarn 'ccache has been known to break IcedTea. Disable it before filing bugs.' + export enable_ccache=yes + else + export enable_ccache=no + fi + + config+=" --with-parallel-jobs=$(makeopts_jobs)" + + unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS + + econf ${config} \ + --with-openjdk-src-zip="${DISTDIR}/${OPENJDK_GENTOO_TARBALL}" \ + --with-corba-src-zip="${DISTDIR}/${CORBA_GENTOO_TARBALL}" \ + --with-jaxp-src-zip="${DISTDIR}/${JAXP_GENTOO_TARBALL}" \ + --with-jaxws-src-zip="${DISTDIR}/${JAXWS_GENTOO_TARBALL}" \ + --with-jdk-src-zip="${DISTDIR}/${JDK_GENTOO_TARBALL}" \ + --with-hotspot-src-zip="${DISTDIR}/${HOTSPOT_GENTOO_TARBALL}" \ + --with-langtools-src-zip="${DISTDIR}/${LANGTOOLS_GENTOO_TARBALL}" \ + --with-nashorn-src-zip="${DISTDIR}/${NASHORN_GENTOO_TARBALL}" \ + --with-cacao-src-zip="${DISTDIR}/${CACAO_GENTOO_TARBALL}" \ + --with-jamvm-src-zip="${DISTDIR}/${JAMVM_GENTOO_TARBALL}" \ + --with-jdk-home="$(java-config -O)" \ + --prefix="${EPREFIX}/usr/$(get_libdir)/icedtea${SLOT}" \ + --mandir="${EPREFIX}/usr/$(get_libdir)/icedtea${SLOT}/man" \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ + --with-pkgversion="Gentoo ${PF}" \ + --disable-downloading --disable-Werror --disable-tests \ + --enable-system-lcms --enable-system-jpeg \ + --enable-system-zlib --disable-systemtap-tests \ + $(use_enable !headless-awt system-gif) \ + $(use_enable !headless-awt system-png) \ + $(use_enable !debug optimizations) \ + $(use_enable doc docs) \ + $(use_with pax_kernel pax "${EPREFIX}/usr/sbin/paxmark.sh") \ + $(use_enable sunec) \ + ${zero_config} ${cacao_config} ${jamvm_config} +} + +src_compile() { + # OpenJDK is quite picky about ccache and dies if you attempt to use + # it via wrapper symlinks like Gentoo normally does. + PATH=$(sed 's#[^:]*/ccache/bin:##g' <<< "${PATH}") emake +} + +src_test() { + # Use Xvfb for tests + unset DISPLAY + + Xemake check +} + +src_install() { + default + + local dest="/usr/$(get_libdir)/icedtea${SLOT}" + local ddest="${ED}${dest#/}" + + if ! use alsa; then + rm -v "${ddest}"/jre/lib/$(get_system_arch)/libjsoundalsa.* || die + fi + + # Ensures Headless-AwtGraphicsEnvironment is used. + # Hack; we should get IcedTea to support passing --disable-headful + if use headless-awt; then + rm -vr "${ddest}"/jre/lib/$(get_system_arch)/lib*{[jx]awt,splashscreen}* \ + "${ddest}"/{,jre/}bin/policytool "${ddest}"/bin/appletviewer || die + fi + + if ! use examples; then + rm -r "${ddest}"/demo "${ddest}"/sample || die + fi + + if ! use source; then + rm -v "${ddest}"/src.zip || die + fi + + # provided by icedtea-web but we need it in JAVA_HOME to work with run-java-tool + if use webstart || use nsplugin; then + dosym /usr/libexec/icedtea-web/itweb-settings ${dest}/bin/itweb-settings + dosym /usr/libexec/icedtea-web/itweb-settings ${dest}/jre/bin/itweb-settings + fi + if use webstart; then + dosym /usr/libexec/icedtea-web/javaws ${dest}/bin/javaws + dosym /usr/libexec/icedtea-web/javaws ${dest}/jre/bin/javaws + fi + dosym /usr/share/doc/${PF} /usr/share/doc/${PN}${SLOT} + + # Fix the permissions. + find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die + + # We need to generate keystore - bug #273306 + einfo "Generating cacerts file from certificates in ${EPREFIX}/usr/share/ca-certificates/" + mkdir "${T}/certgen" && cd "${T}/certgen" || die + cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die + for c in "${EPREFIX}"/usr/share/ca-certificates/*/*.crt; do + openssl x509 -text -in "${c}" >> all.crt || die + done + ./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die + cp -vRP cacerts "${ddest}/jre/lib/security/" || die + chmod 644 "${ddest}/jre/lib/security/cacerts" || die + + set_java_env "${FILESDIR}/icedtea.env" + java-vm_sandbox-predict /proc/self/coredump_filter +} + +pkg_preinst() { gnome2_icon_savelist; } +pkg_postinst() { gnome2_icon_cache_update; } +pkg_postrm() { gnome2_icon_cache_update; }