diff options
author | petef <petef@FreeBSD.org> | 2004-01-10 12:14:06 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2004-01-10 12:14:06 +0800 |
commit | da01eb148d566d2768eefd9dbd004b8b25664fe5 (patch) | |
tree | 5520ef9c8ad044fdc89f6291c5e19c70bf071fad | |
parent | 0b00ea7a9243ff7fc3a6b259944cc6f73b89b87f (diff) | |
download | freebsd-ports-gnome-da01eb148d566d2768eefd9dbd004b8b25664fe5.tar.gz freebsd-ports-gnome-da01eb148d566d2768eefd9dbd004b8b25664fe5.tar.zst freebsd-ports-gnome-da01eb148d566d2768eefd9dbd004b8b25664fe5.zip |
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>
-rw-r--r-- | java/Makefile | 1 | ||||
-rw-r--r-- | java/eclipse-pmd/Makefile | 37 | ||||
-rw-r--r-- | java/eclipse-pmd/distinfo | 1 | ||||
-rw-r--r-- | java/eclipse-pmd/pkg-descr | 12 | ||||
-rw-r--r-- | java/eclipse-pmd/pkg-plist | 41 |
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 |