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