-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
inherit java-pkg-2
LICENSE="sun-bcla-jai"
SLOT="0"
KEYWORDS="amd64"
+IUSE=""
+
DEPEND=""
RDEPEND=">=virtual/jre-1.3"
-IUSE=""
-RESTRICT="mirror"
+
+RESTRICT="bindist mirror"
QA_PREBUILT="*"
-S=${WORKDIR}/${MY_P}/
+S=${WORKDIR}/${MY_P}
-src_unpack() {
- unpack ${A}
- rm "${S}/LICENSE-jai.txt"
+src_prepare() {
+ default
+ rm LICENSE-jai.txt || die
}
src_compile() { :; }
src_install() {
- dodoc *.txt || die
+ dodoc *.txt
- cd lib
- java-pkg_dojar *.jar
- use x86 && java-pkg_doso *.so
- use amd64 && java-pkg_doso *.so
+ java-pkg_dojar lib/*.jar
+ use x86 && java-pkg_doso lib/*.so
+ use amd64 && java-pkg_doso lib/*.so
}
pkg_postinst() {
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
inherit java-pkg-2
DESCRIPTION="JAI is a class library for managing images"
HOMEPAGE="https://jai.dev.java.net/"
SRC_URI="http://download.java.net/media/jai/builds/release/${MY_PV}/jai-${MY_PV}-lib-linux-i586.tar.gz"
+
LICENSE="sun-bcla-jai"
SLOT="0"
KEYWORDS="amd64 ppc64 x86"
+IUSE=""
+
DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jre-1.3"
-IUSE=""
-RESTRICT="mirror"
+
+RESTRICT="bindist mirror"
QA_PREBUILT="*"
-S=${WORKDIR}/jai-${MY_PV}/
+S=${WORKDIR}/jai-${MY_PV}
-src_unpack() {
- unpack ${A}
- rm "${S}"/LICENSE-jai.txt
+src_prepare() {
+ default
+ rm LICENSE-jai.txt || die
}
src_compile() { :; }
src_install() {
dodoc *.txt
- cd lib
- java-pkg_dojar *.jar
- use x86 && java-pkg_doso *.so
+ java-pkg_dojar lib/*.jar
+ use x86 && java-pkg_doso lib/*.so
}
pkg_postinst() {