freebsd-ports/devel/eclipse-eclemma/Makefile
Dennis Herrmann 7e5b2962ec - Update to 1.5.3
PR:		ports/157984
Submitted by:	Dominic Fandrey <kamikaze@bsdforen.de> (maintainer)
2011-06-19 19:48:40 +00:00

52 lines
1.2 KiB
Makefile

# New ports collection makefile for: eclemma
# Date created: 18 Mar 2010
# Whom: kamikaze@bsdforen.de
#
# $FreeBSD$
#
PORTNAME= eclemma
PORTVERSION= 1.5.3
CATEGORIES= devel java editors
MASTER_SITES= SF/${PORTNAME}/01_EclEmma_Releases/${PORTVERSION}
MAINTAINER= kamikaze@bsdforen.de
COMMENT= Java code coverage tool for Eclipse
RUN_DEPENDS= eclipse:${PORTSDIR}/java/eclipse
PLUGIN_PATHS= features plugins
USE_ZIP= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}
ECLIPSE= lib/eclipse
PLIST_SUB= VER=${PORTVERSION} \
ECLIPSE=${ECLIPSE}
do-install:
.for _path in ${PLUGIN_PATHS}
@${MKDIR} ${PREFIX}/${ECLIPSE}/${_path}
@${CP} -r ${WRKSRC}/${_path}/* ${PREFIX}/${ECLIPSE}/${_path}/
.endfor
plist: build
@${ECHO} "===> Rebuilding PLIST."
@${TOUCH} ${PLIST}
@${RM} ${PLIST}
.for _path in ${PLUGIN_PATHS}
@${FIND} -ds ${WRKSRC}/${_path}/ -not -type d \
| ${SED} "s|${WRKSRC}|%%ECLIPSE%%|1" \
| ${SED} "s|${PORTVERSION}|%%VER%%|g" \
>> ${PLIST}
@${FIND} -ds ${WRKSRC}/${_path}/ -mindepth 1 -type d \
| ${SED} "s|${WRKSRC}|@dirrm %%ECLIPSE%%|1" \
| ${SED} "s|${PORTVERSION}|%%VER%%|g" \
>> ${PLIST}
@${ECHO} "@dirrmtry %%ECLIPSE%%/${_path}" >> ${PLIST}
.endfor
@${ECHO} "@dirrmtry %%ECLIPSE%%" >> ${PLIST}
.include <bsd.port.mk>