2004-01-10 04:14:06 +00:00
|
|
|
# New ports collection makefile for: eclipse-pmd
|
|
|
|
# Date created: October 3, 2003
|
2004-09-03 20:29:33 +00:00
|
|
|
# Whom: Bruno Van Den Bossche <brvdboss@spymac.com>
|
2004-01-10 04:14:06 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-07-25 08:02:46 +00:00
|
|
|
PORTNAME= pmd
|
2004-09-03 20:29:33 +00:00
|
|
|
PORTVERSION= 2.0.5.v3
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 3
|
2004-01-10 04:14:06 +00:00
|
|
|
CATEGORIES= java devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= pmd
|
2004-07-25 08:02:46 +00:00
|
|
|
PKGNAMEPREFIX= eclipse-
|
2004-09-03 20:29:33 +00:00
|
|
|
DISTNAME= pmd-eclipse3-site-2.0.5
|
2004-01-10 04:14:06 +00:00
|
|
|
DIST_SUBDIR= eclipse
|
|
|
|
|
2005-08-28 15:29:51 +00:00
|
|
|
MAINTAINER= freebsd-eclipse@FreeBSD.org
|
2004-01-10 04:14:06 +00:00
|
|
|
COMMENT= Scan Java source code and look for potential problems
|
|
|
|
|
2004-12-15 18:51:28 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/eclipse:${PORTSDIR}/java/eclipse
|
2004-07-25 08:02:46 +00:00
|
|
|
|
2004-01-10 04:14:06 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
USE_ZIP= yes
|
2004-09-03 20:29:33 +00:00
|
|
|
USE_JAVA= yes
|
2004-12-15 18:51:28 +00:00
|
|
|
JAVA_EXTRACT= jre
|
2004-01-10 04:14:06 +00:00
|
|
|
|
|
|
|
CPIO?= cpio --quiet -pdmu -R
|
|
|
|
|
2004-09-03 20:29:33 +00:00
|
|
|
PMDVERSION= 1.8.0.v3
|
2004-01-10 04:14:06 +00:00
|
|
|
|
2004-09-03 20:29:33 +00:00
|
|
|
PLUGIN_CORE_DIR="net.sourceforge.pmd.core_${PMDVERSION}"
|
|
|
|
PLUGIN_PMD_DIR= "net.sourceforge.pmd.eclipse_${PORTVERSION}"
|
|
|
|
|
|
|
|
PLIST_SUB+= PLUGIN_PMD_DIR="${PLUGIN_PMD_DIR}" \
|
|
|
|
PLUGIN_CORE_DIR="${PLUGIN_CORE_DIR}"
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIR}/features && ${MKDIR} ${PLUGIN_PMD_DIR} \
|
|
|
|
&& ${CP} ${PLUGIN_PMD_DIR}.jar ${PLUGIN_PMD_DIR} \
|
|
|
|
&& cd ${PLUGIN_PMD_DIR} \
|
|
|
|
&& ${JAR} xvf ${PLUGIN_PMD_DIR}.jar \
|
|
|
|
&& ${RM} ${PLUGIN_PMD_DIR}.jar
|
|
|
|
|
|
|
|
cd ${WRKDIR}/plugins && ${MKDIR} ${PLUGIN_PMD_DIR} \
|
|
|
|
&& ${CP} ${PLUGIN_PMD_DIR}.jar ${PLUGIN_PMD_DIR} \
|
|
|
|
&& cd ${PLUGIN_PMD_DIR} \
|
|
|
|
&& ${JAR} xvf ${PLUGIN_PMD_DIR}.jar \
|
|
|
|
&& ${RM} ${PLUGIN_PMD_DIR}.jar
|
|
|
|
|
|
|
|
cd ${WRKDIR}/plugins && ${MKDIR} ${PLUGIN_CORE_DIR} \
|
|
|
|
&& ${CP} ${PLUGIN_CORE_DIR}.jar ${PLUGIN_CORE_DIR} \
|
|
|
|
&& cd ${PLUGIN_CORE_DIR} \
|
|
|
|
&& ${JAR} xvf ${PLUGIN_CORE_DIR}.jar \
|
|
|
|
&& ${RM} ${PLUGIN_CORE_DIR}.jar
|
2004-01-10 04:14:06 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/eclipse
|
|
|
|
@${MKDIR} ${PREFIX}/eclipse/plugins
|
2004-09-03 20:29:33 +00:00
|
|
|
@${MKDIR} ${PREFIX}/eclipse/plugins/${PLUGIN_PMD_DIR}
|
|
|
|
@${MKDIR} ${PREFIX}/eclipse/plugins/${PLUGIN_CORE_DIR}
|
|
|
|
@${MKDIR} ${PREFIX}/eclipse/features/${PLUGIN_PMD_DIR}
|
|
|
|
cd ${WRKDIR}/features/${PLUGIN_PMD_DIR} && ${FIND} . \
|
|
|
|
| ${CPIO} ${SHAREOWN}:${SHAREGRP} \
|
|
|
|
${PREFIX}/eclipse/features/${PLUGIN_PMD_DIR}
|
|
|
|
cd ${WRKDIR}/plugins/${PLUGIN_PMD_DIR} && ${FIND} . \
|
|
|
|
| ${CPIO} ${SHAREOWN}:${SHAREGRP} \
|
|
|
|
${PREFIX}/eclipse/plugins/${PLUGIN_PMD_DIR}
|
|
|
|
cd ${WRKDIR}/plugins/${PLUGIN_CORE_DIR} && ${FIND} . \
|
2004-01-10 04:14:06 +00:00
|
|
|
| ${CPIO} ${SHAREOWN}:${SHAREGRP} \
|
2004-09-03 20:29:33 +00:00
|
|
|
${PREFIX}/eclipse/plugins/${PLUGIN_CORE_DIR}
|
2004-01-10 04:14:06 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|