diff options
author | Alan Eldridge <alane@FreeBSD.org> | 2002-11-15 01:23:27 +0000 |
---|---|---|
committer | Alan Eldridge <alane@FreeBSD.org> | 2002-11-15 01:23:27 +0000 |
commit | b83ba78a513ddb83d4d12d8755b9fb96c714c7ae (patch) | |
tree | 8f494ba964ee2d8c2a755a187b184de14d6e55c5 | |
parent | Fix bug in logic for determining the right pkg-plist file to use. (diff) |
Make port forbidden if perl is above 5.6.0.
PR: 44719
Approved by: maintainer timeout
Notes
Notes:
svn path=/head/; revision=70131
-rw-r--r-- | devel/p5-File-Spec/Makefile | 20 | ||||
-rw-r--r-- | devel/p5-PathTools/Makefile | 20 |
2 files changed, 38 insertions, 2 deletions
diff --git a/devel/p5-File-Spec/Makefile b/devel/p5-File-Spec/Makefile index 1c828d9aad7f..c49d3487bee4 100644 --- a/devel/p5-File-Spec/Makefile +++ b/devel/p5-File-Spec/Makefile @@ -25,4 +25,22 @@ MAN3= File::Spec.3 \ File::Spec::Win32.3 MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +perl_major=${PERL_VERSION:C|^([1-9]+).*|\1|} +_perl_minor=00${PERL_VERSION:C|^([1-9]+)\.([0-9]+).*|\2|} +perl_minor=${_perl_minor:C|^.*(...)|\1|} +.if ${perl_minor} >= 100 +perl_minor=${PERL_VERSION:C|^([1-9]+)\.([0-9][0-9][0-9]).*|\2|} +perl_patch=${PERL_VERSION:C|^.*(..)|\1|} +.else # ${perl_minor} < 100 +_perl_patch=0${PERL_VERSION:C|^([1-9]+)\.([0-9]+)\.*|0|} +perl_patch=${_perl_patch:C|^.*(..)|\1|} +.endif # ${perl_minor} < 100 +PERL_LEVEL=${perl_major}${perl_minor}${perl_patch} + +.if ${PERL_LEVEL} > 500600 +FORBIDDEN= This port is for perl 5.6.0 and under only. +.endif # ${PERL_LEVEL} > 500600 + +.include <bsd.port.post.mk> diff --git a/devel/p5-PathTools/Makefile b/devel/p5-PathTools/Makefile index 1c828d9aad7f..c49d3487bee4 100644 --- a/devel/p5-PathTools/Makefile +++ b/devel/p5-PathTools/Makefile @@ -25,4 +25,22 @@ MAN3= File::Spec.3 \ File::Spec::Win32.3 MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +perl_major=${PERL_VERSION:C|^([1-9]+).*|\1|} +_perl_minor=00${PERL_VERSION:C|^([1-9]+)\.([0-9]+).*|\2|} +perl_minor=${_perl_minor:C|^.*(...)|\1|} +.if ${perl_minor} >= 100 +perl_minor=${PERL_VERSION:C|^([1-9]+)\.([0-9][0-9][0-9]).*|\2|} +perl_patch=${PERL_VERSION:C|^.*(..)|\1|} +.else # ${perl_minor} < 100 +_perl_patch=0${PERL_VERSION:C|^([1-9]+)\.([0-9]+)\.*|0|} +perl_patch=${_perl_patch:C|^.*(..)|\1|} +.endif # ${perl_minor} < 100 +PERL_LEVEL=${perl_major}${perl_minor}${perl_patch} + +.if ${PERL_LEVEL} > 500600 +FORBIDDEN= This port is for perl 5.6.0 and under only. +.endif # ${PERL_LEVEL} > 500600 + +.include <bsd.port.post.mk> |