mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 02:46:27 -04:00
The following features have been added or changed: - Instead of USE_JAVA use USES=java. This defaults to USES=java:build,run if NO_BUILD is undefined. Else it defaults to USES=java:run - Instead of USE_ANT=yes use USES=java:ant which also implies USES=java:build - Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or extract - Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply build or run - Instead of JAVA_RUN=yes use USES=java:run does not imply extract or build - Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version> Approved by: mat (portmgr), glewis Differential Revision: https://reviews.freebsd.org/D48201
34 lines
933 B
Makefile
34 lines
933 B
Makefile
PORTNAME= junit
|
|
PORTVERSION= 4.12
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= https://repo1.maven.org/maven2/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
|
|
DISTFILES= ${DISTNAME}.jar ${DISTNAME}-sources.jar
|
|
EXTRACT_ONLY=
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Regression testing utility for use with the Java(TM) Language
|
|
WWW= https://www.junit.org/
|
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/hamcrest.jar:java/hamcrest
|
|
|
|
USES= cpe java
|
|
CPE_VENDOR= ${PORTNAME}
|
|
CPE_PRODUCT= ${PORTNAME}4
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
PLIST_FILES= %%JAVAJARDIR%%/junit.jar \
|
|
%%JAVAJARDIR%%/junit4.jar \
|
|
%%DATADIR%%/src.jar
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${DISTDIR}/junit-${PORTVERSION}.jar \
|
|
${STAGEDIR}${JAVAJARDIR}/junit.jar
|
|
${LN} -sf junit.jar ${STAGEDIR}${JAVAJARDIR}/junit4.jar
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${DISTDIR}/junit-${PORTVERSION}-sources.jar \
|
|
${STAGEDIR}${DATADIR}/src.jar
|
|
|
|
.include <bsd.port.mk>
|