Index: Makefile =================================================================== RCS file: /cvsroot/pkgsrc/textproc/p5-Test-YAML/Makefile,v retrieving revision 1.5 diff -u -p -r1.5 Makefile --- Makefile 8 Jan 2016 14:25:56 -0000 1.5 +++ Makefile 12 Jan 2016 10:42:55 -0000 @@ -17,5 +17,15 @@ PERL5_PACKLIST= auto/Test/YAML/.packlis USE_TOOLS+= bash:run REPLACE_BASH+= bin/test-yaml +# XXX: Kludge to avoid a wrong shebang in test-yaml. While the shebang is +# corrected by REPLACE_BASH, ExtUtils::MakeMaker rechange it (wrongly) pointing +# to the bash in ${TOOLS_DIR}. +post-build: + ${CP} ${WRKSRC}/blib/script/test-yaml ${WRKSRC}/blib/script/test-yaml.orig + ${SED} -e '/^#!.*\/bin\/bash/ s;^.*$$;#!${PREFIX}/bin/bash;' \ + ${WRKSRC}/blib/script/test-yaml.orig > \ + ${WRKSRC}/blib/script/test-yaml + ${RM} ${WRKSRC}/blib/script/test-yaml.orig + .include "../../lang/perl5/module.mk" .include "../../mk/bsd.pkg.mk"