1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="JAI is a class library for managing images"
10 HOMEPAGE="https://jai.dev.java.net/"
12 BASE=http://download.java.net/media/jai/builds/release/${MY_PV}
15 !amd64? ( ${BASE}/${MY_P}-lib-linux-i586.tar.gz )
16 amd64? ( ${BASE}/${MY_P}-lib-linux-amd64.tar.gz )"
18 LICENSE="sun-bcla-jai"
24 RDEPEND=">=virtual/jre-1.3"
26 RESTRICT="bindist mirror"
33 rm LICENSE-jai.txt || die
41 java-pkg_dojar lib/*.jar
42 use x86 && java-pkg_doso lib/*.so
43 use amd64 && java-pkg_doso lib/*.so
47 elog "This ebuild now installs into /opt/${PN} and /usr/share/${PN}"
48 elog 'To use you need to pass the following to java'
49 if use x86 || use amd64; then
50 elog '-Djava.library.path=$(java-config -i sun-jai-bin)'
52 elog '-classpath $(java-config -p sun-jai-bin)'