diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild')
-rw-r--r-- | dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild b/dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild new file mode 100644 index 000000000000..72d408be0023 --- /dev/null +++ b/dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit java-pkg-2 + +MY_PV=${PV//./_} +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 ~x86-fbsd" +DEPEND="app-arch/unzip" +RDEPEND=">=virtual/jre-1.3" +IUSE="" +RESTRICT="mirror" +QA_PREBUILT="*" + +S=${WORKDIR}/jai-${MY_PV}/ + +src_unpack() { + unpack ${A} + rm "${S}"/LICENSE-jai.txt +} + +src_compile() { :; } + +src_install() { + dodoc *.txt + + cd lib + java-pkg_dojar *.jar + use x86 && java-pkg_doso *.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' + use x86 && elog '-Djava.library.path=$(java-config -i sun-jai-bin)' + elog '-classpath $(java-config -p sun-jai-bin)' +} |