From 628b215647a7f7c1e3232ad55bb67fd7cbdb9f14 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Thu, 20 Feb 2003 16:33:26 +0000 Subject: Conditionalise several dependencies on PERL_LEVEL to make those ports more friendly for perl-5.8.0, which has those dependencies included into the base distribution. Sponsired by: Porta Software Ltd --- devel/p5-Cache-Cache/Makefile | 13 +++++++++---- devel/p5-Class-Container/Makefile | 11 ++++++++--- devel/p5-Devel-StackTrace/Makefile | 12 ++++++++---- 3 files changed, 25 insertions(+), 11 deletions(-) (limited to 'devel') diff --git a/devel/p5-Cache-Cache/Makefile b/devel/p5-Cache-Cache/Makefile index ae7b2b3df51d..731dd67ab33a 100644 --- a/devel/p5-Cache-Cache/Makefile +++ b/devel/p5-Cache-Cache/Makefile @@ -14,9 +14,7 @@ PKGNAMEPREFIX= p5- MAINTAINER= tobez@FreeBSD.org -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/IPC/ShareLite.pm:${PORTSDIR}/devel/p5-IPC-ShareLite \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \ +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/IPC/ShareLite.pm:${PORTSDIR}/devel/p5-IPC-ShareLite \ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Error.pm:${PORTSDIR}/lang/p5-Error RUN_DEPENDS= ${BUILD_DEPENDS} @@ -44,4 +42,11 @@ MAN3= Cache::BaseCache.3 \ Cache::SizeAwareSharedMemoryCache.3 MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -.include +.include + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable +.endif + +.include diff --git a/devel/p5-Class-Container/Makefile b/devel/p5-Class-Container/Makefile index 1dc04220e20d..1b5d1ef99249 100644 --- a/devel/p5-Class-Container/Makefile +++ b/devel/p5-Class-Container/Makefile @@ -14,8 +14,7 @@ PKGNAMEPREFIX= p5- MAINTAINER= dsh@vlink.ru -BUILD_DEPENDS= ${SITE_PERL}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \ - ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils +BUILD_DEPENDS= ${SITE_PERL}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate RUN_DEPENDS= ${BUILD_DEPENDS} PERL_CONFIGURE= yes @@ -24,4 +23,10 @@ MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= Class::Container.3 -.include +.include + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils +.endif + +.include diff --git a/devel/p5-Devel-StackTrace/Makefile b/devel/p5-Devel-StackTrace/Makefile index 28a6b150fcb6..4938aca7842d 100644 --- a/devel/p5-Devel-StackTrace/Makefile +++ b/devel/p5-Devel-StackTrace/Makefile @@ -15,12 +15,16 @@ PKGNAMEPREFIX= p5- MAINTAINER= erwin@lansing.dk -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple -RUN_DEPENDS= ${BUILD_DEPENDS} - PERL_CONFIGURE= yes MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= Devel::StackTrace.3 -.include +.include + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple +RUN_DEPENDS= ${BUILD_DEPENDS} +.endif + +.include -- cgit v1.2.3