aboutsummaryrefslogtreecommitdiff
path: root/lang/p5-ePerl
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2002-11-21 10:29:47 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2002-11-21 10:29:47 +0000
commitc3ca2684da7b74cb31afc21c1780115b50ff2deb (patch)
treeefc7ac59eda5c3672687c4f503ef38dd49f4bd98 /lang/p5-ePerl
parentc318aa2bef1f76064bfa429fc2d11404003dc4be (diff)
downloadports-c3ca2684da7b74cb31afc21c1780115b50ff2deb.tar.gz
ports-c3ca2684da7b74cb31afc21c1780115b50ff2deb.zip
Make lang/p5-ePerl compiling again.
Seen on: bento
Notes
Notes: svn path=/head/; revision=70657
Diffstat (limited to 'lang/p5-ePerl')
-rw-r--r--lang/p5-ePerl/files/patch-configure (renamed from lang/p5-ePerl/files/patch-aa)13
-rw-r--r--lang/p5-ePerl/files/patch-eperl_parse.c18
-rw-r--r--lang/p5-ePerl/files/patch-eperl_proto.h11
3 files changed, 40 insertions, 2 deletions
diff --git a/lang/p5-ePerl/files/patch-aa b/lang/p5-ePerl/files/patch-configure
index 1fb2377c53d9..53f118cd45b9 100644
--- a/lang/p5-ePerl/files/patch-aa
+++ b/lang/p5-ePerl/files/patch-configure
@@ -1,5 +1,14 @@
---- configure Sun Aug 2 09:48:40 1998
-+++ configure.new Fri Jun 16 19:59:15 2000
+--- configure.orig Sun Aug 2 23:48:40 1998
++++ configure Thu Nov 21 21:20:23 2002
+@@ -571,7 +571,7 @@
+ if test "${with_perl+set}" = set; then
+ withval="$with_perl"
+ perlprog=$with_perl
+-perlvers=`$perlprog -v | grep version | sed -e 's/.* version //' -e 's/ built.*//' -e 's/ with.*//'`
++perlvers=`$perlprog -e 'print $]'`
+
+ else
+ TMPFILE=/tmp/x.$$
@@ -901,7 +901,6 @@
GCC=yes
ac_test_CFLAGS="${CFLAGS+set}"
diff --git a/lang/p5-ePerl/files/patch-eperl_parse.c b/lang/p5-ePerl/files/patch-eperl_parse.c
new file mode 100644
index 000000000000..d9b506801d79
--- /dev/null
+++ b/lang/p5-ePerl/files/patch-eperl_parse.c
@@ -0,0 +1,18 @@
+--- eperl_parse.c.orig Thu Nov 21 21:27:34 2002
++++ eperl_parse.c Thu Nov 21 21:27:42 2002
+@@ -298,6 +298,7 @@
+ return NULL;
+ }
+
++#ifdef NOTDEF
+ char *strnstr(char *buf, char *str, int n)
+ {
+ char *cp;
+@@ -311,6 +312,7 @@
+ }
+ return NULL;
+ }
++#endif
+
+ char *strncasestr(char *buf, char *str, int n)
+ {
diff --git a/lang/p5-ePerl/files/patch-eperl_proto.h b/lang/p5-ePerl/files/patch-eperl_proto.h
new file mode 100644
index 000000000000..e2cc75386f2f
--- /dev/null
+++ b/lang/p5-ePerl/files/patch-eperl_proto.h
@@ -0,0 +1,11 @@
+--- eperl_proto.h.orig Thu Nov 21 21:26:44 2002
++++ eperl_proto.h Thu Nov 21 21:26:50 2002
+@@ -79,7 +79,7 @@
+ extern char *ePerl_Efwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
+ extern char *ePerl_Cfwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
+ extern char *strnchr(char *buf, char chr, int n);
+-extern char *strnstr(char *buf, char *str, int n);
++/*extern char *strnstr(char *buf, char *str, int n);*/
+ extern char *strncasestr(char *buf, char *str, int n);
+ extern char *strndup(char *buf, int n);
+ extern char *ePerl_Bristled2Plain(char *cpBuf);