From bcad8eda1163cfb367085ba723a69f3d7a788fe0 Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Wed, 5 Mar 2003 23:47:50 +0000 Subject: [PATCH] Fix build for 5.0 and for 4.x with lang/perl5 installed. PR: 48781 Submitted by: Jens Rehsack Approved by: petef --- www/p5-CGI-Cache/Makefile | 13 ++++++++++--- www/p5-CGI-Cache/pkg-comment | 1 - 2 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 www/p5-CGI-Cache/pkg-comment diff --git a/www/p5-CGI-Cache/Makefile b/www/p5-CGI-Cache/Makefile index 9b8ae1b54bca..778c332d8953 100644 --- a/www/p5-CGI-Cache/Makefile +++ b/www/p5-CGI-Cache/Makefile @@ -13,17 +13,24 @@ MASTER_SITE_SUBDIR= CGI PKGNAMEPREFIX= p5- MAINTAINER= petef@FreeBSD.org +COMMENT= Perl extension to cache output of time-intensive CGI scripts BUILD_DEPENDS= ${SITE_PERL}/File/Cache.pm:${PORTSDIR}/devel/p5-File-Cache \ - ${SITE_PERL}/File/Spec/Functions.pm:${PORTSDIR}/devel/p5-File-Spec \ ${SITE_PERL}/Cache/SizeAwareFileCache.pm:${PORTSDIR}/devel/p5-Cache-Cache \ ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable + +.include + +.if ${PERL_LEVEL} <= 500600 +BUILD_DEPENDS+= ${SITE_PERL}/File/Spec/Functions.pm:${PORTSDIR}/devel/p5-File-Spec +.endif + RUN_DEPENDS= ${BUILD_DEPENDS} -SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} +SITE_PERL?= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} PERL_CONFIGURE= yes MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= CGI::Cache.3 -.include +.include diff --git a/www/p5-CGI-Cache/pkg-comment b/www/p5-CGI-Cache/pkg-comment deleted file mode 100644 index c3ceae81de05..000000000000 --- a/www/p5-CGI-Cache/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -Perl extension to cache output of time-intensive CGI scripts