1 |
commit: b81c6cda810dcb3e322a554b9cde88cd27c47248 |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 24 10:34:16 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 24 10:39:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b81c6cda |
7 |
|
8 |
app-eselect/eselect-java: add 0.5.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/853928 |
11 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
12 |
|
13 |
app-eselect/eselect-java/Manifest | 1 + |
14 |
app-eselect/eselect-java/eselect-java-0.5.0.ebuild | 35 ++++++++++++++++++++++ |
15 |
2 files changed, 36 insertions(+) |
16 |
|
17 |
diff --git a/app-eselect/eselect-java/Manifest b/app-eselect/eselect-java/Manifest |
18 |
index fe408730aa17..46bbf129f9d5 100644 |
19 |
--- a/app-eselect/eselect-java/Manifest |
20 |
+++ b/app-eselect/eselect-java/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST eselect-java-0.4.3.tar.bz2 13799 BLAKE2B 353035ef1c0b3e1cd79021c9198bedf29fdcb3f13fdfb2e5a8384796f2a48236d671f07d7657409273dd1f52e37272d91383d2a14d64ed0cedb686a8e277b009 SHA512 40b10768f00f03c49e1b60aab615658ac1d986444aaf487ca74f7c14edb5dce62d85fc3ce049e857d0ec2eaea496afa17c45de59e7179331f112eb51cbe451e5 |
23 |
+DIST eselect-java-0.5.0.tar.bz2 14271 BLAKE2B dc285ad17b62043cc5085a586547a06a12c09f5a80f25dc423db9cb806baaa669a55106f605973fcae7103e35ec673ae2e3a6119730b1789e816a09079deabc8 SHA512 89724b96125911f0abc0363e0b2c9df75d0d52df1a5e16e80efa20a8de39b1bc0d411d297581b3440c944f498688e5dcffe5432f5e46836115d2eb620f31c03a |
24 |
|
25 |
diff --git a/app-eselect/eselect-java/eselect-java-0.5.0.ebuild b/app-eselect/eselect-java/eselect-java-0.5.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..ef497b375a18 |
28 |
--- /dev/null |
29 |
+++ b/app-eselect/eselect-java/eselect-java-0.5.0.ebuild |
30 |
@@ -0,0 +1,35 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit autotools |
37 |
+ |
38 |
+DESCRIPTION="A set of eselect modules for Java" |
39 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Java" |
40 |
+SRC_URI="https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
45 |
+ |
46 |
+RDEPEND="app-admin/eselect" |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ eautoreconf |
51 |
+} |
52 |
+ |
53 |
+pkg_postinst() { |
54 |
+ local REMOVED=0 |
55 |
+ |
56 |
+ rm -v "${EROOT}"/usr/lib*/nsbrowser/plugins/javaplugin.so 2>/dev/null && REMOVED=1 |
57 |
+ rm -v "${EROOT}"/etc/java-config-2/current-icedtea-web-vm 2>/dev/null && REMOVED=1 |
58 |
+ |
59 |
+ if [[ ${REMOVED} = 1 ]]; then |
60 |
+ elog "The eselect java-nsplugin module has been removed and your configuration" |
61 |
+ elog "has been cleaned up. From now on, you may only install either Oracle or" |
62 |
+ elog "IcedTea's plugin but not both. Note you can use IcedTea's plugin with an" |
63 |
+ elog "Oracle VM. See the README installed with icedtea-web for more details." |
64 |
+ fi |
65 |
+} |