Get rid of PERL_LEVEL checks for Perl versions not supported.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2015-06-05 14:21:43 +00:00
parent 81c0cdd9eb
commit 6212a2753d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=388583
19 changed files with 18 additions and 128 deletions

View file

@ -24,17 +24,7 @@ CONFLICTS= p5-Compress-Zlib-2* p5-IO-Compress-Base-2* p5-IO-Compress-Zlib-2* p5-
USE_PERL5= configure
USES= perl5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} >= 501600
PLIST_SUB+= EXE_FILES="@comment "
.else
PLIST_SUB+= EXE_FILES=""
.endif
post-patch:
.if ${PERL_LEVEL} >= 501600
@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -1,4 +1,3 @@
%%EXE_FILES%%bin/zipdetails
%%SITE_PERL%%/Compress/Zlib.pm
%%SITE_PERL%%/File/GlobMapper.pm
%%SITE_PERL%%/IO/Compress/Adapter/Bzip2.pm
@ -44,4 +43,3 @@
%%PERL5_MAN3%%/IO::Uncompress::Inflate.3.gz
%%PERL5_MAN3%%/IO::Uncompress::RawInflate.3.gz
%%PERL5_MAN3%%/IO::Uncompress::Unzip.3.gz
%%EXE_FILES%%man/man1/zipdetails.1.gz

View file

@ -22,11 +22,4 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_PERL5= configure
USES= perl5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501600
BUILD_DEPENDS+= p5-Module-Metadata>=1.000007:${PORTSDIR}/devel/p5-Module-Metadata
RUN_DEPENDS+= p5-Module-Metadata>=1.000007:${PORTSDIR}/devel/p5-Module-Metadata
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -18,11 +18,6 @@ USES= perl5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501600
BUILD_DEPENDS+= p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP
RUN_DEPENDS+= p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP
.endif
.if ${PERL_LEVEL} < 501800
BUILD_DEPENDS+= p5-CPAN-Meta-Requirements>=2.121:${PORTSDIR}/devel/p5-CPAN-Meta-Requirements \
p5-CPAN-Meta-YAML>=0.008:${PORTSDIR}/devel/p5-CPAN-Meta-YAML

View file

@ -18,10 +18,4 @@ BUILD_DEPENDS= p5-Test-Base>=0:${PORTSDIR}/devel/p5-Test-Base \
USES= perl5
USE_PERL5= modbuild
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501301
BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.22.02:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -25,10 +25,4 @@ USES= perl5
USE_PERL5= configure
NO_ARCH= YES
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501400
TEST_DEPENDS+= p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -25,11 +25,4 @@ CONFLICTS_INSTALL= p5-Scalar-Does-0.[1-9]*
USE_PERL5= configure
USES= perl5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501601
BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.24:${PORTSDIR}/lang/p5-Scalar-List-Utils
RUN_DEPENDS+= p5-Scalar-List-Utils>=1.24:${PORTSDIR}/lang/p5-Scalar-List-Utils
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -19,7 +19,7 @@ USE_PERL5= configure
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 5.02000
.if ${PERL_LEVEL} < 502000
BUILD_DEPENDS= p5-Module-Load>=0.28:${PORTSDIR}/devel/p5-Module-Load
RUN_DEPENDS:= ${BUILD_DEPENDS}
.endif

View file

@ -22,11 +22,4 @@ RUN_DEPENDS= p5-CPAN-Meta-YAML>=0.011:${PORTSDIR}/devel/p5-CPAN-Meta-YAML
USES= perl5
USE_PERL5= configure
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501600
BUILD_DEPENDS+= p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP
RUN_DEPENDS+= p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -30,10 +30,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/tutorial/* ${STAGEDIR}${DOCSDIR}/tutorial
.endif
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501600
BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.62:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -33,11 +33,4 @@ CONFLICTS_INSTALL= p5-IO-Detect-[0-9]*
USE_PERL5= configure
USES= perl5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501601
BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.24:${PORTSDIR}/lang/p5-Scalar-List-Utils
RUN_DEPENDS+= p5-Scalar-List-Utils>=1.24:${PORTSDIR}/lang/p5-Scalar-List-Utils
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -48,11 +48,4 @@ USES= perl5
XS_BUILD_DEPENDS= p5-Type-Tiny-XS>=0.010:${PORTSDIR}/devel/p5-Type-Tiny-XS
XS_RUN_DEPENDS= p5-Type-Tiny-XS>=0.010:${PORTSDIR}/devel/p5-Type-Tiny-XS
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501600
BUILD_DEPENDS+= p5-CPAN-Meta-Requirements>=2:${PORTSDIR}/devel/p5-CPAN-Meta-Requirements
RUN_DEPENDS+= p5-CPAN-Meta-Requirements>=2:${PORTSDIR}/devel/p5-CPAN-Meta-Requirements
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -24,10 +24,4 @@ RUN_DEPENDS= p5-B-Hooks-OP-Check>=0.19:${PORTSDIR}/devel/p5-B-Hooks-OP-Check \
USE_PERL5= configure
USES= perl5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501600
BUILD_DEPENDS+= p5-CPAN-Meta>=2.112580:${PORTSDIR}/devel/p5-CPAN-Meta
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -26,7 +26,7 @@ SUB_FILES= pkg-install
OPTIONS_DEFINE= ANTIWORD MAGICK ISPELL LEARNSPAM LSOF PAM POP3_OVER_SSL QUOTA \
SPAMCHECK SPAMCHECK_ALL SPEEDYCGI TNEF VIRUSCHECK VIRUSCHECK_ALL \
WGET ZLIB
WGET
ANTIWORD_DESC= AntiWord
ISPELL_DESC= ISpell
@ -42,13 +42,12 @@ TNEF_DESC= tnef
VIRUSCHECK_DESC= Virus check (Clam AntiVirus)
VIRUSCHECK_ALL_DESC= Virus check for all (default: pop3)
WGET_DESC= wget
ZLIB_DESC= ZLib
.include <bsd.port.pre.mk>
# WITH_SPEEDYCGI needs suidperl enabled under perl 5.8.4 or above,
# so, disable it first, and enable it again if perl exists and enabled suidperl
.if ${PERL_LEVEL} >= 500804 && !empty(PORT_OPTIONS:MSPEEDYCGI)
.if ${PORT_OPTIONS:MSPEEDYCGI}
DISABLE_SPEEDYCGI=yes
PORT_OPTIONS:= ${PORT_OPTIONS:NSPEEDYCGI}
.if exists(${PERL})
@ -57,7 +56,7 @@ PERL_V!= ${PERL} -V
.undef DISABLE_SPEEDYCGI
.endif # dosuid
.endif # exists(${PERL})
.endif # perl5.8
.endif # SPEEDYCGI
.if ${PORT_OPTIONS:MLEARNSPAM} || !empty(PORT_OPTIONS:MSPAMCHECK_ALL)
PORT_OPTIONS+= SPAMCHECK
@ -106,11 +105,7 @@ RUN_DEPENDS+= spamassassin>=0:${PORTSDIR}/mail/spamassassin
.if ${PORT_OPTIONS:MSPEEDYCGI}
RUN_DEPENDS+= speedy_suidperl:${PORTSDIR}/www/p5-CGI-SpeedyCGI
SUB_LIST+= WITHOUT_SPEEDYCGI="@comment "
.if ${PERL_LEVEL} < 500804
EXTRA_PATCHES+= ${PATCH_WRKSRC}/misc/patches/suidperl2speedy_suidperl.patch
.else
EXTRA_PATCHES+= ${PATCH_WRKSRC}/misc/patches/suidperl2speedy_suidperl.notmp.patch
.endif
.else
SUB_LIST+= WITHOUT_SPEEDYCGI=""
.endif
@ -123,12 +118,6 @@ RUN_DEPENDS+= clamdscan:${PORTSDIR}/security/clamav
RUN_DEPENDS+= ${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
.endif
.if ${PORT_OPTIONS:MZLIB}
. if ${PERL_LEVEL} < 500903
RUN_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
. endif
.endif
post-extract:
.for x in addressbooks/global calendar.book
@${RM} ${WRKSRC}/cgi-bin/openwebmail/etc/${x}

View file

@ -26,11 +26,6 @@ USES= perl5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501600
BUILD_DEPENDS+= p5-Carp>=1.26:${PORTSDIR}/devel/p5-Carp
RUN_DEPENDS+= p5-Carp>=1.26:${PORTSDIR}/devel/p5-Carp
.endif
.if ${PERL_LEVEL} < 502000
BUILD_DEPENDS+= p5-HTTP-Tiny>=0.028:${PORTSDIR}/www/p5-HTTP-Tiny \
p5-Pod-Perldoc>=3.21:${PORTSDIR}/textproc/p5-Pod-Perldoc

View file

@ -24,13 +24,7 @@ MAKE_JOBS_UNSAFE= yes
USES= perl5
USE_PERL5= configure
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501600
BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.59:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Text/Xslate/Xslate.so
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -21,10 +21,4 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= perl5
USE_PERL5= configure
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501502
BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.59:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -12,6 +12,7 @@ MAINTAINER= gnome@FreeBSD.org
COMMENT= Opensource browser engine using the GTK+ 2 toolkit
BUILD_DEPENDS= gtkdoc-rebase:${PORTSDIR}/textproc/gtk-doc \
p5-Switch>0:${PORTSDIR}/lang/p5-Switch \
geoclue>=0:${PORTSDIR}/net/geoclue
LIB_DEPENDS= libenchant.so:${PORTSDIR}/textproc/enchant \
libsecret-1.so:${PORTSDIR}/security/libsecret \
@ -82,10 +83,6 @@ CFLAGS+= -mminimal-toc
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} >= 501400
BUILD_DEPENDS+= p5-Switch>0:${PORTSDIR}/lang/p5-Switch
.endif
.if ${OSVERSION} < 1000033
BUILD_DEPENDS+= flex>=0:${PORTSDIR}/textproc/flex
CONFIGURE_ENV+= FLEX="${LOCALBASE}/bin/flex"

View file

@ -12,6 +12,7 @@ MAINTAINER= gnome@FreeBSD.org
COMMENT= Opensource browser engine using the GTK+ 3 toolkit
BUILD_DEPENDS= gtkdoc-rebase:${PORTSDIR}/textproc/gtk-doc \
p5-Switch>0:${PORTSDIR}/lang/p5-Switch \
geoclue>=0:${PORTSDIR}/net/geoclue
LIB_DEPENDS= libenchant.so:${PORTSDIR}/textproc/enchant \
libsecret-1.so:${PORTSDIR}/security/libsecret \
@ -85,10 +86,6 @@ CFLAGS+= -mminimal-toc
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} >= 501400
BUILD_DEPENDS+= p5-Switch>0:${PORTSDIR}/lang/p5-Switch
.endif
.if ${OSVERSION} < 1000033
BUILD_DEPENDS+= flex>=0:${PORTSDIR}/textproc/flex
CONFIGURE_ENV+= FLEX="${LOCALBASE}/bin/flex"