add sun-jai-imageio

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1150 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-04-20 20:49:52 +00:00
parent c8bc38dbac
commit 2948bc6227
2 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1 @@
EBUILD sun-jai-imageio-1.1.ebuild 1524 RMD160 18e1324690bfdb4f4e287b8bb05bcf1dee432d20 SHA1 2b6f75a397e2faec8aee0b4b9f2719de5326d8ae SHA256 5150083bf7b0856675b469377ee67ba1ecde0c1de165b9e45149c0329430f59f

View File

@ -0,0 +1,61 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit java-pkg-2 cvs
MY_PV=${PV//./_}
DESCRIPTION="JAI-IMAGEIO is a class library for managing images based of JAI."
HOMEPAGE="https://jai-imageio.dev.java.net/"
ECVS_SERVER="cvs.dev.java.net:/cvs"
ECVS_MODULE="jai-imageio-core"
ECVS_USER="gentoo_linux"
ECVS_PASS="peerlesspenguin"
ECVS_BRANCH="jai-imageio-1_1-fcs"
BASE=http://download.java.net/media/jai-imageio/builds/release/${PV}
MY_P="jai_imageio-${MY_PV}"
LICENSE="sun-bcla-jai-imageio"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="${DEPEND}
>=virtual/jdk-1.4
>=dev-java/ant-1.6
dev-java/java-config:2
dev-java/sun-jai-bin"
RDEPEND="dev-java/sun-jai-bin
>=virtual/jre-1.4"
IUSE=""
RESTRICT="mirror"
S=${WORKDIR}/jai-imageio-core/
src_compile() {
cd ${S} || die
CLASSPATH=$CLASSPATH:`java-config -p sun-jai-bin` ant || die
export LOC=`ant echo | grep platform | cut -d '=' -f 2 | sed -e 's/ //g'`
}
src_install() {
OPT=${S}/build/${LOC}/opt
cd ${OPT} || die
dodoc *.txt || die
cd ${OPT}/lib/ext || die
java-pkg_dojar *.jar
use x86 && cd ../i586 && java-pkg_doso *.so
use amd64 && cd ../amd64 && java-pkg_doso *.so
java-pkg_register-dependency sun-jai-bin
}
pkg_postinst() {
elog "This ebuild installs /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-imageio)'
fi
elog '-classpath $(java-config -p sun-jai-imageio)'
}