mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Created by: OKAZAKI Tetsurou
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= junit
|
|
PORTVERSION= 4.10
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= http://cloud.github.com/downloads/KentBeck/junit/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
COMMENT= A regression testing utility for use with the Java(TM) Language
|
|
|
|
USE_ZIP= yes
|
|
USE_JAVA= yes
|
|
NO_BUILD= yes
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= README.html cpl-v10.html doc javadoc
|
|
.endif
|
|
.if !defined(NOPORTEXAMPLES)
|
|
PORTEXAMPLES= *
|
|
.endif
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
PLIST_FILES= %%JAVAJARDIR%%/junit.jar %%DATADIR%%/src.jar
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
NO_STAGE= yes
|
|
do-install:
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/junit-${PORTVERSION}.jar ${JAVAJARDIR}/junit.jar
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/junit-${PORTVERSION}-src.jar ${DATADIR}/src.jar
|
|
.if !defined(NOPORTEXAMPLES)
|
|
cd ${INSTALL_WRKSRC}/junit/samples \
|
|
&& ${COPYTREE_SHARE} . ${EXAMPLESDIR}/
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
cd ${INSTALL_WRKSRC} \
|
|
&& ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; \
|
|
&& ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|