2000-11-03 12:49:59 -05:00
|
|
|
# New ports collection makefile for: JUnit
|
|
|
|
# Date created: Jun 15 1999
|
|
|
|
# Whom: OKAZAKI Tetsurou
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= junit
|
2001-06-26 12:52:11 -04:00
|
|
|
PORTVERSION= 3.7
|
2000-11-03 12:49:59 -05:00
|
|
|
CATEGORIES= java devel
|
2001-06-26 12:52:11 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
2000-11-03 12:49:59 -05:00
|
|
|
|
2001-06-26 12:52:11 -04:00
|
|
|
MAINTAINER= okazaki@FreeBSD.org
|
2000-11-03 12:49:59 -05:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
|
|
|
|
|
|
|
|
JDK_VERSION?= 1.1.8
|
|
|
|
|
|
|
|
.if ${JDK_VERSION} == "1.1.8"
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/java/classes/jfc-1.1.1/swing.jar:${PORTSDIR}/java/jfc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
FIND?= /usr/bin/find
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
JUNIT_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
|
|
|
JUNIT_DESTDIR= ${PREFIX}/share/java/${JUNIT_SUBDIR}
|
|
|
|
|
|
|
|
PLIST_SUB= JUNIT_SUBDIR=${JUNIT_SUBDIR}
|
2001-06-26 12:52:11 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DATADIRS= doc javadoc junit
|
|
|
|
.endif
|
2000-11-03 12:49:59 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/java/classes ${JUNIT_DESTDIR}
|
|
|
|
cd ${INSTALL_WRKSRC}; \
|
|
|
|
${INSTALL_DATA} junit.jar ${PREFIX}/share/java/classes; \
|
|
|
|
${INSTALL_DATA} README.html ${JUNIT_DESTDIR}; \
|
2001-06-26 12:52:11 -04:00
|
|
|
${INSTALL_DATA} src.jar ${JUNIT_DESTDIR}
|
2000-11-03 12:49:59 -05:00
|
|
|
.if defined(DATADIRS)
|
|
|
|
.for DIR in ${DATADIRS}
|
|
|
|
cd ${INSTALL_WRKSRC}; \
|
|
|
|
${FIND} ${DIR} -type d -exec ${MKDIR} ${JUNIT_DESTDIR}/\{} \; ;\
|
|
|
|
${FIND} ${DIR} -type f -exec ${INSTALL_DATA} \{} ${JUNIT_DESTDIR}/\{} \;
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|