diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2006-09-29 01:22:31 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2006-09-29 01:22:31 +0000 |
commit | 9ff28feaeee942b8c1861873b7c126bbbdaa9d25 (patch) | |
tree | 82c1596a0d236be11cd75fd4f544b0dc126f4fe1 /dev-util/pmd | |
parent | Needs gtk+-2.10 and glib-2.12 (diff) | |
download | historical-9ff28feaeee942b8c1861873b7c126bbbdaa9d25.tar.gz historical-9ff28feaeee942b8c1861873b7c126bbbdaa9d25.tar.bz2 historical-9ff28feaeee942b8c1861873b7c126bbbdaa9d25.zip |
Version bump, bug #122023. Contributed by Miroslav Sulc <miroslav.sulc@startnet.cz>.
Package-Manager: portage-2.1.2_pre1
Diffstat (limited to 'dev-util/pmd')
-rw-r--r-- | dev-util/pmd/ChangeLog | 9 | ||||
-rw-r--r-- | dev-util/pmd/Manifest | 77 | ||||
-rw-r--r-- | dev-util/pmd/files/digest-pmd-3.7 | 3 | ||||
-rw-r--r-- | dev-util/pmd/files/pmd-3.7-gentoo.patch | 121 | ||||
-rw-r--r-- | dev-util/pmd/pmd-3.7.ebuild | 71 |
5 files changed, 263 insertions, 18 deletions
diff --git a/dev-util/pmd/ChangeLog b/dev-util/pmd/ChangeLog index e45939b536fb..75882e82717e 100644 --- a/dev-util/pmd/ChangeLog +++ b/dev-util/pmd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-util/pmd # 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 $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/pmd/ChangeLog,v 1.14 2006/09/29 01:22:31 nichoj Exp $ + +*pmd-3.7 (29 Sep 2006) + + 29 Sep 2006; Joshua Nichols <nichoj@gentoo.org> + +files/pmd-3.7-gentoo.patch, +pmd-3.7.ebuild: + Version bump, bug #122023. Contributed by Miroslav Sulc + <miroslav.sulc@startnet.cz>. *pmd-3.4 (08 Jan 2006) diff --git a/dev-util/pmd/Manifest b/dev-util/pmd/Manifest index 28dc9a01e678..cb566c6dcf00 100644 --- a/dev-util/pmd/Manifest +++ b/dev-util/pmd/Manifest @@ -1,24 +1,67 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 5a9f5b993eaac4429bf5becefa9cd593 ChangeLog 1995 -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 +AUX pmd-3.1-gentoo.patch 3808 RMD160 d030afe794d04721219b495ef55d862d8714e5fd SHA1 a63e034dbfa4fe9b941dd67ffbe6d5d76b223690 SHA256 768c78e96a4e0d320f011a3c0d554600fb55249440bdfa1fb381900a52dac660 MD5 a4e38ad08909deab5987c12fe5e59d8d files/pmd-3.1-gentoo.patch 3808 +RMD160 d030afe794d04721219b495ef55d862d8714e5fd files/pmd-3.1-gentoo.patch 3808 +SHA256 768c78e96a4e0d320f011a3c0d554600fb55249440bdfa1fb381900a52dac660 files/pmd-3.1-gentoo.patch 3808 +AUX pmd-3.3-gentoo.patch 3164 RMD160 e542e0a5e2121934c3d482964e6bbfc6e8bae05d SHA1 fef2cb35441b71e6828c0bde7620a192f16da5ec SHA256 d16b810b0e05ddd0e37e2832219ebad62e81fdf5b6ff6101c8a43e331a306d58 MD5 8933adb7f1d0bf9b912e3dd236dd0005 files/pmd-3.3-gentoo.patch 3164 -MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +RMD160 e542e0a5e2121934c3d482964e6bbfc6e8bae05d files/pmd-3.3-gentoo.patch 3164 +SHA256 d16b810b0e05ddd0e37e2832219ebad62e81fdf5b6ff6101c8a43e331a306d58 files/pmd-3.3-gentoo.patch 3164 +AUX pmd-3.7-gentoo.patch 3218 RMD160 81f6c4fae5d4fa0bc74a52bfc63d3adc670bb003 SHA1 785446441cd1eb90921a25b3aefc21c688bc5ba1 SHA256 1bc5b73bcd759a06b04e0afe350a923dae9ab3a08342fd89f14297c5ca693c54 +MD5 1498d9299e578d6525f173b23ab2fdd9 files/pmd-3.7-gentoo.patch 3218 +RMD160 81f6c4fae5d4fa0bc74a52bfc63d3adc670bb003 files/pmd-3.7-gentoo.patch 3218 +SHA256 1bc5b73bcd759a06b04e0afe350a923dae9ab3a08342fd89f14297c5ca693c54 files/pmd-3.7-gentoo.patch 3218 +DIST pmd-src-1.5.zip 5630923 +DIST pmd-src-3.1.zip 9120718 +DIST pmd-src-3.3.zip 9300101 +DIST pmd-src-3.4.zip 9535887 +DIST pmd-src-3.7.zip 10756798 RMD160 451bace491bc46cd6b3db4a5ac11b48bfa8e3b18 SHA1 10d2fcddd3da81f7e49e0a75fb634c44e2b49910 SHA256 a35de76cd8049fd91b3c4e2031b7b03f849e03e2facba1e32ea1cb27cacdb5ff +EBUILD pmd-1.5-r1.ebuild 1092 RMD160 e7e7c1f9c0a4abfd55f6bdf1e6a0eff3f57b2adb SHA1 c269197e0130058e2851d87858051da968500e0b SHA256 485639ec7ce3c184953809e8d70711e2e7fa5f5f347d7778f0b77f3958e57c58 MD5 b131da5bb636d0aa455f681cad502d75 pmd-1.5-r1.ebuild 1092 +RMD160 e7e7c1f9c0a4abfd55f6bdf1e6a0eff3f57b2adb pmd-1.5-r1.ebuild 1092 +SHA256 485639ec7ce3c184953809e8d70711e2e7fa5f5f347d7778f0b77f3958e57c58 pmd-1.5-r1.ebuild 1092 +EBUILD pmd-1.5.ebuild 790 RMD160 8d8a291215ddab8f84e1702d5bac7ca7657e752a SHA1 aa3fa8081b1fd72eae2f6663224d7f721aacca14 SHA256 15952411fb7ec69e801b04f271076d76d5b3c27f2b58264d87ff5ca7dff20abf MD5 de5629bb3e4f74880b7481c1db6d1d2f pmd-1.5.ebuild 790 +RMD160 8d8a291215ddab8f84e1702d5bac7ca7657e752a pmd-1.5.ebuild 790 +SHA256 15952411fb7ec69e801b04f271076d76d5b3c27f2b58264d87ff5ca7dff20abf pmd-1.5.ebuild 790 +EBUILD pmd-3.1.ebuild 1448 RMD160 89f88ef21fe23d7deb1621fa0c99261f299e032a SHA1 e291ce60e8a579377562f126c929bb25fd003871 SHA256 59f41cd8c9a767dc08e3cf6363c5858e316122efc7d14ff5fa7220f14770b139 MD5 c350d228faedf2333f206d7199e88222 pmd-3.1.ebuild 1448 +RMD160 89f88ef21fe23d7deb1621fa0c99261f299e032a pmd-3.1.ebuild 1448 +SHA256 59f41cd8c9a767dc08e3cf6363c5858e316122efc7d14ff5fa7220f14770b139 pmd-3.1.ebuild 1448 +EBUILD pmd-3.3.ebuild 1684 RMD160 89f23d5391303c430147266ea933e162d218ad07 SHA1 2e5ba4a06ed303771667440c44c4a281bf243952 SHA256 77c763f26a75db4e901de40f6dfea894d53db20c8649dfd3249f7d3c0a97aede MD5 82d721c9d2e2aa35c109aa97f9eb2fcb pmd-3.3.ebuild 1684 +RMD160 89f23d5391303c430147266ea933e162d218ad07 pmd-3.3.ebuild 1684 +SHA256 77c763f26a75db4e901de40f6dfea894d53db20c8649dfd3249f7d3c0a97aede pmd-3.3.ebuild 1684 +EBUILD pmd-3.4.ebuild 1685 RMD160 cde64faa083a3e803606eaa8438d1cf01859c9f3 SHA1 b237362726441ca520e3b3cadc8c347270b848a9 SHA256 90b04284a90038c4684909356ac50765ef6f30456b35042a9ed78272be0754a0 MD5 b22d516c96e95b9cd2c5dd5b1e3b3165 pmd-3.4.ebuild 1685 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2 (GNU/Linux) - -iD8DBQFDwIWkndWRXhKOboURArHmAJ90Kz4zQt3q9l70aN0aBgROsxLYwACeNdZA -xwkJdsAv9Jefq7BbCHSdONM= -=gsMc ------END PGP SIGNATURE----- +RMD160 cde64faa083a3e803606eaa8438d1cf01859c9f3 pmd-3.4.ebuild 1685 +SHA256 90b04284a90038c4684909356ac50765ef6f30456b35042a9ed78272be0754a0 pmd-3.4.ebuild 1685 +EBUILD pmd-3.7.ebuild 1710 RMD160 ef4adf56a60b9dc05d904cd442bec7924dace9ec SHA1 9104656df4faa8ac88850140f43d19868a316ba5 SHA256 588a0ef2fd325570b449342f70f25b720bf5bf7f6892c7052487b5f4133d7042 +MD5 5ff890d31dcf39e0b7425b13b85142ed pmd-3.7.ebuild 1710 +RMD160 ef4adf56a60b9dc05d904cd442bec7924dace9ec pmd-3.7.ebuild 1710 +SHA256 588a0ef2fd325570b449342f70f25b720bf5bf7f6892c7052487b5f4133d7042 pmd-3.7.ebuild 1710 +MISC ChangeLog 2207 RMD160 015e3fda5aec0ef0c3d1f1a7d7e8a7ec5c52743e SHA1 b1f309b815af3b55c329d4a245477a7571994a51 SHA256 a2e62ff30c10fa7050682afb0de9e2d86f1b8bfde933f190d452aef27862cd38 +MD5 cd0edd0476f850baa4c9de87712b1b01 ChangeLog 2207 +RMD160 015e3fda5aec0ef0c3d1f1a7d7e8a7ec5c52743e ChangeLog 2207 +SHA256 a2e62ff30c10fa7050682afb0de9e2d86f1b8bfde933f190d452aef27862cd38 ChangeLog 2207 +MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 metadata.xml 157 +SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 metadata.xml 157 +MD5 f4fd6e2650f6d50125b3e546a7c0a54b files/digest-pmd-1.5 61 +RMD160 250e56fece88d76b20ed5612c859e3858f386e2a files/digest-pmd-1.5 61 +SHA256 8a8e700bc66ba1a18a6b0deedfd133ef27924ec7203da8fd65a7009528e6b9c1 files/digest-pmd-1.5 61 +MD5 f4fd6e2650f6d50125b3e546a7c0a54b files/digest-pmd-1.5-r1 61 +RMD160 250e56fece88d76b20ed5612c859e3858f386e2a files/digest-pmd-1.5-r1 61 +SHA256 8a8e700bc66ba1a18a6b0deedfd133ef27924ec7203da8fd65a7009528e6b9c1 files/digest-pmd-1.5-r1 61 +MD5 9cd4c2c64ebddf354fb7475e86887505 files/digest-pmd-3.1 61 +RMD160 9136d4c3e3901ee56e6bbf218fecc9abcc52b22d files/digest-pmd-3.1 61 +SHA256 51e07848cf1fb94d8ef1920a372e3e17fe55b373e0f1089bd0e9d03bc30d7aa8 files/digest-pmd-3.1 61 +MD5 e810cb5e40dfcc3ba21c05d7ba29d54b files/digest-pmd-3.3 61 +RMD160 9b244226ac7b4de9c600e0bda4879cbf1a81f96e files/digest-pmd-3.3 61 +SHA256 39c93fb77f0d1bbdf72ee648c6bf91f5e32f33a8a78e5d7bf5cb4f703f003fac files/digest-pmd-3.3 61 +MD5 2f550f3dcd71f7a9725a06ca89c5e810 files/digest-pmd-3.4 61 +RMD160 adfde55f4ddc3d987fe223b8c1e1dbe06a6d5ece files/digest-pmd-3.4 61 +SHA256 94db0a929bbd5ac4ed9397eb43918a9e3d5dbc6924d41a5f3e0234b3a6b5982f files/digest-pmd-3.4 61 +MD5 986caf9c023760e573426f6872b3b960 files/digest-pmd-3.7 232 +RMD160 38f94f5e085a62da05b4174c45e9067ec8312566 files/digest-pmd-3.7 232 +SHA256 b32514fcbc8fda0b0020c041c43046a848d52eaa3df4bdad01375363ceaec196 files/digest-pmd-3.7 232 diff --git a/dev-util/pmd/files/digest-pmd-3.7 b/dev-util/pmd/files/digest-pmd-3.7 new file mode 100644 index 000000000000..b4c122c3d2fa --- /dev/null +++ b/dev-util/pmd/files/digest-pmd-3.7 @@ -0,0 +1,3 @@ +MD5 0d4390017f2467345ca7b91b1437fef9 pmd-src-3.7.zip 10756798 +RMD160 451bace491bc46cd6b3db4a5ac11b48bfa8e3b18 pmd-src-3.7.zip 10756798 +SHA256 a35de76cd8049fd91b3c4e2031b7b03f849e03e2facba1e32ea1cb27cacdb5ff pmd-src-3.7.zip 10756798 diff --git a/dev-util/pmd/files/pmd-3.7-gentoo.patch b/dev-util/pmd/files/pmd-3.7-gentoo.patch new file mode 100644 index 000000000000..df69782d037e --- /dev/null +++ b/dev-util/pmd/files/pmd-3.7-gentoo.patch @@ -0,0 +1,121 @@ +diff -ru pmd-3.7.orig/bin/build.xml pmd-3.7/bin/build.xml +--- pmd-3.7.orig/bin/build.xml 2006-09-25 01:17:08.000000000 +0200 ++++ pmd-3.7/bin/build.xml 2006-09-25 01:29:36.000000000 +0200 +@@ -12,12 +12,7 @@ + + <path id="dependencies.path"> + <pathelement location="${dir.build}" /> +- <fileset dir="${dir.lib}"> +- <include name="jaxen-1.1-beta-7.jar" /> +- <include name="jakarta-oro-2.0.8.jar" /> +- <include name="xercesImpl-2.6.2.jar" /> +- <include name="xmlParserAPIs-2.6.2.jar" /> +- </fileset> ++ <fileset dir="${dir.lib}" includes="*.jar"/> + </path> + + <target name="delete" description="Deletes the build directory and the pmd-x.x jar file."> +@@ -62,7 +57,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-7.jar jakarta-oro-2.0.8.jar" /> + </manifest> + </jar> + </target> +diff -ru pmd-3.7.orig/bin/designer.sh pmd-3.7/bin/designer.sh +--- pmd-3.7.orig/bin/designer.sh 2006-09-25 01:17:08.000000000 +0200 ++++ pmd-3.7/bin/designer.sh 2006-09-25 01:27:59.000000000 +0200 +@@ -1,34 +1,11 @@ + #!/bin/bash + +-SCRIPT_DIR=`dirname $0` +-CWD="$PWD" ++cp=$(java-config -p xerces-2,saxpath,jaxen,pmd,xml-commons) + +-cd "$SCRIPT_DIR/../lib" +-LIB_DIR=`pwd -P` +- +-classpath=$CLASSPATH +- +-build_dir="$SCRIPT_DIR/../build" +- +-if [ -d "$build_dir" ]; then +- cd "$build_dir" +- build_dir=`pwd -P` +- classpath=$classpath:$build_dir +-fi +- +-cd "$CWD" +- +-for jarfile in `ls $LIB_DIR/*.jar`; do +- classpath=$classpath:$jarfile +-done +- +- +-FILE=$1 ++FILE=${1} + shift +-FORMAT=$1 ++FORMAT=${1} + shift +-RULESETFILES="$@" +- +-# echo "CLASSPATH: $classpath" ++RULESETFILES="${@}" + +-java -cp $classpath net.sourceforge.pmd.util.designer.Designer ++java -cp ${cp} net.sourceforge.pmd.util.designer.Designer +diff -ru pmd-3.7.orig/bin/pmd.sh pmd-3.7/bin/pmd.sh +--- pmd-3.7.orig/bin/pmd.sh 2006-09-25 01:17:08.000000000 +0200 ++++ pmd-3.7/bin/pmd.sh 2006-09-25 01:27:44.000000000 +0200 +@@ -1,41 +1,20 @@ + #!/bin/bash + +-if [ -z "$3" ]; then +- script=`basename $0` ++if [ -z "${3}" ]; then ++ script=$(basename $0) + echo "Usage:" +- echo " $script <java-src-file> html|xml|text|vbhtml rulesetfile1[,rulesetfile2[,..]]" ++ echo " ${script} <java-src-file> html|xml|text|vbhtml rulesetfile1[,rulesetfile2[,..]]" + exit 1 + fi + +-SCRIPT_DIR=`dirname $0` +-CWD="$PWD" ++cp=$(java-config -p xerces-2,saxpath,jaxen,pmd,xml-commons) + +-cd "$SCRIPT_DIR/../lib" +-LIB_DIR=`pwd -P` +- +-classpath=$CLASSPATH +- +-build_dir="$SCRIPT_DIR/../build" +- +-if [ -d "$build_dir" ]; then +- cd "$build_dir" +- build_dir=`pwd -P` +- classpath=$classpath:$build_dir +-fi +- +-cd "$CWD" +- +-for jarfile in `ls $LIB_DIR/*.jar`; do +- classpath=$classpath:$jarfile +-done +- +- +-FILE=$1 ++FILE=${1} + shift +-FORMAT=$1 ++FORMAT=${1} + shift +-RULESETFILES="$@" ++RULESETFILES="${@}" + + # echo "CLASSPATH: $classpath" + +-java -cp $classpath net.sourceforge.pmd.PMD $FILE $FORMAT $RULESETFILES ++exec $(java-config --java) -cp ${cp} net.sourceforge.pmd.PMD ${FILE} ${FORMAT} ${RULESETFILES} diff --git a/dev-util/pmd/pmd-3.7.ebuild b/dev-util/pmd/pmd-3.7.ebuild new file mode 100644 index 000000000000..3d299ea3aa63 --- /dev/null +++ b/dev-util/pmd/pmd-3.7.ebuild @@ -0,0 +1,71 @@ +# 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.7.ebuild,v 1.1 2006/09/29 01:22:31 nichoj Exp $ + +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 ~sparc ~x86" +IUSE="doc source" + +RDEPEND=">=virtual/jre-1.3 + =dev-java/jaxen-1.0* + dev-java/saxpath + dev-java/xml-commons + >=dev-java/xerces-2.6 + =dev-java/jakarta-oro-2.0* + " +DEPEND=">=virtual/jdk-1.3 + ${RDEPEND} + app-arch/unzip + dev-java/ant-core + dev-java/junit + source? ( app-arch/zip )" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-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 + java-pkg_jar-from ant-core ant.jar + java-pkg_jar-from jakarta-oro-2.0 + java-pkg_jar-from --build-only junit +} + +src_compile() { + cd ${S}/bin + eant jar $(use_doc javadoc) +} + +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 + + # TODO should try to use dolauncher + 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 "" +} |