summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2021-05-19 18:26:19 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2021-05-21 09:01:32 +0200
commitfb401a9eebd3d0ad0887234e16d4329f5cb130b7 (patch)
tree0715b3c1592b63951120e475ed849afe8f7f1891 /dev-java/sun-jai-bin
parentapp-doc/pms: Revision bump (diff)
downloadgentoo-fb401a9eebd3d0ad0887234e16d4329f5cb130b7.tar.gz
gentoo-fb401a9eebd3d0ad0887234e16d4329f5cb130b7.tar.bz2
gentoo-fb401a9eebd3d0ad0887234e16d4329f5cb130b7.zip
dev-java/sun-jai-bin: min java 1.8
Bug: https://bugs.gentoo.org/786846 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/20884 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/sun-jai-bin')
-rw-r--r--dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r2.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r2.ebuild b/dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r2.ebuild
new file mode 100644
index 000000000000..1f5ba79b8b0c
--- /dev/null
+++ b/dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit java-pkg-2
+
+MY_PV=${PV//./_}
+DESCRIPTION="JAI is a class library for managing images"
+HOMEPAGE="https://jai.dev.java.net/"
+
+BASE=https://download.java.net/media/jai/builds/release/${MY_PV}
+MY_P="jai-${MY_PV}"
+SRC_URI="
+ !amd64? ( ${BASE}/${MY_P}-lib-linux-i586.tar.gz )
+ amd64? ( ${BASE}/${MY_P}-lib-linux-amd64.tar.gz )"
+
+LICENSE="sun-bcla-jai"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=""
+RDEPEND="virtual/jre:1.8"
+
+RESTRICT="bindist mirror"
+QA_PREBUILT="*"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+ rm LICENSE-jai.txt || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ dodoc *.txt
+
+ java-pkg_dojar lib/*.jar
+ use x86 && java-pkg_doso lib/*.so
+ use amd64 && java-pkg_doso lib/*.so
+}
+
+pkg_postinst() {
+ elog "This ebuild now installs into /opt/${PN} and /usr/share/${PN}"
+ elog 'To use you need to pass the following to java'
+ if use x86 || use amd64; then
+ elog '-Djava.library.path=$(java-config -i sun-jai-bin)'
+ fi
+ elog '-classpath $(java-config -p sun-jai-bin)'
+}