1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/java/junit/Makefile
Danilo Egea Gondolfo 710facb220 - Update from 4.10 to 4.11
- Add stage support
- Improve COMMENT
- Change MASTER_SITES to GH
- Take maintainership
2014-03-05 02:24:30 +00:00

45 lines
1.4 KiB
Makefile

# Created by: OKAZAKI Tetsurou
# $FreeBSD$
PORTNAME= junit
PORTVERSION= 4.11
CATEGORIES= java devel
MASTER_SITES= GH
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= danilo@FreeBSD.org
COMMENT= Regression testing utility for use with the Java(TM) Language
USE_GITHUB= yes
GH_ACCOUNT= junit-team
GH_PROJECT= ${PORTNAME}
GH_TAGNAME= r${PORTVERSION}
USES= perl5
USE_JAVA= yes
USE_ANT= yes
WRKSRC= ${WRKDIR}/junit-team-junit-c62e2df
PORTDOCS= README.html cpl-v10.html doc javadoc
PORTEXAMPLES= *
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PLIST_FILES= %%JAVAJARDIR%%/junit.jar %%DATADIR%%/src.jar
PLIST_DIRS= %%DATADIR%%
do-install:
${INSTALL_DATA} ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT/junit-${PORTVERSION}-SNAPSHOT.jar \
${STAGEDIR}${JAVAJARDIR}/junit.jar
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT/junit-${PORTVERSION}-SNAPSHOT-src.jar \
${STAGEDIR}${DATADIR}/src.jar
cd ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT/junit/samples \
&& ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/
cd ${INSTALL_WRKSRC} \
&& ${FIND} ${PORTDOCS:Njavadoc} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \
&& ${FIND} ${PORTDOCS:Njavadoc} -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${DOCSDIR}/\{} \;
cd ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT \
&& ${FIND} javadoc -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \
.include <bsd.port.mk>