# New ports collection makefile for: scalatest # Date created: Nov 16 2010 # Whom: Mitsuru YOSHIDA # # $FreeBSD$ # PORTNAME= scalatest PORTVERSION= 1.2 CATEGORIES= devel java MASTER_SITES= http://www.scalatest.org/releases/ MAINTAINER= mitsururike@gmail.com COMMENT= A regression testing utility for use with the Scala Language RUN_DEPENDS= scala>=2.8.0:${PORTSDIR}/lang/scala USE_ZIP= yes USE_JAVA= yes NO_BUILD= yes .include .if !defined(NOPORTDOCS) PORTDOCS= LICENSE NOTICE README.txt doc .endif FIND_SCALA_HOME= ${FILESDIR}/find_scala_home.sh ${PREFIX} SCALA_HOME= $$(${SH} ${FIND_SCALA_HOME}) PLIST_FILES= ${SCALA_HOME}/lib/scalatest.jar ${SCALA_HOME}/lib/scalatest-tests.jar do-install: ${INSTALL_DATA} ${INSTALL_WRKSRC}/scalatest-${PORTVERSION}.jar ${PREFIX}/${SCALA_HOME}/lib/scalatest.jar ${INSTALL_DATA} ${INSTALL_WRKSRC}/scalatest-${PORTVERSION}-tests.jar ${PREFIX}/${SCALA_HOME}/lib/scalatest-tests.jar cd ${INSTALL_WRKSRC}/src/examples \ && ${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}/\{} \; .endif post-install: @cd ${INSTALL_WRKSRC}/src/examples \ && ${FIND} -s . -type f \ | ${SED} 's,^\.,${EXAMPLESDIR:S,^${PREFIX}/,,},' >>${TMPPLIST} \ && ${FIND} -s -d . -type d \ | ${SED} 's,^\.,@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},' >>${TMPPLIST} .include