Cleanup supporting perl version 5.8 and 5.10,

lang/perl5.8 and lang/5.10 will be removed from ports tree soon.
This commit is contained in:
Andrej Zverev 2012-12-17 14:09:29 +00:00
parent 687661ba75
commit 150f02669f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309094
9 changed files with 30 additions and 104 deletions

View file

@ -64,10 +64,4 @@ MAN3= App::GitGot.3 \
App::GitGot::Repo.3 \
App::GitGot::Repo::Git.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501001
RUN_DEPENDS+= p5-autodie>=0:${PORTSDIR}/devel/p5-autodie
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -66,35 +66,11 @@ MAN3= CPANPLUS.3 \
.include <bsd.port.pre.mk>
.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-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
PLIST_SUB+= EXE_FILES=""
MAN1= cpanp.1 cpan2dist.1
.else
# XXX:az pkg-plist
PLIST_SUB+= EXE_FILES="@comment "
.endif
post-patch:
.if ${PERL_LEVEL} >= 501000
@${REINPLACE_CMD} -e 's/5.009/5.666/; /install_script/d' ${WRKSRC}/Makefile.PL
.endif
.if ${PORT_OPTIONS:MTEST_REPORTER}
RUN_DEPENDS+= p5-Test-Reporter>=0:${PORTSDIR}/devel/p5-Test-Reporter

View file

@ -31,10 +31,4 @@ PERL_CONFIGURE= yes
MAN3= Eval::Closure.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501001
TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -19,10 +19,4 @@ PERL_CONFIGURE= yes
MAN3= Exception::Class.3 Exception::Class::Base.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501001
TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -29,12 +29,12 @@ MAN3= ExtUtils::Command::MM.3 ExtUtils::Liblist.3 ExtUtils::MM.3 \
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501001
BUILD_DEPENDS+= p5-ExtUtils-Command>=1.16:${PORTSDIR}/devel/p5-ExtUtils-Command \
p5-ExtUtils-Install>=1.52:${PORTSDIR}/devel/p5-ExtUtils-Install
RUN_DEPENDS+= p5-ExtUtils-Command>=1.16:${PORTSDIR}/devel/p5-ExtUtils-Command \
p5-ExtUtils-Install>=1.52:${PORTSDIR}/devel/p5-ExtUtils-Install
.endif
#.if ${PERL_LEVEL} < 501001
#BUILD_DEPENDS+= p5-ExtUtils-Command>=1.16:${PORTSDIR}/devel/p5-ExtUtils-Command \
# p5-ExtUtils-Install>=1.52:${PORTSDIR}/devel/p5-ExtUtils-Install
#RUN_DEPENDS+= p5-ExtUtils-Command>=1.16:${PORTSDIR}/devel/p5-ExtUtils-Command \
# p5-ExtUtils-Install>=1.52:${PORTSDIR}/devel/p5-ExtUtils-Install
#.endif
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-ExtUtils-Manifest>=1.58:${PORTSDIR}/devel/p5-ExtUtils-Manifest \

View file

@ -53,23 +53,23 @@ PORTDOCS= Changes INSTALL README
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501000
RUN_DEPENDS+= p5-Test-Harness>=3.16:${PORTSDIR}/devel/p5-Test-Harness
MAN1= config_data.1
PLIST_FILES= bin/config_data
.endif
#.if ${PERL_LEVEL} < 501000
#RUN_DEPENDS+= p5-Test-Harness>=3.16:${PORTSDIR}/devel/p5-Test-Harness
#MAN1= config_data.1
#PLIST_FILES= bin/config_data
#.endif
.if ${PERL_LEVEL} < 501001
BUILD_DEPENDS+= p5-ExtUtils-Install>=1.54:${PORTSDIR}/devel/p5-ExtUtils-Install
RUN_DEPENDS+= p5-ExtUtils-Install>=1.54:${PORTSDIR}/devel/p5-ExtUtils-Install
.endif
#.if ${PERL_LEVEL} < 501001
#BUILD_DEPENDS+= p5-ExtUtils-Install>=1.54:${PORTSDIR}/devel/p5-ExtUtils-Install
#RUN_DEPENDS+= p5-ExtUtils-Install>=1.54:${PORTSDIR}/devel/p5-ExtUtils-Install
#.endif
.if ${PERL_LEVEL} < 501200
BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0.27:${PORTSDIR}/devel/p5-ExtUtils-CBuilder \
p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
RUN_DEPENDS+= p5-ExtUtils-CBuilder>=0.27:${PORTSDIR}/devel/p5-ExtUtils-CBuilder \
p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
.endif
#.if ${PERL_LEVEL} < 501200
#BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0.27:${PORTSDIR}/devel/p5-ExtUtils-CBuilder \
# p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
#RUN_DEPENDS+= p5-ExtUtils-CBuilder>=0.27:${PORTSDIR}/devel/p5-ExtUtils-CBuilder \
# p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
#.endif
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-CPAN-Meta>=2.110420:${PORTSDIR}/devel/p5-CPAN-Meta \
@ -87,11 +87,11 @@ RUN_DEPENDS+= p5-CPAN-Meta>=2.110420:${PORTSDIR}/devel/p5-CPAN-Meta \
.endif
post-patch:
.if ${PERL_LEVEL} >= 501000
#.if ${PERL_LEVEL} >= 501000
@${RM} -f ${WRKSRC}/bin/config_data
@${REINPLACE_CMD} -e '/script_files/d' ${WRKSRC}/Build.PL
@${REINPLACE_CMD} -e '/^bin\/config_data/d' ${WRKSRC}/MANIFEST
.endif
#.endif
post-install:
.if !defined(NOPORTDOCS)

View file

@ -59,20 +59,4 @@ MAN3= Module::CPANTS::Analyse.3 \
Module::CPANTS::Kwalitee::Uses.3 \
Module::CPANTS::Kwalitee::Version.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501000
BUILD_DEPENDS+= p5-Module-Pluggable>=2.96:${PORTSDIR}/devel/p5-Module-Pluggable \
p5-Pod-Simple>=0:${PORTSDIR}/textproc/p5-Pod-Simple \
p5-version>=0.73:${PORTSDIR}/devel/p5-version
RUN_DEPENDS+= p5-Module-Pluggable>=2.96:${PORTSDIR}/devel/p5-Module-Pluggable \
p5-Pod-Simple>=0:${PORTSDIR}/textproc/p5-Pod-Simple \
p5-version>=0.73:${PORTSDIR}/devel/p5-version
.endif
.if ${PERL_LEVEL} < 501001
BUILD_DEPENDS+= p5-Archive-Tar>=1.48:${PORTSDIR}/archivers/p5-Archive-Tar
RUN_DEPENDS+= p5-Archive-Tar>=1.48:${PORTSDIR}/archivers/p5-Archive-Tar
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -195,13 +195,7 @@ post-extract:
post-install:
@${CAT} ${PKGDIR}/pkg-message
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501001
TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
.else
# p5-Test-DependentModules is only available on 5.10.1+ (currently)
TEST_DEPENDS+= p5-Test-DependentModules>=0.13:${PORTSDIR}/devel/p5-Test-DependentModules
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -20,14 +20,4 @@ PERL_MODBUILD= yes
MAN3= Smart::Comments.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500900
RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
.endif
.if ${PERL_LEVEL} < 500905
RUN_DEPENDS+= p5-Text-Balanced>=2:${PORTSDIR}/textproc/p5-Text-Balanced
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>