summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-01-30 23:33:02 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-02-01 22:01:42 +0000
commit1531a233f63ec7721dd9bf29b2203f8c04386130 (patch)
tree8f2e4937a537bf498c49daa7b75bb9588359ddc3 /dev-java
parentdev-vcs/git-tools: upstream bump, now with commit-time functionality. (diff)
downloadgentoo-1531a233f63ec7721dd9bf29b2203f8c04386130.tar.gz
gentoo-1531a233f63ec7721dd9bf29b2203f8c04386130.tar.bz2
gentoo-1531a233f63ec7721dd9bf29b2203f8c04386130.zip
dev-java/icedtea-bin: Prerelease of v3 for Java 8
Currently for ppc64 only, partially for initial testing on a lesser-used platform and partially because Java 7 on ppc64 has given us problems; we need a stable replacement for 6 ASAP. Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/icedtea-bin/Manifest4
-rw-r--r--dev-java/icedtea-bin/files/icedtea-bin-8.env18
-rw-r--r--dev-java/icedtea-bin/icedtea-bin-3.0.0_pre08.ebuild166
3 files changed, 188 insertions, 0 deletions
diff --git a/dev-java/icedtea-bin/Manifest b/dev-java/icedtea-bin/Manifest
index 1b1cb207bb9e..5fde820d2dfc 100644
--- a/dev-java/icedtea-bin/Manifest
+++ b/dev-java/icedtea-bin/Manifest
@@ -1,16 +1,20 @@
+DIST icedtea-bin-core-3.0.0_pre08-ppc64.tar.xz 49938816 SHA256 870e853f4108b6b916d23e9f826a85bd65880db934a28c993c303aae70f7c65a SHA512 9eedbb033bc64010cf54c9459cbf50fed4d87c3b016883ffb80ece0cae01be50f7e6532c4eb135fe7292a83bc82a175f0eb21b1bb60d75f20d7e16f0ee057fb6 WHIRLPOOL 60ed17f1dd131fc417245dcddd04f79fc477357695662731d511afb2ace92f7d6c358d50dce01c61a529357b3bd9df8f1b65fefe1a4c12fef621d6bca7814309
DIST icedtea-bin-core-6.1.13.9-amd64.tar.xz 49472280 SHA256 3faf62158a33cf1021f63f137a5b35c1c04bc4366d40d7288a6745911bf15034 SHA512 237266a1843b5d1ed0b4553fa36e88d7dce7f6a9bf6e13277d38bc83bb85cfac9b031ed5b362e73e5bc24464893cfdb37bfe67fcf3d4e218a87f101ab56afae7 WHIRLPOOL dd067ee66e2ce7ebbf08d4187d4699198d9759d6571c7d3bf127b7c8ff3a8eb1bea48bf45ed5d480df8de7320ab4f9a00ed6608935f2b3b794a99141568aa57a
DIST icedtea-bin-core-6.1.13.9-x86.tar.xz 50947228 SHA256 fbef618f82fc640553bf69383ddf6a4ffb4da5191426d040f0186538fdb3ab2f SHA512 04a066493a0e742da0508fa7e010e7663e73a48e0663939884d22a2f7fa4d440d3680f6a38d7909b2b2f569bbd35facabe838a275cdd589556570601484d443c WHIRLPOOL 9e144546554bf0de5c7cc280fe20a3cd97554d0745b071d0c3f5f97a394556c71246423a39d10de207d0058889ddc010fd367813f4d10fe888d49924b4d7bac7
DIST icedtea-bin-core-7.2.6.4-amd64.tar.xz 53010708 SHA256 16e33d1f686c657c9b16c63d206bfbc6b079dd2112108f4205057e6998291345 SHA512 ee6674d99d2ffcc9c9209eb22f9efc0f2ff4a57e1cdf6763de7ff505e312cc740068a68c4ad77ff8f9941ebc5407cd2b3cacb17dda22fefb77c9a0dab4ea66a6 WHIRLPOOL e86c06eefd6f7eb605c7a39c6865f8eb56260febe595527cbbd6db41ea2fcb7c0a65bb60846dd2bfaaf6b2ee3548297a0bb3af61df900d10b8c5a7605d95737e
DIST icedtea-bin-core-7.2.6.4-arm.tar.xz 43993060 SHA256 980d3185cda11cc4b7b6287d3a7a5ea7c87e5b138f066f9fc6d2a2ec6b7157d6 SHA512 892b7e0268baabd2e921d5144e233c127698bff21da075f77c3b96b0c70a0a4b9515cd184bc992f89c3821eea9decaac3bee507ceeb0758573280b51f92e6928 WHIRLPOOL ba334447e3ae703c8240667be155844b470b54753792dc6c8ae207a73b3a9b278752eee4a085d13cc5b6fa5371da631cc6e02607d524810df14f056745821ac9
DIST icedtea-bin-core-7.2.6.4-ppc64.tar.xz 42990476 SHA256 b5a94318086797e230e9cdc3f87224464979b5024ce0a02a6a10875e15bc5609 SHA512 be065eeb6682163b290ad4374a2d24ed4c7cb042d2253962bb9c2129d1a78ec97439c3e0fa4f3a6db74fbaee2f9ef8f09dd80188d55b5aabde320a13c1c8d2e4 WHIRLPOOL 266bbb109cae1d97befc1cca6a915f989ec5d43b689499c42a26d3be7a5903bd4c9ae7cc571f044b59f0a786ab74bd68b8eb46691ac743f31b9e20eb23cedd5f
DIST icedtea-bin-core-7.2.6.4-x86.tar.xz 54661536 SHA256 9329914ee4a6072afb940e2a3f63b5ee356cb1d332a94b46d38e54ea68c2a4b2 SHA512 42348aca553722161102f7eaa9833ff4723b183a2844d5a2cdab9d1dd88ac02e991971a61c8b934f1455b21f9a11947b2a753283941135495c84717ca55cd825 WHIRLPOOL 3548ec0058b38cfc551a687f8f1fc998872975d3c9bd07124b3593ed8da59c2a689de133c414ec934cee8a47e5a4ef915e42ab9c4541cbf7d2b358505e6d729c
+DIST icedtea-bin-doc-3.0.0_pre08.tar.xz 11639920 SHA256 8bac327c2b7ee9f6d025e7d1c45f68f807b065a9c498d26ccffdbecf3227d4ca SHA512 77eca88faf7d0a59b43f56448ef4667cb43127df0673778f7508ee90f95aaf1d24720148b8a91548e842bab129b9298e47f3a8caa79ea99289983e22123f378a WHIRLPOOL 6747394f96a789ab4e716e38e67b60dbccdfacd491b8c8e13571b6fc250b7342661aab32928e79d6d6fbcb5543afeddbe4fe48cac26eb7d051e4abdae2662d75
DIST icedtea-bin-doc-6.1.13.9.tar.xz 9853020 SHA256 94ff85ba64be5c8cfcf261cb6293e48cc3239c1c9da69e98fbc744a82620bd16 SHA512 501d483dccfc349c6dd8a55f9d509d2859774054be9b9ca8020a75e3975d740d78d40184aa86f16b5ea948e16b74944ce4d890396d8ccb5209f7a9514a8b649a WHIRLPOOL 751afbb1e0e2384419424d9ae093893c2e377c004c69d0e06979385823f743ee33321b3c3076e0c8e0b16625a159293d81f959455ca6ee779dfdfa5fc5361907
DIST icedtea-bin-doc-7.2.6.4.tar.xz 10603692 SHA256 07e1bf90c61b56bf311d528891f30ed0cd67f073e6019aa92c8907c86bf1c6ac SHA512 6c97c37926989b1a36bb1fe9712caf6270c539646aeb76d30a10e9479ecbf734f2f56ef934f774a9cfe4d713651fd0b8c99872f6651f2d7e3c86a18294f9ea79 WHIRLPOOL 023eb8ee8851882101cff967d7ee58f69aa569257f113e512faef2ba3eebf066f01b80440cfbb59c7ed67b36630426ea88300724e7348611ae80c498e5da8b84
+DIST icedtea-bin-examples-3.0.0_pre08-ppc64.tar.xz 1804960 SHA256 3b0226b82194b575cfc6efd7dd1e08bedd6e2ad97f73e6087d6b189ec115eb5c SHA512 fb8a42e21aa94b7ae497e41b13e8bd09f17c2f435e01336d340d9d52eeac3bd647f91f1405224d707ecad9444695e85de43006ab9f072bff7d577699f005e5da WHIRLPOOL 3408560bec2dd5eb1fec83291f8062362044d1b31c9fac7fbf1e20a809d017e1666dc8a017fc1a547b5af3918f2e68cd27e0f2d7321259ca4b77e15375c05bc3
DIST icedtea-bin-examples-6.1.13.9-amd64.tar.xz 1904980 SHA256 aa10b253ba35e14d83852c80999c04bfee7c6ffee7b1baa9df502e253a6a87a1 SHA512 f9be25093aed5b762a268a5fc2cd943fa010bab469e1fd0cc9c39c927a9a154041e637036bfa804cc826f1c674b661ee6d4a5dd7d29820df1de4390db403a229 WHIRLPOOL 121122c84abe3ddbddf5faf6e163ce9a34331cdddfc8cd0ca746d8ba94a79af31c1dadba711aa4bb709edd91605d81785de4fe4ff1e3edd526d4aff592b18816
DIST icedtea-bin-examples-6.1.13.9-x86.tar.xz 1904548 SHA256 1aaaaa4ba6c37b5f03ecea8a978c9bdac371e5891dd02459cd7f4174286b182a SHA512 fcdae8dc62376f60a19a3de1fbba867fcbcaa069b5d669120e53d1792119a147566ce59e3e3205ca1db0afea3e6809f339a4a443ff0d21cb1a7c4aa8eb5060df WHIRLPOOL 5625b1af755e79c1e4360ac3fcbf786664525c9508f6fe902788f95a1be9b94d429a61ef0e475fa9d0e2c4ea386fe251a299305961e7936f932c8e2c0abcaa3e
DIST icedtea-bin-examples-7.2.6.4-amd64.tar.xz 1796924 SHA256 1cba4146c597bd9cae873965b2f198fa944a368fe4bd39deb0e0a06df8638143 SHA512 10be9af6a44e0e10fff7df279e4c0912df4f53e48b6fbb3891a1f9b72eb4ca7c696019eee780ad7bfd2cf9001e8acdc44739ba8c95706a46e33278e104c1bbbd WHIRLPOOL d5272f7a711dbf69d976b83623b64e1f55cb1d459a081aa5c71dffb585675c2b05b00798fe034007e7f58d94f7dabb0c8a47c9ffec740c2d55bfbfbec35326cd
DIST icedtea-bin-examples-7.2.6.4-arm.tar.xz 1779692 SHA256 2b0965c93b8b1fe97ac25519739f132824f2f6cfb0662dcc93e5016f640f3024 SHA512 a16bcf86f3fba0dfd09d233cc53cb7e49f52317479b84db5d49939e3d22afdc31c2e75ec81bc8ebe7635e993097d0bc0d7b0e9610cfe3c6491b0f69f578e4e55 WHIRLPOOL 1ecbc914e22fe52697a57d0e5cb202c96478a07447f33877a7e3ad3b8e27f35e640ecf856e35c4c1e288220208efc0244b0b1f93ff6f1b83df0e64b001695e5c
DIST icedtea-bin-examples-7.2.6.4-ppc64.tar.xz 1790468 SHA256 cb0b8ce994281676259f92e91b513f23765ad7364367986f46bbbeca661a914d SHA512 d749f6d42a7c05bc2499a4df69b6921e0fc36bbf12bef1cd64cf79fc13b1c256c2b10159f120bbf5546696777a3d71e64a3370903cfc49d095925931eb12f75f WHIRLPOOL 44b41eb5f857f695e305f85ab7f3a6b71989372f1b327ba6d8dab1251237fe9ea274bf29e32663644298b44febef3b5b220fa740793bc62e40811b1a0a9aded2
DIST icedtea-bin-examples-7.2.6.4-x86.tar.xz 1796620 SHA256 16591cca92ef9470873f89c6c2291b458c4dc441a8adac1e4a1c34bd5f9514a4 SHA512 7ca0d297247a367c63de0c016949a1157f987592d6481347d31d2b127db71f932f6444c75c42c55357494579357fed65c3261a25ad046f14d473cf58b585822f WHIRLPOOL 8d28811e3c83534e5a2545a15ce3729827073099095e43923d653b6ac3d6d6f4838e24757e6aefd87603e22f27a2a82cacc219459bfe7f2b5f5346750d9cb25a
+DIST icedtea-bin-src-3.0.0_pre08.tar.xz 45637496 SHA256 3a4365c4c4b648141a895cbce0bbb28c2e3ccaeff6ff426210459322437102e1 SHA512 c686bae2b5b283a769c64bc61bd4d184180414e477b22e85a0bf2fb8995ce810bb4e4283c3bb1e75f6dee55c380cd843902ed17517d6575682a46ca5f02e4094 WHIRLPOOL a7d4d2c57548fd082fd77086f38dd4d2f68379b34cfd649232c7e9ed7c1271f949d80779052e91f77ffd0a3e4d5ba3da8ecc815b87a3f72c8647a2666f380f8b
DIST icedtea-bin-src-6.1.13.9.tar.xz 39778948 SHA256 11ed522199d3919f7013f4d3d4fb2324d4505ca60fdbcb015faf635c4dfcfc70 SHA512 4c02e7368ed21882afe68cbba3475a16a30276110282d28984586f1c1e0c3d14278e70e495fc74676ba57df3849b8f60ea24da49c6f41070319c46962f1a221a WHIRLPOOL b6daed3717d434688e8946976d96857ce904d510cb45fc30b464e86d1c123ccb2a81ee07bea432ad6fb5148d1b0a73bebe7f51a0bc2f5b1308701a4fce436d79
DIST icedtea-bin-src-7.2.6.4.tar.xz 40039764 SHA256 62f0cc8dee7a518c01e3fb1cc821686440171c67e32936faedbfd57500d7a252 SHA512 e4e208766f35b9a0d720c5e853bbded04cc38f5f972ff83c759786bdaef43e5a454361be61f677ff57686007d9e393e15345ba9577abf189f94ebb6067ca885c WHIRLPOOL dc9102f20caf079d61a816ed21c791348fe1717cf4424d5b5b8e1928010bcee7eab885bf44a438934ccf6562f1f8b6259a31f45d32b1bf752e893e1153c1cb0e
diff --git a/dev-java/icedtea-bin/files/icedtea-bin-8.env b/dev-java/icedtea-bin/files/icedtea-bin-8.env
new file mode 100644
index 000000000000..e6feaabd034d
--- /dev/null
+++ b/dev-java/icedtea-bin/files/icedtea-bin-8.env
@@ -0,0 +1,18 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+VERSION="IcedTea JDK @PV@"
+JAVA_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/icedtea-bin-@PV@"
+JDK_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/icedtea-bin-@PV@"
+JAVAC="${JAVA_HOME}/bin/javac"
+PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
+ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
+LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
+MANPATH="@GENTOO_PORTAGE_EPREFIX@/opt/icedtea-bin-@PV@/man"
+PROVIDES_TYPE="JDK JRE"
+PROVIDES_VERSION="1.8"
+# Taken from sun.boot.class.path property
+BOOTCLASSPATH="${JAVA_HOME}/jre/lib/resources.jar:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/sunrsasign.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar:${JAVA_HOME}/jre/lib/jfr.jar"
+GENERATION="2"
+ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
diff --git a/dev-java/icedtea-bin/icedtea-bin-3.0.0_pre08.ebuild b/dev-java/icedtea-bin/icedtea-bin-3.0.0_pre08.ebuild
new file mode 100644
index 000000000000..eeecaf8b832d
--- /dev/null
+++ b/dev-java/icedtea-bin/icedtea-bin-3.0.0_pre08.ebuild
@@ -0,0 +1,166 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit java-vm-2 multilib prefix toolchain-funcs
+
+dist="https://dev.gentoo.org/~chewi/distfiles"
+TARBALL_VERSION="${PV}"
+
+DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK"
+HOMEPAGE="http://icedtea.classpath.org"
+SRC_URI="doc? ( ${dist}/${PN}-doc-${TARBALL_VERSION}.tar.xz )
+ source? ( ${dist}/${PN}-src-${TARBALL_VERSION}.tar.xz )"
+
+for arch in ppc64; do
+ SRC_URI+="
+ ${arch}? (
+ ${dist}/${PN}-core-${TARBALL_VERSION}-${arch}.tar.xz
+ examples? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-${arch}.tar.xz )
+ )"
+done
+
+LICENSE="GPL-2-with-linking-exception"
+SLOT="8"
+KEYWORDS="-* ~ppc64"
+
+IUSE="+alsa cjk +cups doc examples +gtk headless-awt nsplugin pulseaudio selinux source +webstart"
+REQUIRED_USE="gtk? ( !headless-awt ) nsplugin? ( !headless-awt )"
+
+RESTRICT="preserve-libs strip"
+QA_PREBUILT="opt/.*"
+
+RDEPEND=">=dev-libs/glib-2.42:2
+ >=dev-libs/nss-3.16.1-r1
+ >=dev-libs/nspr-4.10
+ media-fonts/dejavu
+ >=media-libs/fontconfig-2.11:1.0
+ >=media-libs/freetype-2.5.5:2
+ >=media-libs/lcms-2.6:2
+ >=sys-devel/gcc-4.9.3
+ >=sys-libs/glibc-2.21
+ >=sys-libs/zlib-1.2.8-r1
+ virtual/jpeg:62
+ alsa? ( >=media-libs/alsa-lib-1.0 )
+ !headless-awt? (
+ >=media-libs/giflib-4.1.6-r1
+ media-libs/libpng:0/16
+ >=x11-libs/libX11-1.6
+ >=x11-libs/libXext-1.3
+ >=x11-libs/libXi-1.7
+ >=x11-libs/libXrender-0.9.8
+ >=x11-libs/libXtst-1.2
+ )
+ cjk? (
+ media-fonts/arphicfonts
+ media-fonts/baekmuk-fonts
+ media-fonts/lklug
+ media-fonts/lohit-fonts
+ media-fonts/sazanami
+ )
+ cups? ( >=net-print/cups-2.0 )
+ gtk? (
+ >=dev-libs/atk-2.16.0
+ >=x11-libs/cairo-1.14.2
+ x11-libs/gdk-pixbuf:2
+ >=x11-libs/gtk+-2.24:2
+ >=x11-libs/pango-1.36
+ )
+ selinux? ( sec-policy/selinux-java )"
+
+DEPEND="!arm? ( dev-util/patchelf )"
+
+PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
+ nsplugin? ( >=dev-java/icedtea-web-1.6.1:0 )
+ pulseaudio? ( dev-java/icedtea-sound )"
+
+pkg_pretend() {
+ if [[ "$(tc-is-softfloat)" != "no" ]]; then
+ die "These binaries require a hardfloat system."
+ fi
+}
+
+src_prepare() {
+ if ! use alsa; then
+ rm -v jre/lib/$(get_system_arch)/libjsoundalsa.* || die
+ fi
+
+ if use headless-awt; then
+ rm -vr jre/lib/$(get_system_arch)/lib*{[jx]awt,splashscreen}* \
+ {,jre/}bin/policytool bin/appletviewer || die
+ fi
+
+ if [[ -n "${EPREFIX}" ]]; then
+ # The binaries are built on a non-prefixed system so the
+ # fontconfig needs to have prefixes inserted.
+ sed -i 's:=/:=@GENTOO_PORTAGE_EPREFIX@/:' jre/lib/fontconfig.Gentoo.properties || die
+ eprefixify jre/lib/fontconfig.Gentoo.properties
+ fi
+
+ # Fix the RPATHs, except on arm.
+ # https://bugs.gentoo.org/show_bug.cgi?id=543658#c3
+ # https://github.com/NixOS/patchelf/issues/8
+ if use arm; then
+ ewarn "The RPATHs on these binaries are normally modified to avoid"
+ ewarn "conflicts with an icedtea installation built from source. This"
+ ewarn "is currently not possible on ARM so please refrain from"
+ ewarn "installing dev-java/icedtea on the same system."
+ else
+ local old="/usr/$(get_libdir)/icedtea${SLOT}"
+ local new="${EPREFIX}/opt/${P}"
+ local elf rpath
+
+ for elf in $(find -type f -executable ! -name "*.cgi" || die); do
+ rpath=$(patchelf --print-rpath "${elf}" || die "patchelf ${elf}")
+
+ if [[ -n "${rpath}" ]]; then
+ patchelf --set-rpath "${rpath//${old}/${new}}" "${elf}" || die "patchelf ${elf}"
+ fi
+ done
+ fi
+}
+
+src_install() {
+ local dest="/opt/${P}"
+ local ddest="${ED}${dest#/}"
+ dodir "${dest}"
+
+ # doins doesn't preserve executable bits.
+ cp -pRP bin include jre lib man "${ddest}" || die
+
+ dodoc doc/{ASSEMBLY_EXCEPTION,AUTHORS,NEWS,README,THIRD_PARTY_README}
+ use doc && dodoc -r doc/html
+
+ if use examples; then
+ cp -pRP demo sample "${ddest}" || die
+ fi
+
+ if use source; then
+ cp src.zip "${ddest}" || die
+ fi
+
+ 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
+
+ # Both icedtea itself and the icedtea ebuild set PAX markings but we
+ # disable them for the icedtea-bin build because the line below will
+ # respect end-user settings when icedtea-bin is actually installed.
+ java-vm_set-pax-markings "${ddest}"
+
+ set_java_env
+ java-vm_revdep-mask "${dest}"
+ java-vm_sandbox-predict /proc/self/coredump_filter
+}
+
+pkg_postinst() {
+ # Set as default VM if none exists
+ java-vm-2_pkg_postinst
+}