summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2004-01-10 04:14:06 +0000
committerPete Fritchman <petef@FreeBSD.org>2004-01-10 04:14:06 +0000
commitc07e17d8bc816e2a7e6c77011b898de744b14915 (patch)
tree9771f8e80173d62415555ba30e5b49441633af35 /java
parentAdd a copy of the Entity MIB to this package (for some reason I thought (diff)
Add eclipse-pmd 1.1.2, scan Java source code and look for potential
problems. PR: 57956 Submitted by: Bruno Van Den Bossche <bruno.van.den.bossche@pandora.be>
Notes
Notes: svn path=/head/; revision=97834
Diffstat (limited to 'java')
-rw-r--r--java/Makefile1
-rw-r--r--java/eclipse-pmd/Makefile37
-rw-r--r--java/eclipse-pmd/distinfo1
-rw-r--r--java/eclipse-pmd/pkg-descr12
-rw-r--r--java/eclipse-pmd/pkg-plist41
5 files changed, 92 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile
index adaa6dcefb25..abf21f8ed951 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -17,6 +17,7 @@
SUBDIR += eclipse-gef
SUBDIR += eclipse-gef-examples
SUBDIR += eclipse-langpack
+ SUBDIR += eclipse-pmd
SUBDIR += forte
SUBDIR += gj
SUBDIR += gj-jdk11
diff --git a/java/eclipse-pmd/Makefile b/java/eclipse-pmd/Makefile
new file mode 100644
index 000000000000..700e728b8e1a
--- /dev/null
+++ b/java/eclipse-pmd/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: eclipse-pmd
+# Date created: October 3, 2003
+# Whom: Bruno Van Den Bossche <bruno.van.den.bossche@pandora.be>
+#
+# $FreeBSD$
+#
+
+PORTNAME= eclipse-pmd
+PORTVERSION= 1.1.2
+CATEGORIES= java devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= pmd
+DISTNAME= pmd-eclipse-bin-${PORTVERSION}
+DIST_SUBDIR= eclipse
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Scan Java source code and look for potential problems
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+USE_ZIP= yes
+
+CPIO?= cpio --quiet -pdmu -R
+
+PLUGIN_DIR= "net.sourceforge.pmd.eclipse_${PORTVERSION}"
+
+PLIST_SUB+= PLUGIN_DIR="${PLUGIN_DIR}"
+
+do-install:
+ @${MKDIR} ${PREFIX}/eclipse
+ @${MKDIR} ${PREFIX}/eclipse/plugins
+ @${MKDIR} ${PREFIX}/eclipse/plugins/${PLUGIN_DIR}
+ cd ${WRKSRC}/${PLUGIN_DIR} && ${FIND} . \
+ | ${CPIO} ${SHAREOWN}:${SHAREGRP} \
+ ${PREFIX}/eclipse/plugins/${PLUGIN_DIR}
+
+.include <bsd.port.mk>
diff --git a/java/eclipse-pmd/distinfo b/java/eclipse-pmd/distinfo
new file mode 100644
index 000000000000..85df74b3dec5
--- /dev/null
+++ b/java/eclipse-pmd/distinfo
@@ -0,0 +1 @@
+MD5 (eclipse/pmd-eclipse-bin-1.1.2.zip) = cd46079fc6c98e4bc6ff2586eb654353
diff --git a/java/eclipse-pmd/pkg-descr b/java/eclipse-pmd/pkg-descr
new file mode 100644
index 000000000000..25c584ae9a44
--- /dev/null
+++ b/java/eclipse-pmd/pkg-descr
@@ -0,0 +1,12 @@
+PMD scans Java source code and looks for potential problems like:
+
+ * Unused local variables
+ * Empty catch blocks
+ * Unused parameters
+ * Empty 'if' statements
+ * Duplicate import statements
+ * Unused private methods
+ * Classes which could be Singletons
+ * Short/long variable and method names
+
+WWW: http://pmd.sourceforge.net/
diff --git a/java/eclipse-pmd/pkg-plist b/java/eclipse-pmd/pkg-plist
new file mode 100644
index 000000000000..12d98f57b98f
--- /dev/null
+++ b/java/eclipse-pmd/pkg-plist
@@ -0,0 +1,41 @@
+eclipse/plugins/%%PLUGIN_DIR%%/CHANGELOG.txt
+eclipse/plugins/%%PLUGIN_DIR%%/LICENSE.txt
+eclipse/plugins/%%PLUGIN_DIR%%/README.txt
+eclipse/plugins/%%PLUGIN_DIR%%/RELNOTES.txt
+eclipse/plugins/%%PLUGIN_DIR%%/TODO.txt
+eclipse/plugins/%%PLUGIN_DIR%%/build.properties
+eclipse/plugins/%%PLUGIN_DIR%%/doc.zip
+eclipse/plugins/%%PLUGIN_DIR%%/icons/error.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/file.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/info.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/pmd-icon-16.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/pmd-icon-32.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_1.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_2.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_3.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_4.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_5.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/prj.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/remvio.gif
+eclipse/plugins/%%PLUGIN_DIR%%/icons/warn.gif
+eclipse/plugins/%%PLUGIN_DIR%%/lib/commons-logging.jar
+eclipse/plugins/%%PLUGIN_DIR%%/lib/jaxen-core-1.0-fcs.jar
+eclipse/plugins/%%PLUGIN_DIR%%/lib/log4j-1.2.8.jar
+eclipse/plugins/%%PLUGIN_DIR%%/lib/pmd-1.2.1.jar
+eclipse/plugins/%%PLUGIN_DIR%%/lib/saxpath-1.0-fcs.jar
+eclipse/plugins/%%PLUGIN_DIR%%/log4j.xml
+eclipse/plugins/%%PLUGIN_DIR%%/messages.properties
+eclipse/plugins/%%PLUGIN_DIR%%/nl/fr/messages.properties
+eclipse/plugins/%%PLUGIN_DIR%%/plugin.properties
+eclipse/plugins/%%PLUGIN_DIR%%/plugin.xml
+eclipse/plugins/%%PLUGIN_DIR%%/plugin_fr.properties
+eclipse/plugins/%%PLUGIN_DIR%%/pmd-eclipse.jar
+eclipse/plugins/%%PLUGIN_DIR%%/toc.xml
+@dirrm eclipse/plugins/%%PLUGIN_DIR%%/nl/fr
+@dirrm eclipse/plugins/%%PLUGIN_DIR%%/nl
+@dirrm eclipse/plugins/%%PLUGIN_DIR%%/lib
+@dirrm eclipse/plugins/%%PLUGIN_DIR%%/icons
+@dirrm eclipse/plugins/%%PLUGIN_DIR%%
+@unexec rmdir %D/eclipse/plugins 2>/dev/null || true
+@unexec rmdir %D/eclipse/features 2>/dev/null || true
+@unexec rmdir %D/eclipse 2>/dev/null || true