diff options
author | gabor <gabor@FreeBSD.org> | 2007-04-01 04:33:58 +0800 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2007-04-01 04:33:58 +0800 |
commit | 21489a132c49b0749cfec6e3d87d3e13618455dc (patch) | |
tree | 76de47d1a9c7e85b21cbe6cf5791d3dda81c8ff2 /security/p5-Crypt-Khazad | |
parent | 97f6c457333bddd339744fd3f3f618c474266fb9 (diff) | |
download | freebsd-ports-gnome-21489a132c49b0749cfec6e3d87d3e13618455dc.tar.gz freebsd-ports-gnome-21489a132c49b0749cfec6e3d87d3e13618455dc.tar.zst freebsd-ports-gnome-21489a132c49b0749cfec6e3d87d3e13618455dc.zip |
- Remove support for old Perl from my ports
Diffstat (limited to 'security/p5-Crypt-Khazad')
-rw-r--r-- | security/p5-Crypt-Khazad/Makefile | 15 | ||||
-rw-r--r-- | security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs | 18 |
2 files changed, 1 insertions, 32 deletions
diff --git a/security/p5-Crypt-Khazad/Makefile b/security/p5-Crypt-Khazad/Makefile index 8734d0c4ea5e..5bc41cc114e6 100644 --- a/security/p5-Crypt-Khazad/Makefile +++ b/security/p5-Crypt-Khazad/Makefile @@ -17,17 +17,4 @@ PERL_CONFIGURE= yes MAN3= Crypt::Khazad.3 -.include <bsd.port.pre.mk> - -.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> +.include <bsd.port.mk> diff --git a/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs b/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs deleted file mode 100644 index b7c12bca7356..000000000000 --- a/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs +++ /dev/null @@ -1,18 +0,0 @@ ---- 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; |