# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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="Cougaar" SLOT="0" KEYWORDS="x86 ppc sparc alpha" IUSE="doc" DEPEND=">=virtual/jdk-1.3 >=dev-java/ant-1.5 >=dev-java/junit-3.8.1" RDEPEND="|| ( >=virtual/jdk-1.3 >=virtual/jre-1.3 )" src_compile() { cd etc ant standalone-jar || die #too lazy to make ebuilds for all dependencies } src_install() { insinto /usr/share/pmd mv etc/${PN}.jar lib/${P}.jar dojar lib/${P}.jar dohtml -r docs/* }