# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/jbidwatcher/jbidwatcher-0.9.8.ebuild,v 1.1 2005/09/10 15:42:34 axxo Exp $ inherit java-pkg eutils MY_PN=JBidWatcher MY_P=${MY_PN}-${PV} DESCRIPTION="Ebay Bidder Tools for Sniping" HOMEPAGE="http://jbidwatcher.sf.net/" SRC_URI="mirror://sourceforge/jbidwatcher/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="doc jikes" DEPEND=">=virtual/jdk-1.4 dev-java/ant-core jikes? ( dev-java/jikes )" RDEPEND=">=virtual/jre-1.4" src_unpack() { unpack ${A} cd ${S} # TODO submit this patches upstream use doc && epatch ${FILESDIR}/${P}-javadoc.patch # Fix bad build.xml (used to be the sed magic below) epatch ${FILESDIR}/${P}-build_xml.patch # sed -i -e 's:${user.home}/.jbidwatcher:.:' \ # -e 's:jikes:modern:' \ # -e 's:::' \ # -e '/taskdef/d' build.xml } src_compile() { local antflags="jar" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" use doc && antflags="${antflags} javadoc" ant ${antflags} || die "compilation failed" } src_install() { java-pkg_newjar ${MY_P}.jar ${PN}.jar use doc && java-pkg_dohtml -r docs/api echo "#!/bin/sh" > ${PN} echo 'java -jar $(java-config -p jbidwatcher) "$@"' >> ${PN} dobin ${PN} }