mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Bug: https://bugs.gentoo.org/473598 Bug: https://bugs.gentoo.org/720224 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="A set of eselect modules for Java"
|
|
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Java"
|
|
SRC_URI="https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86 ~x64-macos ~x64-solaris"
|
|
|
|
RDEPEND="app-admin/eselect"
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
pkg_postinst() {
|
|
local REMOVED=0
|
|
|
|
rm -v "${EROOT}"/usr/lib*/nsbrowser/plugins/javaplugin.so 2>/dev/null && REMOVED=1
|
|
rm -v "${EROOT}"/etc/java-config-2/current-icedtea-web-vm 2>/dev/null && REMOVED=1
|
|
|
|
if [[ ${REMOVED} = 1 ]]; then
|
|
elog "The eselect java-nsplugin module has been removed and your configuration"
|
|
elog "has been cleaned up. From now on, you may only install either Oracle or"
|
|
elog "IcedTea's plugin but not both. Note you can use IcedTea's plugin with an"
|
|
elog "Oracle VM. See the README installed with icedtea-web for more details."
|
|
fi
|
|
}
|