# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit java-pkg NP=${P/-/} S=${WORKDIR}/${NP} DESCRIPTION="iText is a java library that allows you to generate PDF files on the fly" SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tar.gz" HOMEPAGE="www.http://www.lowagie.com/iText/" LICENSE="MPL-1.0" SLOT="0" KEYWORDS="x86 ppc sparc amd64" IUSE="jikes" DEPEND=">=virtual/jdk-1.3 jikes? ( >=dev-java/jikes-1.21 ) >=dev-java/ant-core-1.4 >=app-arch/unzip-5.50-r1" RDEPEND=">=virtual/jdk-1.3" src_unpack() { mkdir src cd src unpack ${A} } src_compile() { rm -f itext.jar local antflags="-f ant/compile.xml jar" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" cd ${WORKDIR}/src pwd ant ${antflags} || die "failed to build" } src_install() { cd ${WORKDIR}/build/bin dodir /usr/share/itext/lib java-pkg_dojar iText.jar }