1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/java/junit/Makefile
Danilo Egea Gondolfo 3b7dd98360 - Install junit4.jar to fix detection in math/scilab
PR:		ports/189201
Submitted by:	Max Brazhnikov <makc@FreeBSD.org>
2014-05-02 13:02:01 +00:00

49 lines
1.5 KiB
Makefile

# Created by: OKAZAKI Tetsurou
# $FreeBSD$
PORTNAME= junit
PORTVERSION= 4.11
PORTREVISION= 1
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 \
%%JAVAJARDIR%%/junit4.jar \
%%DATADIR%%/src.jar
PLIST_DIRS= %%DATADIR%%
do-install:
${INSTALL_DATA} ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT/junit-${PORTVERSION}-SNAPSHOT.jar \
${STAGEDIR}${JAVAJARDIR}/junit.jar
${LN} -sf junit.jar ${STAGEDIR}${JAVAJARDIR}/junit4.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>