# Copyright 2004 Paul Pacheco # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/commons-codec/commons-codec-1.3.ebuild,v 1.3 2004/10/19 20:25:59 absinthe Exp $ inherit java-pkg eutils DESCRIPTION="Java library for creation and extraction of tar archives" HOMEPAGE="http://www.trustice.com/java/tar/" SRC_URI="ftp://ftp.gjt.org/pub/time/java/tar/${P}.tar.gz" DEPEND=">=virtual/jdk >=dev-java/ant-1.4 jikes? ( dev-java/jikes ) dev-java/sun-jaf-bin" RDEPEND="virtual/jdk dev-java/sun-jaf-bin" LICENSE="public domain" SLOT="0" IUSE="jikes doc" KEYWORDS="x86" S="${WORKDIR}/${P}" src_compile() { cd "${S}/source/com/ice/tar" local antflags="deploy " antflags="${antflags} -Dsrcdir=\"${S}/source\"" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" antflags="${antflags} -Dactivationjar=$(java-config -p "sun-jaf-bin")" antflags="${antflags} -Djardir=\"${S}\"" antflags="${antflags} -Dapidocdir=\"${S}/docs\"" ant ${antflags} || die "compile failed" } src_install() { java-pkg_dojar tar.jar use doc && java-pkg_dohtml -r docs java-pkg_dohtml doc/readme.html dodoc doc/LICENSE java-pkg_dohtml doc/tarman.html java-pkg_dohtml doc/License.html }