summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/sun-jai-bin/sun-jai-bin-1.1.2.01-r1.ebuild')
-rw-r--r--dev-java/sun-jai-bin/sun-jai-bin-1.1.2.01-r1.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-java/sun-jai-bin/sun-jai-bin-1.1.2.01-r1.ebuild b/dev-java/sun-jai-bin/sun-jai-bin-1.1.2.01-r1.ebuild
new file mode 100644
index 000000000000..f6a0b6a1aa80
--- /dev/null
+++ b/dev-java/sun-jai-bin/sun-jai-bin-1.1.2.01-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jai-bin/sun-jai-bin-1.1.2.01-r1.ebuild,v 1.1 2005/09/16 19:29:27 betelgeuse Exp $
+
+inherit java-pkg
+
+DESCRIPTION="JAI is a class library for managing images."
+HOMEPAGE="http://java.sun.com/products/java-media/jai/"
+SRC_URI="jai-${PV//./_}-lib-linux-i586.tar.gz"
+LICENSE="sun-bcla-jai"
+SLOT="0"
+KEYWORDS="x86 sparc ~ppc amd64"
+DEPEND="app-arch/unzip"
+RDEPEND=">=virtual/jre-1.3"
+IUSE=""
+RESTRICT="fetch"
+
+S=${WORKDIR}/jai-${PV//./_}/
+
+pkg_nofetch() {
+ einfo "Please download ${SRC_URI} from ${HOMEPAGE} and place it in ${DISTDIR}"
+}
+
+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() {
+ einfo "This ebuild now installs into /opt/${PN} and /usr/share/${PN}"
+ einfo 'To use you need to pass the following to java'
+ use x86 && einfo '-Djava.library.path=$(java-config -i sun-jai-bin)'
+ einfo '-classpath $(java-config -p sun-jai-bin)'
+}
+