2008-06-23 22:46:21 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2008/06/24 02:46:21 kurt Exp $
|
2001-09-14 01:58:19 -04:00
|
|
|
|
2007-09-15 20:28:19 -04:00
|
|
|
COMMENT= regression testing utility for use with the Java language
|
2001-09-14 01:58:19 -04:00
|
|
|
|
2007-04-15 19:08:22 -04:00
|
|
|
VERSION= 3.8.2
|
2001-09-14 01:58:19 -04:00
|
|
|
DISTNAME= junit${VERSION}
|
2008-06-23 22:46:21 -04:00
|
|
|
PKGNAME= junit-${VERSION}p2
|
2007-04-15 19:08:22 -04:00
|
|
|
INSTALLDIR= ${PKGNAME}
|
|
|
|
SUBST_VARS+= INSTALLDIR
|
|
|
|
CATEGORIES= java devel
|
2001-09-14 01:58:19 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.junit.org/
|
|
|
|
|
2007-04-15 19:08:22 -04:00
|
|
|
MAINTAINER= Ian Darwin <ian@openbsd.org>
|
2001-09-14 01:58:19 -04:00
|
|
|
|
2007-04-15 19:08:22 -04:00
|
|
|
# Common Public License - v1.0
|
|
|
|
# Commercial distribution defend and indemnify clauses
|
|
|
|
PERMIT_PACKAGE_CDROM= No
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= No
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2001-09-14 01:58:19 -04:00
|
|
|
|
2002-05-13 19:31:24 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=junit/}
|
2001-09-14 01:58:19 -04:00
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
2005-06-17 17:47:29 -04:00
|
|
|
MODULES= java
|
2007-06-18 11:50:16 -04:00
|
|
|
MODJAVA_VER= 1.4+
|
2005-06-17 17:47:29 -04:00
|
|
|
MODJAVA_JRERUN= yes
|
2001-09-14 01:58:19 -04:00
|
|
|
|
2007-04-15 19:08:22 -04:00
|
|
|
BUILD_DEPENDS= :apache-ant-*:devel/apache-ant
|
|
|
|
|
|
|
|
MAKE_ENV= JAVA_HOME=${JAVA_HOME}
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cp ${FILESDIR}/build.xml ${WRKDIST}
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKDIST} && exec ${SETENV} ${MAKE_ENV} ant -q \
|
2007-06-18 11:50:16 -04:00
|
|
|
-Dant.build.javac.source="1.4" -Dant.build.javac.target="1.4"
|
2001-09-14 01:58:19 -04:00
|
|
|
|
|
|
|
do-install:
|
2005-06-17 17:47:29 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/java/classes/${INSTALLDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/java/${INSTALLDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.html ${PREFIX}/share/java/${INSTALLDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/cpl-v10.html ${PREFIX}/share/java/${INSTALLDIR}
|
|
|
|
cp ${WRKSRC}/*.jar ${PREFIX}/share/java/classes/${INSTALLDIR}
|
|
|
|
cp -R ${WRKSRC}/doc ${PREFIX}/share/java/${INSTALLDIR}
|
|
|
|
cp -R ${WRKSRC}/javadoc ${PREFIX}/share/java/${INSTALLDIR}
|
2007-04-15 19:08:22 -04:00
|
|
|
|
|
|
|
do-regress:
|
|
|
|
${JAVA_HOME}/bin/java -cp ${WRKSRC}/build junit.tests.AllTests
|
2001-09-14 01:58:19 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|