Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/p5-Module-Pluggable/Makefile,v retrieving revision 1.23 diff -u -u -r1.23 Makefile --- Makefile 25 Mar 2008 09:50:16 -0000 1.23 +++ Makefile 27 Mar 2008 17:12:14 -0000 @@ -7,6 +7,7 @@ PORTNAME= Module-Pluggable PORTVERSION= 3.8 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -14,13 +15,17 @@ MAINTAINER= lth@FreeBSD.org COMMENT= Automatically give your module the ability to have plugins -RUN_DEPENDS= p5-PathTools>=3.0:${PORTSDIR}/devel/p5-PathTools -BUILD_DEPENDS= ${RUN_DEPENDS} - PERL_CONFIGURE= yes MAN3= Devel::InnerPackage.3 \ Module::Pluggable.3 \ Module::Pluggable::Object.3 -.include +.include + +.if ${PERL_LEVEL} < 500806 +BUILD_DEPENDS+= p5-PathTools>=3.0:${PORTSDIR}/devel/p5-PathTools +RUN_DEPENDS+= p5-PathTools>=3.0:${PORTSDIR}/devel/p5-PathTools +.endif + +.include