2009-04-20 21:16:23 +02:00
|
|
|
# Copyright 1999-2009 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
JAVA_PKG_IUSE="source"
|
|
|
|
|
|
|
|
inherit java-pkg-2 java-ant-2
|
|
|
|
|
|
|
|
DESCRIPTION="This is a generic native code wrapper."
|
|
|
|
HOMEPAGE="http://jpwgen.berlios.de/"
|
|
|
|
SRC_URI="mirror://sourceforge/jpodrenderer/isNative.${PV}.zip"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2009-04-20 21:40:55 +02:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2009-04-20 21:16:23 +02:00
|
|
|
IUSE="doc"
|
|
|
|
|
|
|
|
COMMON_DEP="dev-java/jna
|
|
|
|
dev-java/isrt"
|
|
|
|
RDEPEND=">=virtual/jre-1.5
|
|
|
|
${COMMON_DEP}"
|
|
|
|
DEPEND=">=virtual/jdk-1.5
|
|
|
|
${COMMON_DEP}
|
|
|
|
app-arch/unzip"
|
|
|
|
|
|
|
|
S="${WORKDIR}"/distribution
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
|
2009-04-20 21:40:55 +02:00
|
|
|
cd "${S}"
|
|
|
|
mkdir ant
|
2009-04-20 21:16:23 +02:00
|
|
|
cp "${FILESDIR}/build.xml" "${S}"/ant
|
|
|
|
|
2009-04-20 21:40:55 +02:00
|
|
|
echo > ${S}/ant/build.properties
|
|
|
|
echo "build.dir=${S}/build" >> ${S}/ant/build.properties
|
|
|
|
echo "libs.dir=${S}" >> ${S}/ant/build.properties
|
|
|
|
echo "isrt.jar.name=isrt" >> ${S}/ant/build.properties
|
|
|
|
echo "jna.jar.name=jna" >> ${S}/ant/build.properties
|
|
|
|
echo "isnativec.jar.name=isnativec" >> ${S}/ant/build.properties
|
2009-04-20 21:16:23 +02:00
|
|
|
|
|
|
|
java-pkg_jarfrom isrt
|
|
|
|
java-pkg_jarfrom jna
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
eant ${antflags} -buildfile ant/build.xml || die "build failed"
|
|
|
|
|
|
|
|
use doc && eant ${antflags} -buildfile ant/build.xml javadoc || die "doc build failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
java-pkg_dojar build/isnativec/dist/isnativec.jar
|
|
|
|
|
|
|
|
use source && java-pkg_dosrc src/*
|
|
|
|
|
|
|
|
use doc && java-pkg_dojavadoc build/isnativec/javadoc
|
|
|
|
}
|