Edit

IABSD.fr/ports/textproc/patchutils/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2023-09-19 22:02:32
    Hash : 950fd315
    Message : use SITES

  • textproc/patchutils/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
    
    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>