2000-11-03 17:49:59 +00:00
|
|
|
# New ports collection makefile for: JUnit
|
|
|
|
# Date created: Jun 15 1999
|
|
|
|
# Whom: OKAZAKI Tetsurou
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= junit
|
2006-05-20 14:19:08 +00:00
|
|
|
PORTVERSION= 3.8.2
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 1
|
2000-11-03 17:49:59 +00:00
|
|
|
CATEGORIES= java devel
|
2002-06-23 19:31:23 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-10-22 06:31:03 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
|
2005-01-21 15:26:02 +00:00
|
|
|
MAINTAINER= hq@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= A regression testing utility for use with the Java(TM) Language
|
2000-11-03 17:49:59 +00:00
|
|
|
|
2002-06-23 19:31:23 +00:00
|
|
|
USE_ZIP= yes
|
2005-01-21 18:37:58 +00:00
|
|
|
USE_JAVA= yes
|
2002-06-23 19:31:23 +00:00
|
|
|
NO_BUILD= yes
|
2000-11-03 17:49:59 +00:00
|
|
|
|
2002-06-23 19:31:23 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-11-03 17:49:59 +00:00
|
|
|
|
2005-01-21 18:37:58 +00:00
|
|
|
.if ${JAVA_PORT_VERSION} == "1.1"
|
|
|
|
RUN_DEPENDS+= ${JAVALIBDIR}/jfc-1.1.1/swing.jar:${PORTSDIR}/java/jfc
|
2000-11-03 17:49:59 +00:00
|
|
|
.endif
|
|
|
|
|
2001-06-26 16:52:11 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-01-21 18:37:58 +00:00
|
|
|
PORTDOCS= README.html cpl-v10.html doc javadoc
|
2001-06-26 16:52:11 +00:00
|
|
|
.endif
|
2005-01-21 18:37:58 +00:00
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/junit.jar %%DATADIR%%/src.jar
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
2000-11-03 17:49:59 +00:00
|
|
|
|
|
|
|
do-install:
|
2005-01-21 18:37:58 +00:00
|
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/junit.jar ${JAVAJARDIR}/
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/src.jar ${DATADIR}/
|
|
|
|
cd ${INSTALL_WRKSRC}/junit/samples \
|
|
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; \
|
|
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${EXAMPLESDIR}/\{} \;
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
cd ${INSTALL_WRKSRC} \
|
|
|
|
&& ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; \
|
|
|
|
&& ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
|
2000-11-03 17:49:59 +00:00
|
|
|
.endif
|
|
|
|
|
2005-01-21 18:37:58 +00:00
|
|
|
post-install:
|
|
|
|
@cd ${INSTALL_WRKSRC}/junit/samples \
|
|
|
|
&& ${FIND} -s . -type f \
|
|
|
|
| ${SED} 's,^\.,${EXAMPLESDIR:S,^${PREFIX}/,,},' >>${TMPPLIST} \
|
|
|
|
&& ${FIND} -s -d . -type d \
|
|
|
|
| ${SED} 's,^\.,@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},' >>${TMPPLIST}
|
|
|
|
|
2002-06-23 19:31:23 +00:00
|
|
|
.include <bsd.port.post.mk>
|