summaryrefslogtreecommitdiff
path: root/dev-java/sun-jai-bin
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/sun-jai-bin')
-rw-r--r--dev-java/sun-jai-bin/Manifest2
-rw-r--r--dev-java/sun-jai-bin/metadata.xml5
-rw-r--r--dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r1.ebuild51
-rw-r--r--dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild42
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-java/sun-jai-bin/Manifest b/dev-java/sun-jai-bin/Manifest
new file mode 100644
index 00000000000..1db2eb81a8c
--- /dev/null
+++ b/dev-java/sun-jai-bin/Manifest
@@ -0,0 +1,2 @@
+DIST jai-1_1_3-lib-linux-amd64.tar.gz 3510451 SHA256 4bf0d26acbedc9e203059b18f8a1a7bfef0b448cb5515b8c1b530706e68eb75a SHA512 5089b696baabdea9622683aa7a3569daf724fd7fa8a4f1c95073b9e96ff5c37fc55a9e3a6fe499abafe61f5f4a109770bd27172ae6711ab7b4da3de55d8b0f56 WHIRLPOOL 2c5e603767ab27daa2f5acb8e2d01bfdaedef15f7fbe6021d33c36df46237c40a44d4f25482f1a4d316fba9d9fa1a769ff029cde49969ecf5641135541dcb0f6
+DIST jai-1_1_3-lib-linux-i586.tar.gz 3501711 SHA256 00e68ee1742f972e1602913afcf095e4ca49c17e2df1d2c0938ecb267d41f94f SHA512 bd142eea557b68d10d26a18b6b0d04e5cb42212e98268035b1b3615d6489bbc4fa07ad141fd04fc5ae3c74f1703c9ade77130cbf8a61603b4b271e3a0e06e860 WHIRLPOOL e856d67866fd3b7956819ed71f7386dd1c7be3d4d611b9c9d7a6f39382ce6dca651817e546d699e209bd37ee125fe93f3d6c7e6033336195ab9294e5c174d616
diff --git a/dev-java/sun-jai-bin/metadata.xml b/dev-java/sun-jai-bin/metadata.xml
new file mode 100644
index 00000000000..838c00a4a44
--- /dev/null
+++ b/dev-java/sun-jai-bin/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>
diff --git a/dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r1.ebuild b/dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r1.ebuild
new file mode 100644
index 00000000000..885e403a5f7
--- /dev/null
+++ b/dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit java-pkg-2
+
+MY_PV=${PV//./_}
+DESCRIPTION="JAI is a class library for managing images"
+HOMEPAGE="https://jai.dev.java.net/"
+
+BASE=http://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.3"
+IUSE=""
+RESTRICT="mirror"
+QA_PREBUILT="*"
+
+S=${WORKDIR}/${MY_P}/
+
+src_unpack() {
+ unpack ${A}
+ rm "${S}/LICENSE-jai.txt"
+}
+
+src_compile() { :; }
+
+src_install() {
+ dodoc *.txt || die
+
+ cd lib
+ java-pkg_dojar *.jar
+ use x86 && java-pkg_doso *.so
+ use amd64 && 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'
+ 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)'
+}
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 00000000000..b56e1db3668
--- /dev/null
+++ b/dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ppc 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)'
+}