37 lines
827 B
Makefile
37 lines
827 B
Makefile
# $OpenBSD: Makefile,v 1.6 2020/01/26 11:14:31 jasper Exp $
|
|
|
|
COMMENT = unit test framework for Bourne based shell scripts
|
|
|
|
DISTNAME = shunit2-2.1.6
|
|
REVISION = 1
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://github.com/kward/shunit2
|
|
|
|
# LGPLv2.1
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MASTER_SITES = https://distfiles.sigtrap.nl/
|
|
|
|
EXTRACT_SUFX = .tgz
|
|
|
|
NO_BUILD = Yes
|
|
|
|
SHUNIT2_DIR = ${PREFIX}/share/shunit2
|
|
|
|
post-patch:
|
|
perl -pi -e "s#^. ../src/shunit2#. ${PREFIX}/bin/shunit2#" \
|
|
${WRKSRC}/examples/*.sh
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/{doc,examples}/shunit2
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/shunit2
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/shunit2
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/shunit2 ${PREFIX}/bin
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/src && sh ./shunit2_test.sh
|
|
|
|
.include <bsd.port.mk>
|