1 |
commit: 814862227de8ae9ed27c5553727bae3dc808d9bb |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 27 21:02:06 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 27 21:07:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81486222 |
7 |
|
8 |
dev-java/icedtea-bin: bump to eapi8 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
dev-java/icedtea-bin/icedtea-bin-3.16.0-r1.ebuild | 132 ++++++++++++++++++++++ |
14 |
1 file changed, 132 insertions(+) |
15 |
|
16 |
diff --git a/dev-java/icedtea-bin/icedtea-bin-3.16.0-r1.ebuild b/dev-java/icedtea-bin/icedtea-bin-3.16.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..03f3ec1c260e |
19 |
--- /dev/null |
20 |
+++ b/dev-java/icedtea-bin/icedtea-bin-3.16.0-r1.ebuild |
21 |
@@ -0,0 +1,132 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit java-vm-2 toolchain-funcs |
28 |
+ |
29 |
+abi_uri() { |
30 |
+ echo "${2-$1}? ( |
31 |
+ ${BASE_URI}/${PN}-core-${PV}${3+-r${3}}-${1}.tar.xz |
32 |
+ examples? ( ${BASE_URI}/${PN}-examples-${PV}${3+-r${3}}-${1}.tar.xz ) |
33 |
+ )" |
34 |
+} |
35 |
+ |
36 |
+BASE_URI="https://dev.gentoo.org/~gyakovlev/distfiles" |
37 |
+SRC_URI=" |
38 |
+ doc? ( ${BASE_URI}/${PN}-doc-${PV}.tar.xz ) |
39 |
+ source? ( ${BASE_URI}/${PN}-src-${PV}.tar.xz ) |
40 |
+ big-endian? ( $(abi_uri ppc64) ) |
41 |
+ !big-endian? ( $(abi_uri ppc64le ppc64) ) |
42 |
+ $(abi_uri amd64) |
43 |
+ $(abi_uri arm) |
44 |
+ $(abi_uri arm64) |
45 |
+ $(abi_uri x86) |
46 |
+" |
47 |
+ |
48 |
+DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK" |
49 |
+HOMEPAGE="http://icedtea.classpath.org" |
50 |
+ |
51 |
+LICENSE="GPL-2-with-classpath-exception" |
52 |
+SLOT="8" |
53 |
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~x86" |
54 |
+IUSE="+alsa big-endian cups doc examples +gtk headless-awt pulseaudio selinux source" |
55 |
+ |
56 |
+REQUIRED_USE="gtk? ( !headless-awt )" |
57 |
+ |
58 |
+RESTRICT="preserve-libs strip" |
59 |
+QA_PREBUILT="opt/.*" |
60 |
+ |
61 |
+DEPEND="app-arch/xz-utils" |
62 |
+ |
63 |
+RDEPEND=" |
64 |
+ >=dev-libs/glib-2.60.7:2 |
65 |
+ >=media-libs/fontconfig-2.13:1.0 |
66 |
+ >=media-libs/freetype-2.9.1:2 |
67 |
+ >=media-libs/lcms-2.9:2 |
68 |
+ >=sys-apps/baselayout-java-0.1.0-r1 |
69 |
+ >=sys-libs/zlib-1.2.11-r2 |
70 |
+ virtual/jpeg-compat:62 |
71 |
+ alsa? ( >=media-libs/alsa-lib-1.2 ) |
72 |
+ cups? ( >=net-print/cups-2.0 ) |
73 |
+ gtk? ( |
74 |
+ >=dev-libs/atk-2.32.0 |
75 |
+ >=x11-libs/cairo-1.16.0 |
76 |
+ x11-libs/gdk-pixbuf:2 |
77 |
+ >=x11-libs/gtk+-2.24:2 |
78 |
+ >=x11-libs/pango-1.42 |
79 |
+ ) |
80 |
+ selinux? ( sec-policy/selinux-java ) |
81 |
+ virtual/ttf-fonts |
82 |
+ !headless-awt? ( |
83 |
+ media-libs/giflib:0/7 |
84 |
+ =media-libs/libpng-1.6* |
85 |
+ >=x11-libs/libX11-1.6 |
86 |
+ >=x11-libs/libXcomposite-0.4 |
87 |
+ >=x11-libs/libXext-1.3 |
88 |
+ >=x11-libs/libXi-1.7 |
89 |
+ >=x11-libs/libXrender-0.9.10 |
90 |
+ >=x11-libs/libXtst-1.2 |
91 |
+ ) |
92 |
+" |
93 |
+ |
94 |
+PDEPEND="pulseaudio? ( dev-java/icedtea-sound )" |
95 |
+ |
96 |
+S="${WORKDIR}" |
97 |
+ |
98 |
+pkg_pretend() { |
99 |
+ if [[ "$(tc-is-softfloat)" != "no" ]]; then |
100 |
+ die "These binaries require a hardfloat system." |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ default |
106 |
+ |
107 |
+ # I wouldn't normally use -f below but symlinks in the arm files |
108 |
+ # make this fail otherwise and any other approach would be tedious. |
109 |
+ |
110 |
+ if ! use alsa; then |
111 |
+ rm -fv */jre/lib/*/libjsoundalsa.* || die |
112 |
+ fi |
113 |
+ |
114 |
+ if use headless-awt; then |
115 |
+ rm -fvr */jre/lib/*/lib*{[jx]awt,splashscreen}* \ |
116 |
+ */{,jre/}bin/policytool */bin/appletviewer || die |
117 |
+ fi |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ local dest="/opt/${P}" |
122 |
+ local ddest="${ED}/${dest#/}" |
123 |
+ dodir "${dest}" |
124 |
+ |
125 |
+ dodoc ${P}-${ABI}/doc/{ASSEMBLY_EXCEPTION,AUTHORS,NEWS,README,THIRD_PARTY_README} |
126 |
+ use doc && dodoc -r ${P}/doc/html |
127 |
+ |
128 |
+ # doins doesn't preserve executable bits. |
129 |
+ cp -pRP ${P}-${ABI}/{bin,include,jre,lib,man} "${ddest}" || die |
130 |
+ |
131 |
+ if use examples; then |
132 |
+ cp -pRP ${P}-${ABI}/{demo,sample} "${ddest}" || die |
133 |
+ fi |
134 |
+ |
135 |
+ if use source; then |
136 |
+ cp ${P}/src.zip "${ddest}" || die |
137 |
+ fi |
138 |
+ |
139 |
+ # use system-wide cacert store |
140 |
+ rm "${ddest}"/jre/lib/security/cacerts || die |
141 |
+ dosym ../../../../../etc/ssl/certs/java/cacerts "${dest}"/jre/lib/security/cacerts |
142 |
+ |
143 |
+ java-vm_install-env "${FILESDIR}/icedtea-bin.env.sh" |
144 |
+ |
145 |
+ # Both icedtea itself and the icedtea ebuild set PAX markings but we |
146 |
+ # disable them for the icedtea-bin build because the line below will |
147 |
+ # respect end-user settings when icedtea-bin is actually installed. |
148 |
+ java-vm_set-pax-markings "${ddest}" |
149 |
+ |
150 |
+ # Each invocation appends to the config. |
151 |
+ java-vm_revdep-mask "${EPREFIX}${dest}" |
152 |
+ java-vm_sandbox-predict /proc/self/coredump_filter |
153 |
+} |