Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-java/
Date: Mon, 28 Nov 2016 22:51:18
Message-Id: 1480373068.588325937049c7ca75da537f615c961c64b7e2a4.wizardedit@gentoo
1 commit: 588325937049c7ca75da537f615c961c64b7e2a4
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 22:44:15 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 28 22:44:28 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58832593
7
8 app-eselect/eselect-java: version bump - 0.3.0
9
10 Package-Manager: portage-2.3.2
11
12 app-eselect/eselect-java/Manifest | 1 +
13 app-eselect/eselect-java/eselect-java-0.3.0.ebuild | 48 ++++++++++++++++++++++
14 2 files changed, 49 insertions(+)
15
16 diff --git a/app-eselect/eselect-java/Manifest b/app-eselect/eselect-java/Manifest
17 index 91bf0e9..9250d9d 100644
18 --- a/app-eselect/eselect-java/Manifest
19 +++ b/app-eselect/eselect-java/Manifest
20 @@ -1 +1,2 @@
21 DIST eselect-java-0.2.0.tar.bz2 13353 SHA256 a860fdf1d5d0560e206fee3912eb768492115bcb430cb9eba031d0cbf90499bf SHA512 376c72317461c743dd91f8576cff7b1279b8f1672aa878c492ec3ed0da5f3c8d25cbb5fd4d9120109a01466dadbd049fb75d642187c850676d939925bcb55fdd WHIRLPOOL c45da204c312c1277f532756363932aeb057261728f1264cbcc01da6feb7568673aff880fa611c471b60a878434eacda592e3743022130c78247b047dbf848be
22 +DIST eselect-java-0.3.0.tar.bz2 13434 SHA256 e2c5ec1819cceec29d4f6fab6259c7c7fd670e8d2bce0cba99140a6ad960de9e SHA512 d874d1d20d3920d16d5812b2aa28455f9166c6590b711e2bd49b1632e164be18f177eec5f5f2814391966ca3b710aab21b44d29afead2148cc7d0ed90841f9d8 WHIRLPOOL b1b42b5544103c1ab4102dc5c25d24669e6823d4655e9a7357acff3a349975aecc01eb03f935ae69b5dc102e29cfcc71f72d25b041b419ecb0d4112dd332c4a2
23
24 diff --git a/app-eselect/eselect-java/eselect-java-0.3.0.ebuild b/app-eselect/eselect-java/eselect-java-0.3.0.ebuild
25 new file mode 100644
26 index 00000000..cac62cc
27 --- /dev/null
28 +++ b/app-eselect/eselect-java/eselect-java-0.3.0.ebuild
29 @@ -0,0 +1,48 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
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 ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE=""
46 +
47 +RDEPEND="
48 + !app-eselect/eselect-ecj
49 + !app-eselect/eselect-maven
50 + !<dev-java/java-config-2.2
51 + app-admin/eselect"
52 +
53 +src_prepare() {
54 + default
55 +
56 + eautoreconf
57 +
58 + # Bug 549498: "eselect XXX show" should never send output to stderr.
59 + sed -i \
60 + -e '/^do_show.. {$/,/^}$/{ /echo/s,>&2$,, }' \
61 + "${S}"/src/modules/maven.eselect.in \
62 + "${S}"/src/modules/ecj.eselect.in
63 +}
64 +
65 +pkg_postinst() {
66 + local REMOVED=0
67 +
68 + rm -v "${EROOT}"usr/lib*/nsbrowser/plugins/javaplugin.so 2>/dev/null && REMOVED=1
69 + rm -v "${EROOT}"etc/java-config-2/current-icedtea-web-vm 2>/dev/null && REMOVED=1
70 +
71 + if [[ "${REMOVED}" = 1 ]]; then
72 + elog "The eselect java-nsplugin module has been removed and your configuration"
73 + elog "has been cleaned up. From now on, you may only install either Oracle or"
74 + elog "IcedTea's plugin but not both. Note you can use IcedTea's plugin with an"
75 + elog "Oracle VM. See the README installed with icedtea-web for more details."
76 + fi
77 +}