# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/jbidwatcher/jbidwatcher-0.9.3.1.ebuild,v 1.3 2004/09/03 01:02:29 dholm Exp $ inherit java-pkg 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="~x86 ~amd64 ~ppc" IUSE="jikes" DEPEND=">=virtual/jdk-1.4 dev-java/ant jikes? ( dev-java/jikes )" RDEPEND=">=virtual/jre-1.4" src_compile() { sed -i 's:${user.home}/.jbidwatcher:.:' build.xml sed -i 's:jikes:modern:' build.xml # Fix bad build.xml sed -i 's:::' build.xml sed -i '/taskdef/d' build.xml local antflags="jar" use jikes && antflags="${antflags} Dbuild.compiler=jikes" ant ${antflags} } src_install() { java-pkg_dojar *.jar echo "#!/bin/sh" > ${PN} echo "cd /usr/share/"${PN} >> ${PN} echo '${JAVA_HOME}'/bin/java -jar lib/JBidWatcher-${PV/_/}.jar '$*' >> ${PN} dobin ${PN} }