40 lines
861 B
Makefile
40 lines
861 B
Makefile
|
COMMENT= small tools to operate on patch files
|
||
|
|
||
|
DISTNAME= patchutils-0.4.2
|
||
|
REVISION= 0
|
||
|
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
|
||
|
|
||
|
MASTER_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>
|