# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/jasperreports/jasperreports-0.6.1-r2.ebuild,v 1.3 2005/01/20 16:02:31 mr_bones_ Exp $ inherit eutils java-pkg DESCRIPTION="Barbecue is a barcode library for Java Applications. The resulting barcode can be used as a swing component or sent to a printer." HOMEPAGE="http://barbecue.sourceforge.net/" SRC_URI="mirror://sourceforge/barbecue/${P}-src.zip" LICENSE="MPL-1.1" SLOT="0" KEYWORDS="~x86" IUSE="jikes doc" DEPEND=">=virtual/jdk-1.4 >=app-arch/unzip-5.50 >=dev-java/ant-core-1.4 jikes? ( >=dev-java/jikes-1.21 )" RDEPEND=">=virtual/jre-1.4" src_unpack() { unpack ${A} epatch ${FILESDIR}/barbecue-1.0.6b.patch } src_compile() { local antflags="jar" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" ant ${antflags} || die "Compilation failed" } src_install() { java-pkg_dojar build/dist/*.jar || die "Missing jars" use doc && java-pkg_dohtml -r build/javadocs/* }