summaryrefslogtreecommitdiff
blob: 1d8bdfa2c6402b57c0ae9d4587f896765ce2e8d2 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/gruntspud/gruntspud-0.4.6_beta-r1.ebuild,v 1.1 2004/09/17 09:28:16 axxo Exp $

inherit java-pkg

DESCRIPTION="Gruntspud is a graphical CVS client written in Java."
HOMEPAGE="http://gruntspud.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${PV/_/-}-src.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="jikes"
DEPEND=">=virtual/jdk-1.3
		dev-java/ant
		sys-apps/sed
		=dev-java/cvslib-bin-3.5
		dev-java/netcomponents-bin
		dev-java/log4j
		dev-java/plugspud
		dev-java/javahelp-bin
		jikes? ( dev-java/jikes )"
RDEPEND=">=virtual/jre-1.3"

S="${WORKDIR}/${PN}-${PV/_/-}"

src_unpack() {
	unpack ${A}
	# Dirty workaround
	cd ${S}
	sed -i 's:compile_standalone,javahelp:compile_standalone:' build.xml || die "sed failed"
	cd ${S}/lib/
	rm -rf *.jar
	java-pkg_jar-from cvslib-bin-3.5
	java-pkg_jar-from netcomponents-bin
	java-pkg_jar-from log4j log4j.jar log4j-1.2.6.jar
	java-pkg_jar-from javahelp-bin jh.jar
	java-pkg_jar-from plugspud
}

src_compile() {
	local antflags=""
	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
	ant dist_standalone ${antflags} || die "compilation problem"
}

src_install() {
	cd ${S}/dist/lib
	mv GruntspudSA.jar ${PN}.jar
	java-pkg_dojar ${PN}.jar

	echo "#!/bin/sh" > ${PN}
	echo "cd /usr/share/${PN}" >> ${PN}
	echo "java -jar lib/${PN}.jar" >> ${PN}
	dobin ${PN}
}