diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2007-03-31 20:33:58 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2007-03-31 20:33:58 +0000 |
commit | c5fb2bb5569face0b9e8dd08993295fbc44c660a (patch) | |
tree | e967594121176f847548a780938793adf0e028e2 /security/p5-Digest-FNV | |
parent | 62a32f108169b463244dbde90bc50a10b18e45f4 (diff) | |
download | ports-c5fb2bb5569face0b9e8dd08993295fbc44c660a.tar.gz ports-c5fb2bb5569face0b9e8dd08993295fbc44c660a.zip |
Notes
Diffstat (limited to 'security/p5-Digest-FNV')
-rw-r--r-- | security/p5-Digest-FNV/Makefile | 13 | ||||
-rw-r--r-- | security/p5-Digest-FNV/files/extrapatch-FNV.xs | 18 |
2 files changed, 1 insertions, 30 deletions
diff --git a/security/p5-Digest-FNV/Makefile b/security/p5-Digest-FNV/Makefile index 7bb8c72d9ec2..fe0039b19906 100644 --- a/security/p5-Digest-FNV/Makefile +++ b/security/p5-Digest-FNV/Makefile @@ -17,15 +17,4 @@ PERL_CONFIGURE= yes MAN3= Digest::FNV.3 -.include <bsd.port.pre.mk> - -.if ${PERL_LEVEL} < 500600 -EXTRA_PATCHES= ${PATCHDIR}/extrapatch-FNV.xs - -post-patch: - ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/FNV.pm - ${PERL} -pi -e '$$_="" if m{5.006|warnings}' ${WRKSRC}/FNV.pm - ${PERL} -pi -e 's/ our / my /' ${WRKSRC}/FNV.pm -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/p5-Digest-FNV/files/extrapatch-FNV.xs b/security/p5-Digest-FNV/files/extrapatch-FNV.xs deleted file mode 100644 index a8f06b4fb8e5..000000000000 --- a/security/p5-Digest-FNV/files/extrapatch-FNV.xs +++ /dev/null @@ -1,18 +0,0 @@ ---- FNV.xs.orig Sat Dec 24 10:51:11 2005 -+++ FNV.xs Sat Dec 24 10:51:55 2005 -@@ -4,6 +4,15 @@ - - #include "fnvlib/fnv.h" - -+/* 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 -+ - static int - not_here(char *s) - { |