From 3c42bb144e16487e3ee2ee5a20e3bb002d595e32 Mon Sep 17 00:00:00 2001 From: swills Date: Sat, 25 Feb 2012 17:01:49 +0000 Subject: - Set depends correctly for various versions of perl Submitted by: sunpoet --- devel/p5-Lexical-Var/Makefile | 21 +++++++++++++++++---- 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 +.include + +.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 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 -- cgit