summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2003-12-18 21:44:34 +0000
committerBrandon Low <lostlogic@gentoo.org>2003-12-18 21:44:34 +0000
commit7bd063e6ebc00d09e397bc0b9373698f102df545 (patch)
treef1ee8535b74b15691cef8c828cb9dcb64daad7eb /dev-java/jai
parentInitial import (diff)
downloadgentoo-2-7bd063e6ebc00d09e397bc0b9373698f102df545.tar.gz
gentoo-2-7bd063e6ebc00d09e397bc0b9373698f102df545.tar.bz2
gentoo-2-7bd063e6ebc00d09e397bc0b9373698f102df545.zip
Initial import
Diffstat (limited to 'dev-java/jai')
-rw-r--r--dev-java/jai/ChangeLog9
-rw-r--r--dev-java/jai/Manifest5
-rw-r--r--dev-java/jai/files/digest-jai-1.1.21
-rw-r--r--dev-java/jai/jai-1.1.2.ebuild90
4 files changed, 102 insertions, 3 deletions
diff --git a/dev-java/jai/ChangeLog b/dev-java/jai/ChangeLog
new file mode 100644
index 000000000000..030ed4cfc116
--- /dev/null
+++ b/dev-java/jai/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-java/jai
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jai/ChangeLog,v 1.1 2003/12/18 21:44:26 lostlogic Exp $
+
+*jai-1.1.2 (18 Dec 2003)
+
+ 18 Dec 2003; Brandon Low <lostlogic@gentoo.org> jai-1.1.2.ebuild:
+ Initial Import, this ebuild may be a little funky, but it works for now
+
diff --git a/dev-java/jai/Manifest b/dev-java/jai/Manifest
index c9bef4ab0c35..b025a9cfba95 100644
--- a/dev-java/jai/Manifest
+++ b/dev-java/jai/Manifest
@@ -1,4 +1,3 @@
-MD5 add67d4213b5e70dfbde61ac8740de5c jai-1.1.2.ebuild 1601
-MD5 d63cf1b324308d5beaeb11f26c8dfceb ChangeLog 353
+MD5 48af895f4bed6fbd88dcf1338aae4209 jai-1.1.2.ebuild 2460
+MD5 0c0adb15954552949c884b2693acc24b ChangeLog 378
MD5 e60e96e8d350d2e30cf45902dd277268 files/digest-jai-1.1.2 78
-MD5 1461aa95027a29b9282a711045a06058 files/digest-openjms-bin-0.7.5 63
diff --git a/dev-java/jai/files/digest-jai-1.1.2 b/dev-java/jai/files/digest-jai-1.1.2
new file mode 100644
index 000000000000..36646eea3bad
--- /dev/null
+++ b/dev-java/jai/files/digest-jai-1.1.2
@@ -0,0 +1 @@
+MD5 16f19a3853194f9422fc79819be00ed0 jai-1_1_2-lib-linux-i586-jdk.bin 2674372
diff --git a/dev-java/jai/jai-1.1.2.ebuild b/dev-java/jai/jai-1.1.2.ebuild
new file mode 100644
index 000000000000..d252936cc121
--- /dev/null
+++ b/dev-java/jai/jai-1.1.2.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jai/jai-1.1.2.ebuild,v 1.1 2003/12/18 21:44:26 lostlogic Exp $
+
+IUSE=""
+
+At="jai-1_1_2-lib-linux-i586-jdk.bin"
+S="${WORKDIR}/jai-1_2_2-lib-linux"
+DESCRIPTION="Sun's Java(TM) Advanced Imaging API"
+HOMEPAGE="http://java.sun.com/products/java-media/jai/index.jsp"
+SRC_URI=${At}
+SLOT="0"
+LICENSE="sun-bcla-jai"
+KEYWORDS="~x86 -ppc -sparc -alpha -mips -hppa -arm"
+RESTRICT="fetch"
+
+DEPEND="|| ( >=dev-java/sun-jdk-1.4 >=dev-java/sun-jre-1.4 )
+ sys-apps/sed"
+
+RDEPEND="${DEPEND}"
+
+pkg_nofetch() {
+ einfo "Please download ${At} from:"
+ einfo ${HOMEPAGE}
+ einfo "(from the JDK section select the Linux JDK Install option)"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+ if [ ! -r ${DISTDIR}/${At} ]; then
+ eerror "cannot read ${At}. Please check the permission and try again."
+ die
+ fi
+ mkdir -p ${S}
+ cd ${S}
+ #Search for the ELF Header
+ testExp=`echo -e "\177\105\114\106\001\001\001"`
+ startAt=`grep -aonm 1 ${testExp} ${DISTDIR}/${At} | cut -d: -f1`
+ tail -n +${startAt} ${DISTDIR}/${At} > install.sfx
+ chmod +x install.sfx
+ ./install.sfx || die
+ rm install.sfx
+
+# if [ -f ${S}/lib/unpack ]; then
+# UNPACK_CMD=${S}/lib/unpack
+# chmod +x $UNPACK_CMD
+# for i in $PACKED_JARS; do
+# PACK_FILE=${S}/`dirname $i`/`basename $i .jar`.pack
+# if [ -f ${PACK_FILE} ]; then
+# echo " unpacking: $i"
+# $UNPACK_CMD ${PACK_FILE} ${S}/$i
+# rm -f ${PACK_FILE}
+# fi
+# done
+# fi
+}
+
+find_home() {
+ HOME=$(java-config --jre-home)
+ if [ ! -d "${HOME}" ]; then
+ HOME=$(java-config --jdk-home)/jre
+ fi
+ if [ "${HOME/sun}" == "${HOME}" ]; then
+ HOME=/opt/$(java-config --list-available-vms|grep sun|head -n1|cut -f2 -d"["|cut -f1 -d"]")
+ if [ "${HOME/jre}" == "${HOME}" ]; then
+ HOME="${HOME}/jre"
+ fi
+ fi
+ if [ ! -d "${HOME}" ]; then
+ die "Unable to locate an appropriate location to install JAI"
+ fi
+}
+
+src_install () {
+ find_home
+ dodir ${HOME}
+ cp -a ${S}/jre/* ${D}/${HOME}
+ dodoc COPYRIGHT-jai.txt README-jai.txt LICENSE-jai.txt INSTALL-jai.txt UNINSTALL-jai
+}
+
+pkg_postinst() {
+ find_home
+ einfo
+ einfo "Installed jai into ${HOME}"
+ einfo "This was the 'best selection' I could make for which"
+ einfo "JVM to install JAI for, if this is not what you want"
+ einfo "please use java-config to select the JVM of your choice"
+ einfo "and remerge JAI after updating your environmnet"
+ einfo
+}