Lines 2-28
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= junit |
4 |
PORTNAME= junit |
5 |
PORTVERSION= 4.11 |
5 |
PORTVERSION= 4.12 |
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= java devel |
7 |
CATEGORIES= java devel |
7 |
MASTER_SITES= http://repo1.maven.org/maven2/${PORTNAME}/${PORTNAME}/${PORTVERSION}/ |
8 |
MASTER_SITES= GH |
8 |
DISTFILES= ${PORTNAME}-${PORTVERSION}.jar ${PORTNAME}-${PORTVERSION}-sources.jar \ |
9 |
DISTNAME= ${PORTNAME}${PORTVERSION} |
9 |
${PORTNAME}-${PORTVERSION}-javadoc.jar |
|
|
10 |
EXTRACT_ONLY= |
10 |
|
11 |
|
11 |
MAINTAINER= danilo@FreeBSD.org |
12 |
MAINTAINER= danilo@FreeBSD.org |
12 |
COMMENT= Regression testing utility for use with the Java(TM) Language |
13 |
COMMENT= Regression testing utility for use with the Java(TM) Language |
13 |
|
14 |
|
14 |
USE_GITHUB= yes |
15 |
OPTIONS_DEFINE= DOCS |
15 |
GH_ACCOUNT= junit-team |
|
|
16 |
GH_PROJECT= ${PORTNAME} |
17 |
GH_TAGNAME= r${PORTVERSION} |
18 |
GH_COMMIT= c62e2df |
19 |
|
16 |
|
20 |
USES= perl5 |
17 |
USES= zip:infozip |
21 |
USE_JAVA= yes |
18 |
USE_JAVA= yes |
22 |
USE_ANT= yes |
19 |
NO_BUILD= yes |
23 |
|
20 |
PORTDOCS= javadoc |
24 |
PORTDOCS= README.html cpl-v10.html doc javadoc |
|
|
25 |
PORTEXAMPLES= * |
26 |
DATADIR= ${JAVASHAREDIR}/${PORTNAME} |
21 |
DATADIR= ${JAVASHAREDIR}/${PORTNAME} |
27 |
PLIST_FILES= %%JAVAJARDIR%%/junit.jar \ |
22 |
PLIST_FILES= %%JAVAJARDIR%%/junit.jar \ |
28 |
%%JAVAJARDIR%%/junit4.jar \ |
23 |
%%JAVAJARDIR%%/junit4.jar \ |
Lines 29-46
Link Here
|
29 |
%%DATADIR%%/src.jar |
24 |
%%DATADIR%%/src.jar |
30 |
|
25 |
|
31 |
do-install: |
26 |
do-install: |
32 |
${INSTALL_DATA} ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT/junit-${PORTVERSION}-SNAPSHOT.jar \ |
27 |
${INSTALL_DATA} ${DISTDIR}/junit-${PORTVERSION}.jar \ |
33 |
${STAGEDIR}${JAVAJARDIR}/junit.jar |
28 |
${STAGEDIR}${JAVAJARDIR}/junit.jar |
34 |
${LN} -sf junit.jar ${STAGEDIR}${JAVAJARDIR}/junit4.jar |
29 |
${LN} -sf junit.jar ${STAGEDIR}${JAVAJARDIR}/junit4.jar |
35 |
@${MKDIR} ${STAGEDIR}${DATADIR} |
30 |
@${MKDIR} ${STAGEDIR}${DATADIR} |
36 |
${INSTALL_DATA} ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT/junit-${PORTVERSION}-SNAPSHOT-src.jar \ |
31 |
${INSTALL_DATA} ${DISTDIR}/junit-${PORTVERSION}-sources.jar \ |
37 |
${STAGEDIR}${DATADIR}/src.jar |
32 |
${STAGEDIR}${DATADIR}/src.jar |
38 |
cd ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT/junit/samples \ |
33 |
@${MKDIR} ${WRKDIR}/javadoc |
39 |
&& ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/ |
34 |
${UNZIP_CMD} -q -d ${WRKDIR}/javadoc ${DISTDIR}/junit-${PORTVERSION}-javadoc.jar |
40 |
cd ${INSTALL_WRKSRC} \ |
35 |
cd ${WRKDIR} \ |
41 |
&& ${FIND} ${PORTDOCS:Njavadoc} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \ |
|
|
42 |
&& ${FIND} ${PORTDOCS:Njavadoc} -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${DOCSDIR}/\{} \; |
43 |
cd ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT \ |
44 |
&& ${FIND} javadoc -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \ |
36 |
&& ${FIND} javadoc -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \ |
|
|
37 |
&& ${FIND} javadoc -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${DOCSDIR}/\{} \; |
45 |
|
38 |
|
46 |
.include <bsd.port.mk> |
39 |
.include <bsd.port.mk> |