blob: 387309547a7558f435907349ab134080b5e9e0e4 (
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
57
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/jcvs/jcvs-5.4.2.ebuild,v 1.6 2005/07/16 19:05:04 axxo Exp $
inherit java-pkg
DESCRIPTION="Java CVS client"
HOMEPAGE="http://www.jcvs.org/"
SRC_URI="http://www.jcvs.org/download/jcvs/jcvsii-${PV}.zip"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 ppc amd64"
IUSE="doc jikes"
RDEPEND=">=virtual/jre-1.3
>=dev-java/sun-jaf-bin-1.0.2
>=dev-java/commons-logging-1.0.4
>=dev-java/j2ssh-0.2.7
>=dev-java/javahelp-bin-2"
DEPEND=">=virtual/jdk-1.3
${RDEPEND}
dev-java/ant-core
app-arch/unzip
jikes? ( dev-java/jikes )"
S="${WORKDIR}/jCVS-${PV}"
src_unpack() {
unpack ${A}
cd ${S}/bin
rm -f *.jar jars/*.jar
cd jars
java-pkg_jar-from sun-jaf-bin activation.jar
java-pkg_jar-from commons-logging commons-logging.jar
java-pkg_jar-from j2ssh j2ssh-common.jar
java-pkg_jar-from j2ssh j2ssh-core.jar
java-pkg_jar-from javahelp-bin jh.jar
cd ${S}
cp ${FILESDIR}/build.xml .
cp ${FILESDIR}/MANIFEST.MF .
}
src_compile() {
# not possible to compile the source code with jikes.
ant jar || die "failed to build"
}
src_install() {
java-pkg_dojar bin/jcvsii.jar
echo "#!/bin/sh" > ${PN}
echo "java -cp \$(java-config -p commons-logging,jcvs,sun-jaf-bin,j2ssh,javahelp-bin) com.ice.jcvsii.JCVS" >> ${PN}
dobin ${PN}
use doc && java-pkg_dohtml -r doc/api/*
dodoc doc/lgpl.html doc/license.html doc/relnotes/*
}
|