diff options
author | leeym <leeym@FreeBSD.org> | 2005-12-31 04:38:46 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2005-12-31 04:38:46 +0800 |
commit | 35eb7bc43e052958b25c8f8d3bc18344b97ea49e (patch) | |
tree | 103fdc1ba49d56446a14ad56585eef818b558917 /security/p5-Crypt-Rabbit/Makefile | |
parent | 2261c8374a7659ced17cb21e85132a66638967af (diff) | |
download | freebsd-ports-gnome-35eb7bc43e052958b25c8f8d3bc18344b97ea49e.tar.gz freebsd-ports-gnome-35eb7bc43e052958b25c8f8d3bc18344b97ea49e.tar.zst freebsd-ports-gnome-35eb7bc43e052958b25c8f8d3bc18344b97ea49e.zip |
- remove IGNORE on old perl
Submitted by: leeym
Approved by: maintainer via email
Diffstat (limited to 'security/p5-Crypt-Rabbit/Makefile')
-rw-r--r-- | security/p5-Crypt-Rabbit/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/security/p5-Crypt-Rabbit/Makefile b/security/p5-Crypt-Rabbit/Makefile index e021749a99ee..6962cd42873c 100644 --- a/security/p5-Crypt-Rabbit/Makefile +++ b/security/p5-Crypt-Rabbit/Makefile @@ -18,7 +18,15 @@ PERL_CONFIGURE= yes MAN3= Crypt::Rabbit.3 .include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again + +.if ${PERL_LEVEL} < 500600 +BUILD_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +RUN_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-Rabbit.xs + +post-patch: + ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/Rabbit.pm + ${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/Rabbit.pm ${WRKSRC}/t/*.t .endif + .include <bsd.port.post.mk> |