1 |
commit: b0e0734184c491a61ed0f397e5e23cf4a5e6a3d6 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 11 16:58:02 2016 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 11 16:58:15 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0e07341 |
7 |
|
8 |
app-eselect/eselect-java: bug #549498: less spam from "eselect $x show". |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
.../eselect-java/eselect-java-0.2.0-r1.ebuild | 46 ++++++++++++++++++++++ |
13 |
1 file changed, 46 insertions(+) |
14 |
|
15 |
diff --git a/app-eselect/eselect-java/eselect-java-0.2.0-r1.ebuild b/app-eselect/eselect-java/eselect-java-0.2.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..8207580 |
18 |
--- /dev/null |
19 |
+++ b/app-eselect/eselect-java/eselect-java-0.2.0-r1.ebuild |
20 |
@@ -0,0 +1,46 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+inherit autotools |
28 |
+ |
29 |
+DESCRIPTION="A set of eselect modules for Java" |
30 |
+HOMEPAGE="https://www.gentoo.org/proj/en/java/" |
31 |
+SRC_URI="https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
36 |
+IUSE="" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ !app-eselect/eselect-ecj |
40 |
+ !app-eselect/eselect-maven |
41 |
+ !<dev-java/java-config-2.2 |
42 |
+ app-admin/eselect" |
43 |
+ |
44 |
+src_prepare() { |
45 |
+ eautoreconf |
46 |
+ |
47 |
+ # Bug 549498: "eselect XXX show" should never send output to stderr. |
48 |
+ sed -i \ |
49 |
+ -e '/^do_show.. {$/,/^}$/{ /echo/s,>&2$,, }' \ |
50 |
+ "${S}"/src/modules/maven.eselect.in \ |
51 |
+ "${S}"/src/modules/ecj.eselect.in |
52 |
+} |
53 |
+ |
54 |
+pkg_postinst() { |
55 |
+ local REMOVED=0 |
56 |
+ |
57 |
+ rm -v "${EROOT}"usr/lib*/nsbrowser/plugins/javaplugin.so 2>/dev/null && REMOVED=1 |
58 |
+ rm -v "${EROOT}"etc/java-config-2/current-icedtea-web-vm 2>/dev/null && REMOVED=1 |
59 |
+ |
60 |
+ if [[ "${REMOVED}" = 1 ]]; then |
61 |
+ elog "The eselect java-nsplugin module has been removed and your configuration" |
62 |
+ elog "has been cleaned up. From now on, you may only install either Oracle or" |
63 |
+ elog "IcedTea's plugin but not both. Note you can use IcedTea's plugin with an" |
64 |
+ elog "Oracle VM. See the README installed with icedtea-web for more details." |
65 |
+ fi |
66 |
+} |