Files
ports/textproc/patchutils/Makefile
T
sthen 13db2b77cd update to patchutils-0.4.3
patch to disable new --in-place option in filterdiff which doesn't work
with our stdout (tries to temporarily swap stdout to another file handle)
2025-08-28 07:17:35 +00:00

39 lines
843 B
Makefile

COMMENT= small tools to operate on patch files
DISTNAME= patchutils-0.4.3
EXTRACT_SUFX= .tar.xz
CATEGORIES= textproc devel
HOMEPAGE= http://cyberelk.net/tim/software/patchutils/
MAINTAINER= Stuart Henderson <stu.ports@spacehopper.org>
# GPLv2+
PERMIT_PACKAGE= Yes
WANTLIB += c
SITES= http://cyberelk.net/tim/data/patchutils/stable/
BUILD_DEPENDS= ${RUN_DEPENDS} \
textproc/xmlto
RUN_DEPENDS= devel/gpatch
TEST_DEPENDS= shells/bash
TEST_FLAGS= PATCH=${LOCALBASE}/bin/gpatch
# 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>