1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/java/eclipse-pmd/Makefile
2014-03-10 15:21:21 +00:00

71 lines
2.1 KiB
Makefile

# Created by: Bruno Van Den Bossche <brvdboss@spymac.com>
# $FreeBSD$
PORTNAME= pmd
PORTVERSION= 2.0.5.v3
PORTREVISION= 6
CATEGORIES= java devel
MASTER_SITES= SF/${PORTNAME}/OldFiles
PKGNAMEPREFIX= eclipse-
DISTNAME= pmd-eclipse3-site-2.0.5
DIST_SUBDIR= eclipse
MAINTAINER= freebsd-eclipse@FreeBSD.org
COMMENT= Scan Java source code and look for potential problems
RUN_DEPENDS= ${LOCALBASE}/bin/eclipse:${PORTSDIR}/java/eclipse
USES= zip
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_JAVA= yes
JAVA_EXTRACT= jre
CPIO?= cpio --quiet -pdmu -R
PMDVERSION= 1.8.0.v3
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}"
NO_STAGE= yes
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
do-install:
@${MKDIR} ${PREFIX}/lib/eclipse
@${MKDIR} ${PREFIX}/lib/eclipse/plugins
@${MKDIR} ${PREFIX}/lib/eclipse/plugins/${PLUGIN_PMD_DIR}
@${MKDIR} ${PREFIX}/lib/eclipse/plugins/${PLUGIN_CORE_DIR}
@${MKDIR} ${PREFIX}/lib/eclipse/features/${PLUGIN_PMD_DIR}
cd ${WRKDIR}/features/${PLUGIN_PMD_DIR} && ${FIND} . \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/lib/eclipse/features/${PLUGIN_PMD_DIR}
cd ${WRKDIR}/plugins/${PLUGIN_PMD_DIR} && ${FIND} . \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/lib/eclipse/plugins/${PLUGIN_PMD_DIR}
cd ${WRKDIR}/plugins/${PLUGIN_CORE_DIR} && ${FIND} . \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/lib/eclipse/plugins/${PLUGIN_CORE_DIR}
.include <bsd.port.mk>