diff options
author | swills <swills@FreeBSD.org> | 2012-02-26 01:01:49 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2012-02-26 01:01:49 +0800 |
commit | 3c42bb144e16487e3ee2ee5a20e3bb002d595e32 (patch) | |
tree | c512374fabfb354b7cabbbcc59561fbcff02e1aa /devel | |
parent | 7e31c47b3eedf674eeb65a90353f141ab212ba93 (diff) | |
download | freebsd-ports-gnome-3c42bb144e16487e3ee2ee5a20e3bb002d595e32.tar.gz freebsd-ports-gnome-3c42bb144e16487e3ee2ee5a20e3bb002d595e32.tar.zst freebsd-ports-gnome-3c42bb144e16487e3ee2ee5a20e3bb002d595e32.zip |
- Set depends correctly for various versions of perl
Submitted by: sunpoet
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Lexical-Var/Makefile | 21 | ||||
-rw-r--r-- | devel/p5-Lexical-Var/pkg-plist | 2 |
2 files changed, 19 insertions, 4 deletions
diff --git a/devel/p5-Lexical-Var/Makefile b/devel/p5-Lexical-Var/Makefile index d4e5c8708ea7..aa8073c7e7c9 100644 --- a/devel/p5-Lexical-Var/Makefile +++ b/devel/p5-Lexical-Var/Makefile @@ -14,11 +14,24 @@ PKGNAMEPREFIX= p5- MAINTAINER= perl@FreeBSD.org COMMENT= Perl module for static variables without namespace pollution -BUILD_DEPENDS= p5-Lexical-SealRequireHints>=0:${PORTSDIR}/devel/p5-Lexical-SealRequireHints -RUN_DEPENDS:= ${BUILD_DEPENDS} - PERL_CONFIGURE= yes MAN3= Lexical::Sub.3 Lexical::Var.3 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 501000 +BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0.1500:${PORTSDIR}/devel/p5-ExtUtils-CBuilder +.endif + +.if ${PERL_LEVEL} < 501200 +BUILD_DEPENDS+= p5-Lexical-SealRequireHints>=0.006:${PORTSDIR}/devel/p5-Lexical-SealRequireHints +RUN_DEPENDS+= p5-Lexical-SealRequireHints>=0.006:${PORTSDIR}/devel/p5-Lexical-SealRequireHints +.endif + +post-patch: +.if ${PERL_LEVEL} >= 501200 + @${REINPLACE_CMD} -e '/Lexical::SealRequireHints/d' ${WRKSRC}/Build.PL ${WRKSRC}/lib/Lexical/Var.pm +.endif + +.include <bsd.port.post.mk> diff --git a/devel/p5-Lexical-Var/pkg-plist b/devel/p5-Lexical-Var/pkg-plist index f9fd58b07060..32c85d622781 100644 --- a/devel/p5-Lexical-Var/pkg-plist +++ b/devel/p5-Lexical-Var/pkg-plist @@ -4,3 +4,5 @@ %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical/Var/Var.so %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical/Var/.packlist @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical/Var +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Lexical |