diff options
author | leeym <leeym@FreeBSD.org> | 2005-12-30 20:38:46 +0000 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2005-12-30 20:38:46 +0000 |
commit | 35eb7bc43e052958b25c8f8d3bc18344b97ea49e (patch) | |
tree | 103fdc1ba49d56446a14ad56585eef818b558917 | |
parent | 2261c8374a7659ced17cb21e85132a66638967af (diff) | |
download | FreeBSD-ports-35eb7bc43e052958b25c8f8d3bc18344b97ea49e.zip FreeBSD-ports-35eb7bc43e052958b25c8f8d3bc18344b97ea49e.tar.gz |
- remove IGNORE on old perl
Submitted by: leeym
Approved by: maintainer via email
-rw-r--r-- | security/p5-Crypt-AppleTwoFish/Makefile | 8 | ||||
-rw-r--r-- | security/p5-Crypt-CFB/Makefile | 6 | ||||
-rw-r--r-- | security/p5-Crypt-Caesar/Makefile | 6 | ||||
-rw-r--r-- | security/p5-Crypt-Chimera/Makefile | 6 | ||||
-rw-r--r-- | security/p5-Crypt-DES_PP/Makefile | 6 | ||||
-rw-r--r-- | security/p5-Crypt-Enigma/Makefile | 6 | ||||
-rw-r--r-- | security/p5-Crypt-GOST_PP/Makefile | 6 | ||||
-rw-r--r-- | security/p5-Crypt-HCE_MD5/Makefile | 6 | ||||
-rw-r--r-- | security/p5-Crypt-Khazad/Makefile | 13 | ||||
-rw-r--r-- | security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs | 18 | ||||
-rw-r--r-- | security/p5-Crypt-Loki97/Makefile | 13 | ||||
-rw-r--r-- | security/p5-Crypt-Loki97/files/extrapatch-Loki97.xs | 18 | ||||
-rw-r--r-- | security/p5-Crypt-MySQL/Makefile | 6 | ||||
-rw-r--r-- | security/p5-Crypt-Rabbit/Makefile | 12 | ||||
-rw-r--r-- | security/p5-Crypt-Rabbit/files/extrapatch-Rabbit.xs | 18 | ||||
-rw-r--r-- | security/p5-Crypt-Shark/Makefile | 13 | ||||
-rw-r--r-- | security/p5-Crypt-Shark/files/extrapatch-Shark.xs | 18 | ||||
-rw-r--r-- | security/p5-Crypt-X509/Makefile | 8 |
18 files changed, 135 insertions, 52 deletions
diff --git a/security/p5-Crypt-AppleTwoFish/Makefile b/security/p5-Crypt-AppleTwoFish/Makefile index 26f4f68..1f08fcd 100644 --- a/security/p5-Crypt-AppleTwoFish/Makefile +++ b/security/p5-Crypt-AppleTwoFish/Makefile @@ -18,7 +18,11 @@ PERL_CONFIGURE= yes MAN3= Crypt::AppleTwoFish.3 .include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again + +.if ${PERL_LEVEL} < 500800 +post-patch: + ${PERL} -pi -e '$$_="" if m{5.008|warnings}' ${WRKSRC}/t/*.t \ + ${WRKSRC}/lib/Crypt/AppleTwoFish.pm ${WRKSRC}/${CONFIGURE_SCRIPT} .endif + .include <bsd.port.post.mk> diff --git a/security/p5-Crypt-CFB/Makefile b/security/p5-Crypt-CFB/Makefile index 5a0c6bc..19ce0b6 100644 --- a/security/p5-Crypt-CFB/Makefile +++ b/security/p5-Crypt-CFB/Makefile @@ -17,8 +17,4 @@ PERL_CONFIGURE= yes MAN3= Crypt::CFB.3 -.include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again -.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/p5-Crypt-Caesar/Makefile b/security/p5-Crypt-Caesar/Makefile index b313821..764cb15 100644 --- a/security/p5-Crypt-Caesar/Makefile +++ b/security/p5-Crypt-Caesar/Makefile @@ -17,8 +17,4 @@ PERL_CONFIGURE= yes MAN3= Crypt::Caesar.3 -.include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again -.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/p5-Crypt-Chimera/Makefile b/security/p5-Crypt-Chimera/Makefile index 75f6a80..dfd9e26 100644 --- a/security/p5-Crypt-Chimera/Makefile +++ b/security/p5-Crypt-Chimera/Makefile @@ -17,8 +17,4 @@ PERL_CONFIGURE= yes MAN3= Crypt::Chimera.3 -.include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again -.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/p5-Crypt-DES_PP/Makefile b/security/p5-Crypt-DES_PP/Makefile index eb801a0..3c3c67a 100644 --- a/security/p5-Crypt-DES_PP/Makefile +++ b/security/p5-Crypt-DES_PP/Makefile @@ -17,8 +17,4 @@ PERL_CONFIGURE= yes MAN3= Crypt::DES_PP.3 -.include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again -.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/p5-Crypt-Enigma/Makefile b/security/p5-Crypt-Enigma/Makefile index 088a12a..b0b5a635 100644 --- a/security/p5-Crypt-Enigma/Makefile +++ b/security/p5-Crypt-Enigma/Makefile @@ -17,8 +17,4 @@ PERL_CONFIGURE= yes MAN3= Crypt::Enigma.3 -.include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again -.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/p5-Crypt-GOST_PP/Makefile b/security/p5-Crypt-GOST_PP/Makefile index ca31963..06b149e 100644 --- a/security/p5-Crypt-GOST_PP/Makefile +++ b/security/p5-Crypt-GOST_PP/Makefile @@ -17,8 +17,4 @@ PERL_CONFIGURE= yes MAN3= Crypt::GOST_PP.3 -.include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again -.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/p5-Crypt-HCE_MD5/Makefile b/security/p5-Crypt-HCE_MD5/Makefile index b0252f1..be733ee 100644 --- a/security/p5-Crypt-HCE_MD5/Makefile +++ b/security/p5-Crypt-HCE_MD5/Makefile @@ -17,8 +17,4 @@ PERL_CONFIGURE= yes MAN3= Crypt::HCE_MD5.3 -.include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again -.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/p5-Crypt-Khazad/Makefile b/security/p5-Crypt-Khazad/Makefile index eba0846..09635ac 100644 --- a/security/p5-Crypt-Khazad/Makefile +++ b/security/p5-Crypt-Khazad/Makefile @@ -18,7 +18,16 @@ PERL_CONFIGURE= yes MAN3= Crypt::Khazad.3 .include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again + +.if ${PERL_LEVEL} < 500600 +BUILD_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +RUN_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-Khazad.xs + +post-patch: + ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/Khazad.pm + ${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/Khazad.pm ${WRKSRC}/t/*.t + ${PERL} -pi -e 's/void/int argc, char**argv, char**env/ if m{int main}' ${WRKSRC}/_khazad.c .endif + .include <bsd.port.post.mk> diff --git a/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs b/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs new file mode 100644 index 0000000..b7c12bc --- /dev/null +++ b/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs @@ -0,0 +1,18 @@ +--- Khazad.xs.orig Sat Dec 31 02:51:21 2005 ++++ Khazad.xs Sat Dec 31 02:51:56 2005 +@@ -4,6 +4,15 @@ + #include "ppport.h" + #include "_khazad.c" + ++/* try to be compatible with older perls */ ++/* SvPV_nolen() macro first defined in 5.005_55 */ ++/* this is slow, not threadsafe, but works */ ++#include "patchlevel.h" ++#if (PATCHLEVEL == 4) || ((PATCHLEVEL == 5) && (SUBVERSION < 55)) ++static STRLEN nolen_na; ++# define SvPV_nolen(sv) SvPV ((sv), nolen_na) ++#endif ++ + typedef struct khazad { + NESSIEstruct key; + }* Crypt__Khazad; diff --git a/security/p5-Crypt-Loki97/Makefile b/security/p5-Crypt-Loki97/Makefile index bdff16b..9a98cc4 100644 --- a/security/p5-Crypt-Loki97/Makefile +++ b/security/p5-Crypt-Loki97/Makefile @@ -18,7 +18,16 @@ PERL_CONFIGURE= yes MAN3= Crypt::Loki97.3 .include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again + +.if ${PERL_LEVEL} < 500600 +BUILD_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +RUN_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-Loki97.xs + +post-patch: + ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/Loki97.pm + ${PERL} -pi -e 's/void/int argc, char**argv, char**env/ if m{int main}' ${WRKSRC}/_loki97.c + ${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/Loki97.pm ${WRKSRC}/t/*.t .endif + .include <bsd.port.post.mk> diff --git a/security/p5-Crypt-Loki97/files/extrapatch-Loki97.xs b/security/p5-Crypt-Loki97/files/extrapatch-Loki97.xs new file mode 100644 index 0000000..f2e7f9e --- /dev/null +++ b/security/p5-Crypt-Loki97/files/extrapatch-Loki97.xs @@ -0,0 +1,18 @@ +--- Loki97.xs.orig Sat Dec 31 03:04:38 2005 ++++ Loki97.xs Sat Dec 31 03:05:06 2005 +@@ -4,6 +4,15 @@ + #include "ppport.h" + #include "_loki97.c" + ++/* try to be compatible with older perls */ ++/* SvPV_nolen() macro first defined in 5.005_55 */ ++/* this is slow, not threadsafe, but works */ ++#include "patchlevel.h" ++#if (PATCHLEVEL == 4) || ((PATCHLEVEL == 5) && (SUBVERSION < 55)) ++static STRLEN nolen_na; ++# define SvPV_nolen(sv) SvPV ((sv), nolen_na) ++#endif ++ + typedef struct loki97 { + keyInstance enc_key, dec_key; + cipherInstance cipher; diff --git a/security/p5-Crypt-MySQL/Makefile b/security/p5-Crypt-MySQL/Makefile index 39c2294..7ef651b 100644 --- a/security/p5-Crypt-MySQL/Makefile +++ b/security/p5-Crypt-MySQL/Makefile @@ -17,8 +17,4 @@ PERL_CONFIGURE= yes MAN3= Crypt::MySQL.3 -.include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again -.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/p5-Crypt-Rabbit/Makefile b/security/p5-Crypt-Rabbit/Makefile index e021749..6962cd4 100644 --- a/security/p5-Crypt-Rabbit/Makefile +++ b/security/p5-Crypt-Rabbit/Makefile @@ -18,7 +18,15 @@ PERL_CONFIGURE= yes MAN3= Crypt::Rabbit.3 .include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again + +.if ${PERL_LEVEL} < 500600 +BUILD_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +RUN_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-Rabbit.xs + +post-patch: + ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/Rabbit.pm + ${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/Rabbit.pm ${WRKSRC}/t/*.t .endif + .include <bsd.port.post.mk> diff --git a/security/p5-Crypt-Rabbit/files/extrapatch-Rabbit.xs b/security/p5-Crypt-Rabbit/files/extrapatch-Rabbit.xs new file mode 100644 index 0000000..ccff81e --- /dev/null +++ b/security/p5-Crypt-Rabbit/files/extrapatch-Rabbit.xs @@ -0,0 +1,18 @@ +--- Rabbit.xs.orig Sat Dec 31 03:49:51 2005 ++++ Rabbit.xs Sat Dec 31 03:50:13 2005 +@@ -4,6 +4,15 @@ + #include "ppport.h" + #include "_rabbit.c" + ++/* try to be compatible with older perls */ ++/* SvPV_nolen() macro first defined in 5.005_55 */ ++/* this is slow, not threadsafe, but works */ ++#include "patchlevel.h" ++#if (PATCHLEVEL == 4) || ((PATCHLEVEL == 5) && (SUBVERSION < 55)) ++static STRLEN nolen_na; ++# define SvPV_nolen(sv) SvPV ((sv), nolen_na) ++#endif ++ + typedef struct rabbit { + t_instance state; + }* Crypt__Rabbit; diff --git a/security/p5-Crypt-Shark/Makefile b/security/p5-Crypt-Shark/Makefile index 8d35481..740b28c 100644 --- a/security/p5-Crypt-Shark/Makefile +++ b/security/p5-Crypt-Shark/Makefile @@ -18,7 +18,16 @@ PERL_CONFIGURE= yes MAN3= Crypt::Shark.3 .include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again + +.if ${PERL_LEVEL} < 500600 +BUILD_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +RUN_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader +EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-Shark.xs + +post-patch: + ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/Shark.pm + ${PERL} -pi -e 's/void/int argc, char**argv, char**env/ if m{int main}' ${WRKSRC}/_shark.c + ${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/Shark.pm ${WRKSRC}/t/*.t .endif + .include <bsd.port.post.mk> diff --git a/security/p5-Crypt-Shark/files/extrapatch-Shark.xs b/security/p5-Crypt-Shark/files/extrapatch-Shark.xs new file mode 100644 index 0000000..baec9da --- /dev/null +++ b/security/p5-Crypt-Shark/files/extrapatch-Shark.xs @@ -0,0 +1,18 @@ +--- Shark.xs.orig Sat Dec 31 04:10:06 2005 ++++ Shark.xs Sat Dec 31 04:10:37 2005 +@@ -4,6 +4,15 @@ + #include "ppport.h" + #include "_shark.c" + ++/* try to be compatible with older perls */ ++/* SvPV_nolen() macro first defined in 5.005_55 */ ++/* this is slow, not threadsafe, but works */ ++#include "patchlevel.h" ++#if (PATCHLEVEL == 4) || ((PATCHLEVEL == 5) && (SUBVERSION < 55)) ++static STRLEN nolen_na; ++# define SvPV_nolen(sv) SvPV ((sv), nolen_na) ++#endif ++ + typedef struct shark { + ddword roundkey_enc[14]; + ddword roundkey_dec[14]; diff --git a/security/p5-Crypt-X509/Makefile b/security/p5-Crypt-X509/Makefile index 8e35376..0f3434e 100644 --- a/security/p5-Crypt-X509/Makefile +++ b/security/p5-Crypt-X509/Makefile @@ -22,7 +22,11 @@ MAN3= Crypt::X509.3 WRKSRC= ${WRKDIR}/Crypt-X509 .include <bsd.port.pre.mk> -.if ${PERL_LEVEL} <= 500503 -IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again + +.if ${PERL_LEVEL} < 500600 +post-patch: + ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/lib/Crypt/X509.pm + ${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/lib/Crypt/X509.pm .endif + .include <bsd.port.post.mk> |