diff options
author | jadawin <jadawin@FreeBSD.org> | 2009-02-06 20:57:07 +0800 |
---|---|---|
committer | jadawin <jadawin@FreeBSD.org> | 2009-02-06 20:57:07 +0800 |
commit | b5ed4ffbdbd73d28761e56b1acaa6e435eba6f12 (patch) | |
tree | ad6a46a04227b96059de74c18b0e9de8936da892 /devel | |
parent | 3ef0b93d3bb05e5c54a355d3d3f4c25fd9eda213 (diff) | |
download | freebsd-ports-gnome-b5ed4ffbdbd73d28761e56b1acaa6e435eba6f12.tar.gz freebsd-ports-gnome-b5ed4ffbdbd73d28761e56b1acaa6e435eba6f12.tar.zst freebsd-ports-gnome-b5ed4ffbdbd73d28761e56b1acaa6e435eba6f12.zip |
- Install prove script without conflict with core perl
PR: ports/130842
Submitted by: Vladimir Timofeev <vovkasm at gmail.com>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Test-Harness/Makefile | 20 | ||||
-rw-r--r-- | devel/p5-Test-Harness/pkg-plist | 2 |
2 files changed, 9 insertions, 13 deletions
diff --git a/devel/p5-Test-Harness/Makefile b/devel/p5-Test-Harness/Makefile index f8261d72f4c5..4e7f96048173 100644 --- a/devel/p5-Test-Harness/Makefile +++ b/devel/p5-Test-Harness/Makefile @@ -7,7 +7,7 @@ PORTNAME= Test-Harness PORTVERSION= 3.14 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -17,7 +17,6 @@ COMMENT= Run perl standard test scripts with statistics PERL_CONFIGURE= yes -MAN1= prove.1 MAN3= App::Prove.3 \ App::Prove::State.3 \ App::Prove::State::Result.3 \ @@ -62,21 +61,18 @@ MAN3= App::Prove.3 \ .include <bsd.port.pre.mk> .if ${PERL_LEVEL} >= 500800 -.undef MAN1 -PLIST_SUB+= PL_FILES="@comment " +PLIST_SUB= P5_PREFIX="p5" +MAN1= p5prove.1 pre-patch: - @${PERL} -pi -e "s,'bin/prove',," ${WRKSRC}/Makefile.PL + @${MV} ${WRKSRC}/bin/prove ${WRKSRC}/bin/p5prove + @${PERL} -pi -e "s,^bin/prove$$,bin/p5prove," ${WRKSRC}/MANIFEST + @${PERL} -pi -e "s,'bin/prove','bin/p5prove'," ${WRKSRC}/Makefile.PL .else -PLIST_SUB+= PL_FILES="" +MAN1= prove.1 +PLIST_SUB= P5_PREFIX="" .endif post-patch: @${REINPLACE_CMD} -e '/INSTALLDIRS/d' ${WRKSRC}/${CONFIGURE_SCRIPT} -post-configure: -.if ${PERL_LEVEL} >= 500800 - @${REINPLACE_CMD} -E -e '/(DESTINSTALLSITEMAN1DIR|DESTINSTALLSCRIPT)/d' \ - ${WRKSRC}/${MAKEFILE} -.endif - .include <bsd.port.post.mk> diff --git a/devel/p5-Test-Harness/pkg-plist b/devel/p5-Test-Harness/pkg-plist index 1f5500545610..eb8405823366 100644 --- a/devel/p5-Test-Harness/pkg-plist +++ b/devel/p5-Test-Harness/pkg-plist @@ -1,4 +1,4 @@ -%%PL_FILES%%bin/prove +bin/%%P5_PREFIX%%prove %%SITE_PERL%%/App/Prove.pm %%SITE_PERL%%/App/Prove/State.pm %%SITE_PERL%%/App/Prove/State/Result.pm |