da53ee5c0e
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1173 6952d904-891a-0410-993b-d76249ca496b
85 lines
2.3 KiB
Bash
85 lines
2.3 KiB
Bash
# 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 the jPod based PDF platform & rendering library."
|
|
HOMEPAGE="http://opensource.intarsys.de/"
|
|
SRC_URI="mirror://sourceforge/jpodrenderer/jPodRenderer.${PV}.zip"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="doc"
|
|
|
|
COMMON_DEP="dev-java/sun-jai-imageio
|
|
dev-java/sun-jai-bin
|
|
dev-java/jbig2
|
|
dev-java/jna
|
|
dev-java/swt:3.4
|
|
dev-java/isrt
|
|
dev-java/isnativec
|
|
dev-java/isfreetype
|
|
dev-java/iscwt
|
|
dev-java/jPod"
|
|
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
|
|
echo "jai_codec.jar.name=jai_codec" >> ${S}/ant/build.properties
|
|
echo "jai_core.jar.name=jai_core" >> ${S}/ant/build.properties
|
|
echo "jai_imageio.jar.name=jai_imageio" >> ${S}/ant/build.properties
|
|
echo "jbig2.jar.name=jbig2" >> ${S}/ant/build.properties
|
|
echo "jna.jar.name=jna" >> ${S}/ant/build.properties
|
|
echo "swt.jar.name=swt" >> ${S}/ant/build.properties
|
|
echo "isrt.jar.name=isrt" >> ${S}/ant/build.properties
|
|
echo "isnativec.jar.name=isnativec" >> ${S}/ant/build.properties
|
|
echo "isfreetype.jar.name=isfreetype" >> ${S}/ant/build.properties
|
|
echo "iscwt.jar.name=iscwt" >> ${S}/ant/build.properties
|
|
echo "jPod.jar.name=jPod" >> ${S}/ant/build.properties
|
|
echo "jPodRenderer.jar.name=jPodRenderer" >> ${S}/ant/build.properties
|
|
|
|
java-pkg_jarfrom sun-jai-imageio
|
|
java-pkg_jarfrom sun-jai-bin
|
|
java-pkg_jarfrom jbig2
|
|
java-pkg_jarfrom jna
|
|
java-pkg_jarfrom swt-3.4
|
|
java-pkg_jarfrom isrt
|
|
java-pkg_jarfrom isnativec
|
|
java-pkg_jarfrom isfreetype
|
|
java-pkg_jarfrom iscwt
|
|
java-pkg_jarfrom jPod
|
|
}
|
|
|
|
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/jPodRenderer/dist/jPodRenderer.jar
|
|
java-pkg_dojar lib/jPodFonts.jar
|
|
|
|
use source && java-pkg_dosrc src/*
|
|
|
|
use doc && java-pkg_dojavadoc build/jPodRenderer/javadoc
|
|
}
|