aboutsummaryrefslogtreecommitdiffstats
path: root/java/junit/Makefile
blob: d330d3469de6a74689d266b63f03b0443a207d50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Created by: OKAZAKI Tetsurou
# $FreeBSD$

PORTNAME=   junit
PORTVERSION=    4.12
CATEGORIES= java devel
MASTER_SITES=   http://repo1.maven.org/maven2/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
DISTFILES=  ${DISTNAME}.jar ${DISTNAME}-sources.jar
EXTRACT_ONLY=

MAINTAINER= danilo@FreeBSD.org
COMMENT=    Regression testing utility for use with the Java(TM) Language

RUN_DEPENDS=    ${JAVAJARDIR}/hamcrest.jar:java/hamcrest

USE_JAVA=   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>