openbsd-ports/java/junit/Makefile
ian 02f79a3509 Upgrade from 3.8.1 to 3.8.2. Convert from "download binary Java code" to
normal build port. Take maintainership, suggested by previous maintainer kevlo.
Be more cautious with license (CPL).  ok kurt@
2007-04-15 23:08:22 +00:00

54 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2007/04/15 23:08:22 ian Exp $
COMMENT= "regression testing utility for use with the Java language"
VERSION= 3.8.2
DISTNAME= junit${VERSION}
PKGNAME= junit-${VERSION}
INSTALLDIR= ${PKGNAME}
SUBST_VARS+= INSTALLDIR
CATEGORIES= java devel
HOMEPAGE= http://www.junit.org/
MAINTAINER= Ian Darwin <ian@openbsd.org>
# 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
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=junit/}
EXTRACT_SUFX= .zip
MODULES= java
MODJAVA_VER= 1.3+
MODJAVA_JRERUN= yes
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 \
-Dant.build.javac.source="1.3" -Dant.build.javac.target="1.3"
do-install:
${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}
do-regress:
${JAVA_HOME}/bin/java -cp ${WRKSRC}/build junit.tests.AllTests
.include <bsd.port.mk>