View | Details | Raw Unified | Return to bug 192575 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-23 / +16 lines)
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>
(-)distinfo (-2 / +6 lines)
Lines 1-2 Link Here
1
SHA256 (junit4.11.tar.gz) = a9266060d72c43411c93d1bfae952134ad91f4115bf5769e9a0d17b3d51bd097
1
SHA256 (junit-4.12.jar) = 59721f0805e223d84b90677887d9ff567dc534d7c502ca903c0c2b17f05c116a
2
SIZE (junit4.11.tar.gz) = 1974279
2
SIZE (junit-4.12.jar) = 314932
3
SHA256 (junit-4.12-sources.jar) = 9f43fea92033ad82bcad2ae44cec5c82abc9d6ee4b095cab921d11ead98bf2ff
4
SIZE (junit-4.12-sources.jar) = 200355
5
SHA256 (junit-4.12-javadoc.jar) = 84354aa70f995a7ff3c96b144c49b7fe90a0c6e21f818fd23b17f75b17fd1ca9
6
SIZE (junit-4.12-javadoc.jar) = 937942

Return to bug 192575