aboutsummaryrefslogtreecommitdiff
path: root/java/junit
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2014-03-05 02:24:30 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2014-03-05 02:24:30 +0000
commit710facb2204f9c551f3869f0c84fa3fd1ee756fc (patch)
tree0bd6b7e16126b5032cc25f43bc4c9a76a74ef0dc /java/junit
parenta684ab843ee8e9a90867920ae088e4d50cf887c8 (diff)
downloadports-710facb2204f9c551f3869f0c84fa3fd1ee756fc.tar.gz
ports-710facb2204f9c551f3869f0c84fa3fd1ee756fc.zip
Notes
Diffstat (limited to 'java/junit')
-rw-r--r--java/junit/Makefile46
-rw-r--r--java/junit/distinfo4
2 files changed, 26 insertions, 24 deletions
diff --git a/java/junit/Makefile b/java/junit/Makefile
index d38dec86c254..a4370fb0f357 100644
--- a/java/junit/Makefile
+++ b/java/junit/Makefile
@@ -2,41 +2,43 @@
# $FreeBSD$
PORTNAME= junit
-PORTVERSION= 4.10
+PORTVERSION= 4.11
CATEGORIES= java devel
-MASTER_SITES= http://cloud.github.com/downloads/KentBeck/junit/
+MASTER_SITES= GH
DISTNAME= ${PORTNAME}${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
-COMMENT= A regression testing utility for use with the Java(TM) Language
+MAINTAINER= danilo@FreeBSD.org
+COMMENT= Regression testing utility for use with the Java(TM) Language
-USE_ZIP= yes
+USE_GITHUB= yes
+GH_ACCOUNT= junit-team
+GH_PROJECT= ${PORTNAME}
+GH_TAGNAME= r${PORTVERSION}
+
+USES= perl5
USE_JAVA= yes
-NO_BUILD= yes
+USE_ANT= yes
+
+WRKSRC= ${WRKDIR}/junit-team-junit-c62e2df
-.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)
+ ${INSTALL_DATA} ${INSTALL_WRKSRC}/junit${PORTVERSION}-SNAPSHOT/junit-${PORTVERSION}-SNAPSHOT.jar \
+ ${STAGEDIR}${JAVAJARDIR}/junit.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} -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; \
- && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
-.endif
+ && ${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>
diff --git a/java/junit/distinfo b/java/junit/distinfo
index b591f565c12e..86bd354f531f 100644
--- a/java/junit/distinfo
+++ b/java/junit/distinfo
@@ -1,2 +1,2 @@
-SHA256 (junit4.10.zip) = 49d1e176f518730c0d34a361932d9bd79d1bebd555126d95337ad7ad6fc9c6b6
-SIZE (junit4.10.zip) = 1781594
+SHA256 (junit4.11.tar.gz) = a9266060d72c43411c93d1bfae952134ad91f4115bf5769e9a0d17b3d51bd097
+SIZE (junit4.11.tar.gz) = 1974279