summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2005-12-06 03:50:13 +0000
committerJoshua Nichols <nichoj@gentoo.org>2005-12-06 03:50:13 +0000
commit0320d97bc866d667de936d307f86f79532390ec3 (patch)
tree4c43a85e1df051afe6ccce22d9fb3e2290d4c0bb /dev-util/pmd/files
parentinitial import to the tree for >=mozilla-thunderbird-1.5_rc1 (diff)
downloadgentoo-2-0320d97bc866d667de936d307f86f79532390ec3.tar.gz
gentoo-2-0320d97bc866d667de936d307f86f79532390ec3.tar.bz2
gentoo-2-0320d97bc866d667de936d307f86f79532390ec3.zip
Version bump (bug #112654).
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'dev-util/pmd/files')
-rw-r--r--dev-util/pmd/files/digest-pmd-3.31
-rw-r--r--dev-util/pmd/files/pmd-3.3-gentoo.patch122
2 files changed, 123 insertions, 0 deletions
diff --git a/dev-util/pmd/files/digest-pmd-3.3 b/dev-util/pmd/files/digest-pmd-3.3
new file mode 100644
index 000000000000..8ca73b669ad0
--- /dev/null
+++ b/dev-util/pmd/files/digest-pmd-3.3
@@ -0,0 +1 @@
+MD5 b09b0ac9548e82aa4368c31c5111580d pmd-src-3.3.zip 9300101
diff --git a/dev-util/pmd/files/pmd-3.3-gentoo.patch b/dev-util/pmd/files/pmd-3.3-gentoo.patch
new file mode 100644
index 000000000000..22f535a06ca8
--- /dev/null
+++ b/dev-util/pmd/files/pmd-3.3-gentoo.patch
@@ -0,0 +1,122 @@
+diff -ru pmd-3.3/bin/build.xml pmd-3.3-patched/bin/build.xml
+--- pmd-3.3/bin/build.xml 2005-09-15 18:38:26.000000000 -0400
++++ pmd-3.3-patched/bin/build.xml 2005-12-05 22:12:51.000000000 -0500
+@@ -10,11 +10,7 @@
+
+ <path id="dependencies.path">
+ <pathelement location="${dir.build}"/>
+- <fileset dir="${dir.lib}">
+- <include name="jaxen-1.1-beta-7.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.">
+@@ -60,7 +56,6 @@
+ basedir="${dir.build}">
+ <manifest>
+ <attribute name="Main-Class" value="net.sourceforge.pmd.PMD"/>
+- <attribute name="Class-Path" value="jaxen-1.1-beta-7.jar"/>
+ </manifest>
+ </jar>
+ </target>
+Only in pmd-3.3-patched/bin: build.xml.orig
+Only in pmd-3.3-patched/bin: build.xml.rej
+diff -ru pmd-3.3/bin/designer.sh pmd-3.3-patched/bin/designer.sh
+--- pmd-3.3/bin/designer.sh 2005-01-28 11:13:49.000000000 -0500
++++ pmd-3.3-patched/bin/designer.sh 2005-12-05 22:12:51.000000000 -0500
+@@ -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 -ru pmd-3.3/bin/pmd.sh pmd-3.3-patched/bin/pmd.sh
+--- pmd-3.3/bin/pmd.sh 2005-01-28 11:13:49.000000000 -0500
++++ pmd-3.3-patched/bin/pmd.sh 2005-12-05 22:12:51.000000000 -0500
+@@ -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
++exec $(java-config --java) -cp ${cp} net.sourceforge.pmd.PMD ${FILE} ${FORMAT} ${RULESETFILES}