mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-java/oracle-jre-bin: Trim the commercial fat
Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
</maintainer>
|
||||
<longdescription>Oracle Java SE Runtime Environment, Official Binary Distribution</longdescription>
|
||||
<use>
|
||||
<flag name="commercial">Install features requiring a commercial license for production use</flag>
|
||||
<flag name="headless-awt">Don't install the X backend for AWT, needed by some GUIs (used to be X flag)</flag>
|
||||
<flag name="javafx">Install JavaFX libraries</flag>
|
||||
<flag name="jce">Install Java Cryptographic Extension Unlimited Strength Jurisdiction Policy Files</flag>
|
||||
|
||||
@@ -35,7 +35,7 @@ SRC_URI="
|
||||
LICENSE="Oracle-BCLA-JavaSE"
|
||||
SLOT="1.8"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="alsa cups +fontconfig headless-awt javafx jce nsplugin selinux"
|
||||
IUSE="alsa commercial cups +fontconfig headless-awt javafx jce nsplugin selinux"
|
||||
|
||||
RESTRICT="fetch preserve-libs strip"
|
||||
QA_PREBUILT="*"
|
||||
@@ -141,6 +141,10 @@ src_install() {
|
||||
rm -vf lib/*/libjsoundalsa.* || die
|
||||
fi
|
||||
|
||||
if ! use commercial; then
|
||||
rm -vfr lib/jfr* || die
|
||||
fi
|
||||
|
||||
if use headless-awt ; then
|
||||
rm -vf lib/*/lib*{[jx]awt,splashscreen}* \
|
||||
bin/{javaws,policytool} || die
|
||||
|
||||
Reference in New Issue
Block a user