2009-04-20 22:22:26 +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
|
|
|
|
|
2009-04-20 22:35:48 +02:00
|
|
|
DESCRIPTION="A library for reading, writing and manipulating PDF files."
|
2009-04-27 23:03:10 +02:00
|
|
|
HOMEPAGE="http://opensource.intarsys.de/"
|
2009-04-20 22:22:26 +02:00
|
|
|
SRC_URI="mirror://sourceforge/jpodrenderer/jPod.${PV}.zip"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="doc"
|
|
|
|
|
2009-04-20 22:35:48 +02:00
|
|
|
COMMON_DEP="dev-java/isrt
|
|
|
|
dev-java/jbig2
|
|
|
|
dev-java/iscwt"
|
2009-04-20 22:22:26 +02:00
|
|
|
RDEPEND=">=virtual/jre-1.5
|
|
|
|
${COMMON_DEP}"
|
|
|
|
DEPEND=">=virtual/jdk-1.5
|
|
|
|
${COMMON_DEP}
|
|
|
|
app-arch/unzip"
|
|
|
|
|
|
|
|
S="${WORKDIR}"/distribution
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
|
|
|
|
cd "${S}"
|
|
|
|
mkdir ant
|
|
|
|
cp "${FILESDIR}/build.xml" "${S}"/ant
|
|
|
|
|
|
|
|
echo > ${S}/ant/build.properties
|
|
|
|
echo "build.dir=${S}/build" >> ${S}/ant/build.properties
|
|
|
|
echo "libs.dir=${S}" >> ${S}/ant/build.properties
|
2009-04-20 22:35:48 +02:00
|
|
|
echo "jbig2.jar.name=jbig2" >> ${S}/ant/build.properties
|
2009-04-20 22:22:26 +02:00
|
|
|
echo "isrt.jar.name=isrt" >> ${S}/ant/build.properties
|
|
|
|
echo "iscwt.jar.name=iscwt" >> ${S}/ant/build.properties
|
2009-04-20 22:35:48 +02:00
|
|
|
echo "jPod.jar.name=jPod" >> ${S}/ant/build.properties
|
2009-04-20 22:22:26 +02:00
|
|
|
|
|
|
|
java-pkg_jarfrom isrt
|
2009-04-20 22:35:48 +02:00
|
|
|
java-pkg_jarfrom iscwt
|
|
|
|
java-pkg_jarfrom jbig2
|
2009-04-20 22:22:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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() {
|
2009-04-20 22:35:48 +02:00
|
|
|
java-pkg_dojar build/jPod/dist/jPod.jar
|
2009-04-20 22:22:26 +02:00
|
|
|
|
|
|
|
use source && java-pkg_dosrc src/*
|
|
|
|
|
2009-04-20 22:35:48 +02:00
|
|
|
use doc && java-pkg_dojavadoc build/jPod/javadoc
|
2009-04-20 22:22:26 +02:00
|
|
|
}
|