aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-CPANPLUS
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2008-09-30 01:21:46 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2008-09-30 01:21:46 +0000
commite27706c51f5d8c4da9bd28b112a3ea90e4db50ad (patch)
treed80ce59dde1c87fa9a456600b052c67cab4749c0 /devel/p5-CPANPLUS
parent47efd1ab331cb411f95aa8bc96995bb38ce22183 (diff)
downloadports-e27706c51f5d8c4da9bd28b112a3ea90e4db50ad.tar.gz
ports-e27706c51f5d8c4da9bd28b112a3ea90e4db50ad.zip
Notes
Diffstat (limited to 'devel/p5-CPANPLUS')
-rw-r--r--devel/p5-CPANPLUS/Makefile79
1 files changed, 42 insertions, 37 deletions
diff --git a/devel/p5-CPANPLUS/Makefile b/devel/p5-CPANPLUS/Makefile
index d07fdab21cc5..5c2d07d7a3c3 100644
--- a/devel/p5-CPANPLUS/Makefile
+++ b/devel/p5-CPANPLUS/Makefile
@@ -7,6 +7,7 @@
PORTNAME= CPANPLUS
PORTVERSION= 0.8400
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -15,25 +16,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:C/0+$//}
MAINTAINER= clsung@FreeBSD.org
COMMENT= Ameliorated interface to the CPAN
-BUILD_DEPENDS= p5-File-Fetch>=0.07:${PORTSDIR}/ftp/p5-File-Fetch \
- p5-IPC-Cmd>=0.24:${PORTSDIR}/devel/p5-IPC-Cmd \
- p5-Locale-Maketext-Simple>0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
- p5-Log-Message>0:${PORTSDIR}/devel/p5-Log-Message \
- p5-Module-Load>=0.10:${PORTSDIR}/devel/p5-Module-Load \
- p5-Module-Load-Conditional>=0.07:${PORTSDIR}/devel/p5-Module-Load-Conditional \
- p5-Params-Check>=0.22:${PORTSDIR}/devel/p5-Params-Check \
- p5-Package-Constants>0:${PORTSDIR}/devel/p5-Package-Constants \
- p5-Term-UI>=0.05:${PORTSDIR}/devel/p5-Term-UI \
- p5-Test-Harness>=2.62:${PORTSDIR}/devel/p5-Test-Harness \
- p5-Test-Simple>=0.47:${PORTSDIR}/devel/p5-Test-Simple \
- p5-Archive-Extract>=0.07:${PORTSDIR}/archivers/p5-Archive-Extract \
- p5-Archive-Tar>=1.23:${PORTSDIR}/archivers/p5-Archive-Tar \
- p5-IO-Zlib>=1.04:${PORTSDIR}/archivers/p5-IO-Zlib \
- p5-Object-Accessor>=0.03:${PORTSDIR}/devel/p5-Object-Accessor \
- p5-Module-CoreList>=1.97:${PORTSDIR}/devel/p5-Module-CoreList \
- p5-Module-Pluggable>=2.4:${PORTSDIR}/devel/p5-Module-Pluggable \
- p5-Module-Loaded>0:${PORTSDIR}/devel/p5-Module-Loaded
-RUN_DEPENDS= ${BUILD_DEPENDS}
+RUN_DEPENDS= p5-Module-Signature>=0:${PORTSDIR}/security/p5-Module-Signature
USE_PERL5= 5.6.1+
PERL_CONFIGURE= yes
@@ -43,18 +26,6 @@ INSTALL_TARGET= pure_install
OPTIONS= TEST_REPORTER "Send reports to cpan-testers" off \
YAML "Check reports from cpan-testers" off
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_TEST_REPORTER)
-BUILD_DEPENDS+= ${SITE_PERL}/Test/Reporter.pm:${PORTSDIR}/devel/p5-Test-Reporter
-RUN_DEPENDS+= ${SITE_PERL}/Test/Reporter.pm:${PORTSDIR}/devel/p5-Test-Reporter
-.endif
-
-.if defined(WITH_YAML)
-BUILD_DEPENDS+= ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML
-RUN_DEPENDS+= ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML
-.endif
-
MAN1= cpanp.1 cpan2dist.1
MAN3= CPANPLUS.3 \
CPANPLUS::Backend.3 \
@@ -90,12 +61,46 @@ MAN3= CPANPLUS.3 \
CPANPLUS::Shell::Default::Plugins::Source.3 \
CPANPLUS::inc.3
-post-patch:
- @${FIND} ${WRKSRC} -name "*\.orig" -delete
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Digest-MD5>=0.0:${PORTSDIR}/security/p5-Digest-MD5 \
+ p5-Storable>=0.0:${PORTSDIR}/devel/p5-Storable
+.endif
+
+.if ${PERL_LEVEL} < 500808
+RUN_DEPENDS+= p5-ExtUtils-MakeMaker>=0:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+.endif
+
+.if ${PERL_LEVEL} < 500904
+RUN_DEPENDS+= p5-Module-Load>=0.10:${PORTSDIR}/devel/p5-Module-Load \
+ p5-Module-Loaded>=0.01:${PORTSDIR}/devel/p5-Module-Loaded \
+ p5-Package-Constants>=0.01:${PORTSDIR}/devel/p5-Package-Constants
+.endif
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Archive-Extract>=0.16:${PORTSDIR}/archivers/p5-Archive-Extract \
+ p5-IPC-Cmd>=0.36:${PORTSDIR}/devel/p5-IPC-Cmd \
+ p5-Locale-Maketext-Simple>=0.01:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Log-Message>=0.01:${PORTSDIR}/devel/p5-Log-Message \
+ p5-Module-CoreList>=2.09:${PORTSDIR}/devel/p5-Module-CoreList \
+ p5-Module-Pluggable>=2.4:${PORTSDIR}/devel/p5-Module-Pluggable \
+ p5-Object-Accessor>=0.32:${PORTSDIR}/devel/p5-Object-Accessor \
+ p5-Params-Check>=0.22:${PORTSDIR}/devel/p5-Params-Check
+.endif
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-File-Fetch>=0.13_04:${PORTSDIR}/ftp/p5-File-Fetch \
+ p5-Module-Load-Conditional>=0.18:${PORTSDIR}/devel/p5-Module-Load-Conditional \
+ p5-Term-UI>=0.18:${PORTSDIR}/devel/p5-Term-UI
+.endif
-post-configure:
- @${REINPLACE_CMD} -Ee \
- "s|('base' => )'.*(/.cpanplus)',|\1\"\$$ENV{'HOME'}\2\",|" \
- ${WRKSRC}/lib/CPANPLUS/Config.pm
+.if defined(WITH_TEST_REPORTER)
+RUN_DEPENDS+= ${SITE_PERL}/Test/Reporter.pm:${PORTSDIR}/devel/p5-Test-Reporter
+.endif
+
+.if defined(WITH_YAML)
+RUN_DEPENDS+= ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML
+.endif
.include <bsd.port.post.mk>