Port dependencies on p5-Test-*
Dag-Erling Smørgrav
des at des.no
Mon Feb 25 02:49:04 UTC 2008
There is a ridiculous amount of p5-* ports that have completely
unnecessary build dependencies on p5-Test-*. These package are usually
only needed to run unit tests (cd ${WRKSRC} && make test), which *none*
of those ports do.
(ridiculous, in this case, means close to 300)
What's worse, most of these ports have RUN_DEPENDS = ${BUILD_DEPENDS},
which means even the prebuilt packages have these unnecessary
dependencies!
All of this could be avoided by adding these few lines to the port's
Makefile, and removing p5-Test-* from BUILD_DEPENDS:
pre-configure:
@(cd ${WRKSRC} && ${REINPLACE_CMD} -E -e \
"s/'?Test::[^']+'?[[:space:]]*=>[[:space:]]'?[0-9.]+'?,//" \
Makefile.PL)
(some ports also need to edit Build.PL)
Alternatively, this could be added to bsd.perl.mk, conditional on the
presence of a PERL_UNTESTIFY_FILES variable which would list Makefile.PL
and / or Build.PL for the ports that require it.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-perl
mailing list