View | Details | Raw Unified | Return to bug 152664
Collapse All | Expand All

(-)Makefile (-14 / +9 lines)
Lines 6-14 Link Here
6
#
6
#
7
7
8
PORTNAME=	junit
8
PORTNAME=	junit
9
PORTVERSION=	4.8.1
9
PORTVERSION=	4.8.2
10
CATEGORIES=	java devel
10
CATEGORIES=	java devel
11
MASTER_SITES=	SF
11
MASTER_SITES=	http://cloud.github.com/downloads/KentBeck/junit/
12
#MASTER_SITE_SUBDIR=	${PORTNAME}
12
#MASTER_SITE_SUBDIR=	${PORTNAME}
13
DISTNAME=	${PORTNAME}${PORTVERSION}
13
DISTNAME=	${PORTNAME}${PORTVERSION}
14
14
Lines 19-29 Link Here
19
USE_JAVA=	yes
19
USE_JAVA=	yes
20
NO_BUILD=	yes
20
NO_BUILD=	yes
21
21
22
.include <bsd.port.pre.mk>
23
24
.if !defined(NOPORTDOCS)
22
.if !defined(NOPORTDOCS)
25
PORTDOCS=	README.html cpl-v10.html doc javadoc
23
PORTDOCS=	README.html cpl-v10.html doc javadoc
26
.endif
24
.endif
25
.if !defined(NOPORTEXAMPLES)
26
PORTEXAMPLES=	*
27
.endif
27
DATADIR=	${JAVASHAREDIR}/${PORTNAME}
28
DATADIR=	${JAVASHAREDIR}/${PORTNAME}
28
PLIST_FILES=	%%JAVAJARDIR%%/junit.jar %%DATADIR%%/src.jar
29
PLIST_FILES=	%%JAVAJARDIR%%/junit.jar %%DATADIR%%/src.jar
29
PLIST_DIRS=	%%DATADIR%%
30
PLIST_DIRS=	%%DATADIR%%
Lines 32-51 Link Here
32
	${INSTALL_DATA} ${INSTALL_WRKSRC}/junit-${PORTVERSION}.jar ${JAVAJARDIR}/junit.jar
33
	${INSTALL_DATA} ${INSTALL_WRKSRC}/junit-${PORTVERSION}.jar ${JAVAJARDIR}/junit.jar
33
	${MKDIR} ${DATADIR}
34
	${MKDIR} ${DATADIR}
34
	${INSTALL_DATA} ${INSTALL_WRKSRC}/junit-${PORTVERSION}-src.jar ${DATADIR}/src.jar
35
	${INSTALL_DATA} ${INSTALL_WRKSRC}/junit-${PORTVERSION}-src.jar ${DATADIR}/src.jar
36
.if !defined(NOPORTEXAMPLES)
35
	cd ${INSTALL_WRKSRC}/junit/samples \
37
	cd ${INSTALL_WRKSRC}/junit/samples \
36
	  && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; \
38
	  && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/
37
	  && ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${EXAMPLESDIR}/\{} \;
39
.endif
38
.if !defined(NOPORTDOCS)
40
.if !defined(NOPORTDOCS)
39
	cd ${INSTALL_WRKSRC} \
41
	cd ${INSTALL_WRKSRC} \
40
	  && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; \
42
	  && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; \
41
	  && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
43
	  && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
42
.endif
44
.endif
43
45
44
post-install:
46
.include <bsd.port.mk>
45
	@cd ${INSTALL_WRKSRC}/junit/samples \
46
	  && ${FIND} -s . -type f \
47
	    | ${SED} 's,^\.,${EXAMPLESDIR:S,^${PREFIX}/,,},' >>${TMPPLIST} \
48
	  && ${FIND} -s -d . -type d \
49
	    | ${SED} 's,^\.,@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},' >>${TMPPLIST}
50
51
.include <bsd.port.post.mk>
(-)distinfo (-3 / +2 lines)
Lines 1-3 Link Here
1
MD5 (junit4.8.1.zip) = 86aae1041d5f36ab9b2fd7f53fb531c6
1
SHA256 (junit4.8.2.zip) = c677cc9a08683848299f0e67fe313415de5cbaae5bfd7dee11f7d53bd8ae5107
2
SHA256 (junit4.8.1.zip) = 9f7fd084244ab0dfffb94537ea43ab0b7a59b732508dd3e476fdc16d05eba671
2
SIZE (junit4.8.2.zip) = 1594318
3
SIZE (junit4.8.1.zip) = 1590118

Return to bug 152664