blob: eb999ec04e73ddacc290468880b11b7570c8e546 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# 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.5.ebuild,v 1.4 2005/04/21 19:19:33 blubb 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:<fileset dir="${src.dir}" includes="jbidwatcher.properties">:<fileset dir="${src.dir}" includes="jbidwatcher.properties" />:' 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}
}
|