sthen cf53cc7af3 update to patchutils-0.3.4
tests now need bash (for some reason...not quite sure why)
2015-10-18 13:37:56 +00:00

43 lines
935 B
Makefile

# $OpenBSD: Makefile,v 1.3 2015/10/18 13:37:56 sthen Exp $
COMMENT= small tools to operate on patch files
DISTNAME= patchutils-0.3.4
EXTRACT_SUFX= .tar.xz
CATEGORIES= textproc devel
HOMEPAGE= http://cyberelk.net/tim/software/patchutils/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c
MASTER_SITES= http://cyberelk.net/tim/data/patchutils/stable/
BUILD_DEPENDS= ${RUN_DEPENDS} \
textproc/xmlto
RUN_DEPENDS= devel/gpatch
TEST_DEPENDS= misc/rpm \
shells/bash
TEST_FLAGS= PATCH=${LOCALBASE}/bin/gpatch
USE_GROFF= Yes
# only needed for tests
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-patch=${LOCALBASE}/bin/gpatch
pre-test:
chmod +x ${WRKSRC}/scripts/*diff
@sed -i "s|/bin/echo -ne '\\\t'|printf '\\\t'|" \
${WRKSRC}/tests/flip*/run-test
@sed -Ei 's,!/bin/(ba)?sh,!${LOCALBASE}/bin/bash,g' \
${WRKSRC}/tests/*/run-test
.include <bsd.port.mk>