Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/cpan-upload/Makefile,v --- Makefile 17 Apr 2008 14:24:37 -0000 1.4 +++ Makefile 11 Nov 2008 18:34:07 -0000 @@ -7,6 +7,7 @@ PORTNAME= cpan-upload PORTVERSION= 2.2 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN MASTER_SITE_SUBDIR= ../by-authors/id/N/NE/NEILB/scripts @@ -14,15 +15,19 @@ MAINTAINER= lth@FreeBSD.org COMMENT= Script for uploading distributions to CPAN -BUILD_DEPENDS= ${SITE_PERL}/AppConfig/Std.pm:${PORTSDIR}/devel/p5-AppConfig-Std \ - ${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-Pod-Parser \ - ${SITE_PERL}/Net/FTP.pm:${PORTSDIR}/net/p5-Net \ - ${SITE_PERL}/HTTP/Request/Common.pm:${PORTSDIR}/www/p5-libwww \ - ${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey -RUN_DEPENDS= ${BUILD_DEPENDS} +RUN_DEPENDS= p5-AppConfig-Std>=1.05:${PORTSDIR}/devel/p5-AppConfig-Std \ + p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey \ + p5-libwww>=0:${PORTSDIR}/www/p5-libwww +BUILD_DEPENDS= ${RUN_DEPENDS} PERL_CONFIGURE= yes MAN1= cpan-upload.1 -.include +.include + +.if ${PERL_LEVEL} < 500703 +RUN_DEPENDS+= p5-Net>=2.28:${PORTSDIR}/net/p5-Net +.endif + +.include