summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-01-08 03:21:52 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-01-08 03:21:52 +0000
commit03f097ac8ce8a6891115dfcf7056e33010584379 (patch)
tree1dc8514cf74af163a76c46084d2ffd7b65f03748 /dev-util/pmd
parentVersion bump. (diff)
downloadgentoo-2-03f097ac8ce8a6891115dfcf7056e33010584379.tar.gz
gentoo-2-03f097ac8ce8a6891115dfcf7056e33010584379.tar.bz2
gentoo-2-03f097ac8ce8a6891115dfcf7056e33010584379.zip
Version bump (bug #118047).
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-util/pmd')
-rw-r--r--dev-util/pmd/ChangeLog9
-rw-r--r--dev-util/pmd/Manifest12
-rw-r--r--dev-util/pmd/files/digest-pmd-3.41
-rw-r--r--dev-util/pmd/pmd-3.4.ebuild69
4 files changed, 79 insertions, 12 deletions
diff --git a/dev-util/pmd/ChangeLog b/dev-util/pmd/ChangeLog
index 9401d1451901..e45939b536fb 100644
--- a/dev-util/pmd/ChangeLog
+++ b/dev-util/pmd/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/pmd
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/pmd/ChangeLog,v 1.12 2005/12/11 18:34:09 betelgeuse Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/pmd/ChangeLog,v 1.13 2006/01/08 03:21:52 nichoj Exp $
+
+*pmd-3.4 (08 Jan 2006)
+
+ 08 Jan 2006; Joshua Nichols <nichoj@gentoo.org> +pmd-3.4.ebuild:
+ Version bump (bug #118047).
11 Dec 2005; Petteri Räty <betelgeuse@gentoo.org>
files/pmd-3.3-gentoo.patch, pmd-3.3.ebuild:
diff --git a/dev-util/pmd/Manifest b/dev-util/pmd/Manifest
index 81933bbd0e44..22917bcb973a 100644
--- a/dev-util/pmd/Manifest
+++ b/dev-util/pmd/Manifest
@@ -1,11 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 dc024b6c6048f3fea1d72684ce14988d ChangeLog 1877
MD5 f4fd6e2650f6d50125b3e546a7c0a54b files/digest-pmd-1.5 61
MD5 f4fd6e2650f6d50125b3e546a7c0a54b files/digest-pmd-1.5-r1 61
MD5 9cd4c2c64ebddf354fb7475e86887505 files/digest-pmd-3.1 61
MD5 e810cb5e40dfcc3ba21c05d7ba29d54b files/digest-pmd-3.3 61
+MD5 2f550f3dcd71f7a9725a06ca89c5e810 files/digest-pmd-3.4 61
MD5 a4e38ad08909deab5987c12fe5e59d8d files/pmd-3.1-gentoo.patch 3808
MD5 8933adb7f1d0bf9b912e3dd236dd0005 files/pmd-3.3-gentoo.patch 3164
MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
@@ -13,10 +11,4 @@ MD5 b131da5bb636d0aa455f681cad502d75 pmd-1.5-r1.ebuild 1092
MD5 de5629bb3e4f74880b7481c1db6d1d2f pmd-1.5.ebuild 790
MD5 c350d228faedf2333f206d7199e88222 pmd-3.1.ebuild 1448
MD5 82d721c9d2e2aa35c109aa97f9eb2fcb pmd-3.3.ebuild 1684
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFDnHEvQiJ/wx066S4RAle7AKCKAaVDL1PGdq0UTl4ie0vWppDquACfcm/d
-cf5eJ7kkfK5jWVUP2PzCG1U=
-=hQ3X
------END PGP SIGNATURE-----
+MD5 7d8998ae39761d277beb578dee500f5e pmd-3.4.ebuild 1689
diff --git a/dev-util/pmd/files/digest-pmd-3.4 b/dev-util/pmd/files/digest-pmd-3.4
new file mode 100644
index 000000000000..49a5fb749e66
--- /dev/null
+++ b/dev-util/pmd/files/digest-pmd-3.4
@@ -0,0 +1 @@
+MD5 2b5709ad6eb37639e948c4604eb00871 pmd-src-3.4.zip 9535887
diff --git a/dev-util/pmd/pmd-3.4.ebuild b/dev-util/pmd/pmd-3.4.ebuild
new file mode 100644
index 000000000000..7b2179247fb1
--- /dev/null
+++ b/dev-util/pmd/pmd-3.4.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/pmd/pmd-3.4.ebuild,v 1.1 2006/01/08 03:21:52 nichoj Exp $
+
+inherit java-pkg eutils
+
+DESCRIPTION="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="~amd64 ~ppc ~sparc ~x86"
+IUSE="doc jikes source"
+
+RDEPEND=">=virtual/jre-1.3
+ =dev-java/jaxen-1.0*
+ dev-java/saxpath
+ dev-java/xml-commons
+ >=dev-java/xerces-2.6"
+DEPEND=">=virtual/jdk-1.3
+ ${RDEPEND}
+ app-arch/unzip
+ dev-java/ant-core
+ jikes? ( dev-java/jikes )
+ source? ( app-arch/zip )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-3.3-gentoo.patch
+
+ cd ${S}/lib/
+ rm -f *.jar
+ java-pkg_jar-from saxpath
+ java-pkg_jar-from jaxen
+ java-pkg_jar-from xerces-2 xercesImpl.jar
+ java-pkg_jar-from xml-commons
+}
+
+src_compile() {
+ cd ${S}/bin
+
+ local antflags="jar"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ use doc && antflags="${antflags} javadoc"
+ ant ${antflags} || die "died on ant"
+}
+
+src_install() {
+ java-pkg_newjar lib/${P}.jar ${PN}.jar
+ dodir /usr/share/ant-core/lib/
+ dosym /usr/share/${PN}/lib/${PN}.jar /usr/share/ant-core/lib/ant-${PN}.jar
+
+ newbin bin/${PN}.sh ${PN}
+ newbin bin/designer.sh ${PN}-designer
+ cp -r rulesets ${D}/usr/share/${PN}
+
+ use doc && java-pkg_dohtml -r docs/api
+ use source && java-pkg_dosrc src/*
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "Example rulesets can be found under"
+ einfo "/usr/share/pmd/rulesets/"
+ einfo ""
+}