java/71078: Update port: java/eclipse-pmd upgrade to support

java/71078: Update port: java/eclipse-pmd upgrade to support

Post by brvdbos » Sun, 29 Aug 2004 22:24:13


System: FreeBSD Noisy.localdomain.local 5.3-BETA1 FreeBSD 5.3-BETA1 #0: Tue Aug 24 20:03:37 CEST 2004 XXXX@XXXXX.COM :/usr/obj/usr/src/sys/NOISY i386



Upgrade of the pmd-plugin for Eclipse to support eclipse3 and
upgrade th port to the current major version




--- pmd-port.sh begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# eclipse-pmd
# eclipse-pmd/pkg-descr
# eclipse-pmd/distinfo
# eclipse-pmd/Makefile
# eclipse-pmd/pkg-plist
#
echo c - eclipse-pmd
mkdir -p eclipse-pmd > /dev/null 2>&1
echo x - eclipse-pmd/pkg-descr
sed 's/^X//' >eclipse-pmd/pkg-descr << 'END-of-eclipse-pmd/pkg-descr'
XPMD scans Java source code and looks for potential problems like:
X
X * Unused local variables
X * Empty catch blocks
X * Unused parameters
X * Empty 'if' statements
X * Duplicate import statements
X * Unused private methods
X * Classes which could be Singletons
X * Short/long variable and method names
X
XWWW: http://pmd.sourceforge.net/
END-of-eclipse-pmd/pkg-descr
echo x - eclipse-pmd/distinfo
sed 's/^X//' >eclipse-pmd/distinfo << 'END-of-eclipse-pmd/distinfo'
XMD5 (eclipse/pmd-eclipse3-site-2.0.5.zip) = 2031c18c9e3875809064df1eb192058e
XSIZE (eclipse/pmd-eclipse3-site-2.0.5.zip) = 4267395
END-of-eclipse-pmd/distinfo
echo x - eclipse-pmd/Makefile
sed 's/^X//' >eclipse-pmd/Makefile << 'END-of-eclipse-pmd/Makefile'
X# New ports collection makefile for: eclipse-pmd
X# Date created: October 3, 2003
X# Whom: Bruno Van Den Bossche < XXXX@XXXXX.COM >
X#
X# $FreeBSD$
X#
X
XPORTNAME= pmd
XPORTVERSION= 2.0.5.v3
XCATEGORIES= java devel
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= pmd
XPKGNAMEPREFIX= eclipse-
XDISTNAME= pmd-eclipse3-site-2.0.5
XDIST_SUBDIR= eclipse
X
XMAINTAINER= XXXX@XXXXX.COM
XCOMMENT= Scan Java source code and look for potential problems
X
XRUN_DEPENDS= ${LOCALBASE}/bin/eclipse:${PORTSDIR}/java/eclipse
X
XNO_BUILD= yes
XNO_WRKSUBDIR= yes
XUSE_ZIP= yes
XUSE_JAVA= yes
X
XCPIO?= cpio --quiet -pdmu -R
X
XPMDVERSION= 1.8.0.v3
X
XPLUGIN_CORE_DIR="net.sourceforge.pmd.core_${PMDVERSION}"
XPLUGIN_PMD_DIR= "net.sourceforge.pmd.eclipse_${PORTVERSION}"
X
XPLIST_SUB+= PLUGIN_PMD_DIR="${PLUGIN_PMD_DIR}" \
X PLUGIN_CORE_DIR="${PLUGIN_CORE_DIR}"
X
Xpost-extract:
X cd ${WRKDIR}/features && ${MKDIR} ${PLUGIN_PMD_DIR} \
X && ${CP} ${PLUGIN_PMD_DIR}.jar ${PLUGIN_PMD_DIR} \
X && cd ${PLUGIN_PMD_DIR} \
X && ${JAR} xvf ${PLUGIN_PMD_DIR}.jar \
X && ${RM} ${PLUGIN_PMD_DIR}.jar
X
X cd ${WRKDIR}/plugins && ${MKDIR} ${PLUGIN_PMD_DIR} \
X && ${CP} ${PLUGIN_PMD_DIR}.jar ${PLUGIN_PMD_DIR} \
X && cd ${PLUGIN_PMD_DIR} \
X && ${JAR} xvf ${PLUGIN_PMD_DIR}.jar \
X && ${RM} ${PLUGIN_PMD_DIR}.jar
X
X cd ${WRKDIR}/plugins && ${MKDIR} ${PLUGIN_CORE_DIR} \
X && ${CP} ${PLUGIN_CORE_DIR}.jar ${PLUGIN_CORE_DIR} \
X && cd ${PLUGIN_CORE_DIR} \
X && ${JAR} xvf ${PLUGIN_CORE_DIR}.jar \
X && ${RM} ${PLUGIN_CORE_DIR}.jar
X
Xdo-install:
X @${MKDIR} ${PREFIX}/eclipse
X @${MKDIR} ${PREFIX}/eclipse/plugins
X @${MKDIR} ${PREFIX}/eclipse/plugins/${PLUGIN_PMD_DIR}
X @${MKDIR} ${PREFIX}/eclipse/plugins/${PLUGIN_CORE_DIR}
X @${MKDIR} ${PREFIX}
 
 
 

1. java/69733: [new port] java/eclipse-sysdeo-tomcat, Sysdeo

2. java/113248: Port: java/eclipse tzupdater-1.1.0 no longer available


@home
FreeBSD spartacus.homelan 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun Dec 24 15:16:11 CET 2006 paolo@hybris:/usr/obj/usr/src/sys/HYBRIS i386

There is no more tzupdater-1.1.0.* on Sun Site, so that port java/eclipse fails to install
cd /usr/ports/java/eclipse ;make install

Change the name of the required file (and any checks on it) to:
tzupdater-1_2_1-2007f.zip
that is the only now available for download


_______________________________________________
XXXX@XXXXX.COM mailing list
http://www.yqcomputer.com/
To unsubscribe, send any mail to " XXXX@XXXXX.COM "

3. java/71148: [new port] java/eclipse-log4e

4. ports/72990: [PATCH] update java/eclipse

5. ports/73214: [patch] update java/eclipse-cdt to version 2.0.2

6. java/57573: New java ports: java/jakarta-commons-pool and

7. java/58524: new port: java/jmf - Java Media Framework

8. ports/70441: [new port] java/eclipse-sqlexplorer

9. ports/68051: [new port] java/eclipse-lomboz

10. java/56490: Update port: java/jakarta-log4j

11. java/59039: Update port: java/trove4j

12. java/61311: Update port: java/jakarta-commons-primitives

13. java/64171: Update port: java/jakarta-commons-collections

14. java/59022: Update port: java/jakarta-log4j

15. java/63928: Update port: java/jakarta-commons-logging [PATCH]