blob: 8e6aeafcf7dee7e0cccf90b94a5c381c5b4466ad (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/pmd/pmd-1.5-r1.ebuild,v 1.3 2004/11/03 11:49:15 axxo Exp $
inherit java-pkg
DESCRIPTION="PMD is a Java source code analyzer. It finds unused variables, empty catch blocks, unnecessary object creation and so forth."
HOMEPAGE="http://pmd.sourceforge.net"
SRC_URI="mirror://sourceforge/pmd/${PN}-src-${PV}.zip"
LICENSE="pmd"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc"
IUSE="doc"
DEPEND=">=virtual/jdk-1.3
app-arch/unzip
>=dev-java/ant-1.5
>=dev-java/xerces-2.6.2-r1
dev-java/saxpath
dev-java/jaxen
>=dev-java/junit-3.8.1"
RDEPEND="|| ( >=virtual/jdk-1.3 >=virtual/jre-1.3 )"
src_unpack() {
unpack ${A}
cd ${S}/lib/
rm -f *.jar
java-pkg_jar-from saxpath saxpath.jar saxpath-1.0-fcs.jar
java-pkg_jar-from jaxen jaxen-full.jar jaxen-core-1.0-fcs.jar
java-pkg_jar-from xerces-2
cd ${S}
}
src_compile() {
cd etc
ant standalone-jar || die "died on ant"
}
src_install() {
java-pkg_dojar etc/${PN}.jar
use doc && java-pkg_dohtml -r docs/*
}
|