diff options
author | Vlastimil Babka <caster@gentoo.org> | 2007-05-09 22:14:34 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2007-05-09 22:14:34 +0000 |
commit | 54960bb4b64492d3b695ff03f3f0151b51b2e84f (patch) | |
tree | dd1cf442559be9f565b57902f547163b0be7522f /dev-util | |
parent | Stablebump bad, blame chutzpah (diff) | |
download | gentoo-2-54960bb4b64492d3b695ff03f3f0151b51b2e84f.tar.gz gentoo-2-54960bb4b64492d3b695ff03f3f0151b51b2e84f.tar.bz2 gentoo-2-54960bb4b64492d3b695ff03f3f0151b51b2e84f.zip |
Version bump, bug #170603. Initially worked on in java-overlay by Miroslav Šulc <fordfrog@gentoo.org> and Petteri Räty <betelgeuse@gentoo.org>. Migrated to split-ant, no longer installs symlink to /usr/share/ant-core/lib.
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/pmd/ChangeLog | 12 | ||||
-rw-r--r-- | dev-util/pmd/files/digest-pmd-3.9 | 3 | ||||
-rw-r--r-- | dev-util/pmd/files/pmd-3.9-build.xml.patch | 32 | ||||
-rw-r--r-- | dev-util/pmd/files/pmd-3.9-launcher-pre-commands | 6 | ||||
-rw-r--r-- | dev-util/pmd/pmd-3.9.ebuild | 81 |
5 files changed, 133 insertions, 1 deletions
diff --git a/dev-util/pmd/ChangeLog b/dev-util/pmd/ChangeLog index 5986ea835655..deee2e0d695a 100644 --- a/dev-util/pmd/ChangeLog +++ b/dev-util/pmd/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-util/pmd # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/pmd/ChangeLog,v 1.23 2007/03/28 19:12:47 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/pmd/ChangeLog,v 1.24 2007/05/09 22:14:34 caster Exp $ + +*pmd-3.9 (09 May 2007) + + 09 May 2007; Vlastimil Babka <caster@gentoo.org> + +files/pmd-3.9-build.xml.patch, +files/pmd-3.9-launcher-pre-commands, + +pmd-3.9.ebuild: + Version bump, bug #170603. Initially worked on in java-overlay by Miroslav + Šulc <fordfrog@gentoo.org> and Petteri Räty <betelgeuse@gentoo.org>. + Migrated to split-ant, no longer installs symlink to + /usr/share/ant-core/lib. 28 Mar 2007; Petteri Räty <betelgeuse@gentoo.org> -pmd-1.5.ebuild, -pmd-1.5-r1.ebuild, -pmd-3.7.ebuild: diff --git a/dev-util/pmd/files/digest-pmd-3.9 b/dev-util/pmd/files/digest-pmd-3.9 new file mode 100644 index 000000000000..9d078855fae6 --- /dev/null +++ b/dev-util/pmd/files/digest-pmd-3.9 @@ -0,0 +1,3 @@ +MD5 2ddefa2c0aa890693e2ce07a548b189f pmd-src-3.9.zip 11177126 +RMD160 99ce682812694220576b5d5d06148f87860937ec pmd-src-3.9.zip 11177126 +SHA256 a24c7f6aa748d0f61f897008abe45b1e5ebaa89795f53274533682ff181cd96e pmd-src-3.9.zip 11177126 diff --git a/dev-util/pmd/files/pmd-3.9-build.xml.patch b/dev-util/pmd/files/pmd-3.9-build.xml.patch new file mode 100644 index 000000000000..5ece46caff73 --- /dev/null +++ b/dev-util/pmd/files/pmd-3.9-build.xml.patch @@ -0,0 +1,32 @@ +--- bin/build.xml.original 2007-01-14 11:15:09.000000000 +0100 ++++ bin/build.xml 2007-01-14 13:37:41.000000000 +0100 +@@ -15,11 +15,7 @@ + + <path id="dependencies.path"> + <pathelement location="${dir.build}" /> +- <fileset dir="${dir.lib}"> +- <include name="jaxen-1.1-beta-10.jar" /> +- <include name="asm-3.0.jar" /> +- <include name="backport-util-concurrent.jar" /> +- </fileset> ++ <fileset dir="${dir.lib}" includes="*.jar"/> + </path> + + <target name="delete" description="Deletes the build directory and the pmd-x.x jar file."> +@@ -67,7 +63,6 @@ + <jar jarfile="${dir.lib}\pmd-${version}.jar" includes="net/sourceforge/pmd/**/**,test/net/sourceforge/pmd/testframework/**/**,rulesets/**" basedir="${dir.build}"> + <manifest> + <attribute name="Main-Class" value="net.sourceforge.pmd.PMD" /> +- <attribute name="Class-Path" value="jaxen-1.1-beta-10.jar asm-3.0.jar backport-util-concurrent.jar" /> + </manifest> + </jar> + </target> +@@ -99,7 +94,7 @@ + <istrue value="${outputTestResultsToFile}"/> + </condition> + +- <junit printsummary="yes" haltonfailure="no" forkmode="perBatch"> ++ <junit printsummary="yes" haltonfailure="yes" forkmode="perBatch"> + <classpath> + <path refid="dependencies.path" /> + </classpath> diff --git a/dev-util/pmd/files/pmd-3.9-launcher-pre-commands b/dev-util/pmd/files/pmd-3.9-launcher-pre-commands new file mode 100644 index 000000000000..b2e48852597d --- /dev/null +++ b/dev-util/pmd/files/pmd-3.9-launcher-pre-commands @@ -0,0 +1,6 @@ +if [ -z "$3" ]; then + script=`basename $0` + echo "Usage:" + echo " $script <java-src-file> html|xml|text|vbhtml rulesetfile1[,rulesetfile2[,..]]" + exit 1 +fi diff --git a/dev-util/pmd/pmd-3.9.ebuild b/dev-util/pmd/pmd-3.9.ebuild new file mode 100644 index 000000000000..37a124b3c62e --- /dev/null +++ b/dev-util/pmd/pmd-3.9.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/pmd/pmd-3.9.ebuild,v 1.1 2007/05/09 22:14:34 caster Exp $ + +JAVA_PKG_IUSE="doc source test" +inherit java-pkg-2 java-ant-2 + +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 ~x86" +IUSE="" + +COMMON_DEPEND=" + dev-java/ant-core + >=dev-java/asm-3.0 + >=dev-java/backport-util-concurrent-3.0 + >=dev-java/jaxen-1.1_beta10" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPEND}" + +# NOTE: they include regression tests in the main jar so junit is needed on the cp even for src_compile + +# Fails unit tests with sun-jdk-1.6 +DEPEND=" + app-arch/unzip + =dev-java/junit-3.8* + test? ( + dev-java/ant-junit + dev-java/ant-trax + =virtual/jdk-1.5* + ) + !test? ( >=virtual/jdk-1.5 ) + ${COMMON_DEPEND}" + +src_unpack() { + unpack "${A}" + + # We patch build.xml to include all jars in lib dir + cd "${S}" + epatch "${FILESDIR}/${PN}-3.9-build.xml.patch" + + cd "${S}/lib/" + rm -v *.jar || die + java-pkg_jar-from ant-core + java-pkg_jar-from asm-3 asm.jar + java-pkg_jar-from backport-util-concurrent + java-pkg_jar-from jaxen-1.1 jaxen.jar + java-pkg_jar-from --build-only junit +} + +EANT_BUILD_XML="bin/build.xml" + +src_test() { + # fails with sun-jdk-1.6 + # http://sourceforge.net/tracker/index.php?func=detail&aid=1690135&group_id=56262&atid=479921 + ANT_TASKS="ant-junit ant-trax" eant -f bin/build.xml test -DoutputTestResultsToFile=true +} + +src_install() { + java-pkg_newjar lib/${P}.jar + java-pkg_register-ant-task + + # Create launchers and copy rulesets + java-pkg_dolauncher ${PN} --main net.sourceforge.pmd.PMD --java_args "-Xmx512m" \ + -pre ${FILESDIR}/${P}-launcher-pre-commands + java-pkg_dolauncher ${PN}-designer --main net.sourceforge.pmd.util.designer.Designer + cp -r rulesets ${D}/usr/share/${PN} + + use doc && java-pkg_dojavadoc docs/api + use source && java-pkg_dosrc src/* +} + +pkg_postinst() { + elog "Example rulesets can be found under" + elog "/usr/share/pmd/rulesets/" +} |