summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-05-20 18:48:34 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-05-20 18:48:34 +0000
commit4da80c10618ef62b39ce6982820969969fc5d18a (patch)
tree2062ea08c778ee79ef9919cb74f94e0880389acd /dev-util/pmd/files
parentFixed docs location. (diff)
downloadgentoo-2-4da80c10618ef62b39ce6982820969969fc5d18a.tar.gz
gentoo-2-4da80c10618ef62b39ce6982820969969fc5d18a.tar.bz2
gentoo-2-4da80c10618ef62b39ce6982820969969fc5d18a.zip
new upstream version, introduced support for the source useflag and added a patch for the wrapper script and other classpath related things. fixes #93236.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-util/pmd/files')
-rw-r--r--dev-util/pmd/files/digest-pmd-3.11
-rw-r--r--dev-util/pmd/files/pmd-3.1-gentoo.patch140
2 files changed, 141 insertions, 0 deletions
diff --git a/dev-util/pmd/files/digest-pmd-3.1 b/dev-util/pmd/files/digest-pmd-3.1
new file mode 100644
index 000000000000..44067fa49372
--- /dev/null
+++ b/dev-util/pmd/files/digest-pmd-3.1
@@ -0,0 +1 @@
+MD5 2cf5b78874eb74b9947a4d62cd21c722 pmd-src-3.1.zip 9120718
diff --git a/dev-util/pmd/files/pmd-3.1-gentoo.patch b/dev-util/pmd/files/pmd-3.1-gentoo.patch
new file mode 100644
index 000000000000..96fc02f1e21c
--- /dev/null
+++ b/dev-util/pmd/files/pmd-3.1-gentoo.patch
@@ -0,0 +1,140 @@
+diff -u bin.orig/build.xml bin/build.xml
+--- bin.orig/build.xml 2005-05-20 19:49:46.000000000 +0200
++++ bin/build.xml 2005-05-20 20:25:51.000000000 +0200
+@@ -1,20 +1,16 @@
+ <project name="pmd" default="compile" basedir="../">
+
+-<property name="dir.lib" value="lib\"/>
+-<property name="dir.src" value="src\"/>
+-<property name="dir.build" value="build\"/>
+-<property name="dir.rulesets" value="rulesets\"/>
+-<property name="dir.regress" value="regress\"/>
++ <property name="dir.lib" value="lib/"/>
++ <property name="dir.src" value="src/"/>
++ <property name="dir.build" value="build/"/>
++ <property name="dir.rulesets" value="rulesets/"/>
++ <property name="dir.regress" value="regress/"/>
+ <property name="version" value="3.1"/>
+ <property name="jnlp_staging_area" value="/home/tom/misc/importscrubberjnlp/"/>
+
+ <path id="dependencies.path">
+- <pathelement location="${dir.build}"/>
+ <fileset dir="${dir.lib}">
+- <include name="jaxen-core-1.0-fcs.jar"/>
+- <include name="saxpath-1.0-fcs.jar"/>
+- <include name="xercesImpl-2.6.2.jar"/>
+- <include name="xmlParserAPIs-2.6.2.jar"/>
++ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+@@ -54,12 +50,11 @@
+
+ <target name="jar" depends="copy,compile" description="Jars up the classes and rulesets">
+ <jar
+- jarfile="${dir.lib}\pmd-${version}.jar"
++ jarfile="${dir.lib}\pmd.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-core-1.0-fcs.jar saxpath-1.0-fcs.jar"/>
+ </manifest>
+ </jar>
+ </target>
+diff -u bin.orig/designer.sh bin/designer.sh
+--- bin.orig/designer.sh 2005-05-20 19:49:46.000000000 +0200
++++ bin/designer.sh 2005-05-20 20:41:53.000000000 +0200
+@@ -1,34 +1,11 @@
+ #!/bin/bash
+
+-SCRIPT_DIR=`dirname $0`
+-CWD="$PWD"
++cp=$(java-config -p xerces-2,saxpath,jaxen,pmd)
+
+-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 -u bin.orig/pmd.sh bin/pmd.sh
+--- bin.orig/pmd.sh 2005-05-20 19:49:46.000000000 +0200
++++ bin/pmd.sh 2005-05-20 20:41:47.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)
+
+-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
++java -cp ${cp} net.sourceforge.pmd.PMD ${FILE} ${FORMAT} ${RULESETFILES}