summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-04-19 21:05:45 +0000
committerjoerg <joerg@pkgsrc.org>2012-04-19 21:05:45 +0000
commitd228f43c6a8b4b41a87b0121eafc0d2484b78c0c (patch)
tree0159edb2d356c7b3934a65b910c23922d86d515c /textproc
parent21edb3b5f71a9d190fc3346ba047ce76613972eb (diff)
downloadpkgsrc-d228f43c6a8b4b41a87b0121eafc0d2484b78c0c.tar.gz
Fix messed up configure.sh.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-Text-Markdown-Discount/distinfo3
-rw-r--r--textproc/p5-Text-Markdown-Discount/patches/patch-configure.sh46
2 files changed, 48 insertions, 1 deletions
diff --git a/textproc/p5-Text-Markdown-Discount/distinfo b/textproc/p5-Text-Markdown-Discount/distinfo
index 4cfeac0310c..2efd1d9291c 100644
--- a/textproc/p5-Text-Markdown-Discount/distinfo
+++ b/textproc/p5-Text-Markdown-Discount/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2012/01/08 02:27:48 schmonz Exp $
+$NetBSD: distinfo,v 1.2 2012/04/19 21:05:45 joerg Exp $
SHA1 (Text-Markdown-Discount-0.02.tar.gz) = 101ec221011ef099599e90bec5ae0f0cea6c6e25
RMD160 (Text-Markdown-Discount-0.02.tar.gz) = 29b4b24d76c1687ddd48568ae674b87acd8b1b20
Size (Text-Markdown-Discount-0.02.tar.gz) = 180943 bytes
+SHA1 (patch-configure.sh) = 046ca124f1db6e659f9d950c1bda5ecb570d4224
diff --git a/textproc/p5-Text-Markdown-Discount/patches/patch-configure.sh b/textproc/p5-Text-Markdown-Discount/patches/patch-configure.sh
new file mode 100644
index 00000000000..afd6fe1c1b6
--- /dev/null
+++ b/textproc/p5-Text-Markdown-Discount/patches/patch-configure.sh
@@ -0,0 +1,46 @@
+$NetBSD: patch-configure.sh,v 1.1 2012/04/19 21:05:46 joerg Exp $
+
+--- discount-2.1.2/configure.sh.orig 2012-04-19 14:00:16.000000000 +0000
++++ discount-2.1.2/configure.sh
+@@ -76,11 +76,11 @@ AC_C_INLINE
+ AC_SCALAR_TYPES sub hdr
+ AC_CHECK_BASENAME
+
+-AC_CHECK_HEADERS sys/types.h pwd.h && AC_CHECK_FUNCS getpwuid
++AC_CHECK_HEADERS sys/types.h pwd.h && AC_CHECK_FUNCS 'getpwuid(0)'
+
+-if AC_CHECK_FUNCS srandom; then
++if AC_CHECK_FUNCS 'srandom(0)'; then
+ AC_DEFINE 'INITRNG(x)' 'srandom((unsigned int)x)'
+-elif AC_CHECK_FUNCS srand; then
++elif AC_CHECK_FUNCS 'srand(0)'; then
+ AC_DEFINE 'INITRNG(x)' 'srand((unsigned int)x)'
+ else
+ AC_DEFINE 'INITRNG(x)' '(void)1'
+@@ -102,7 +102,7 @@ else
+ AC_DEFINE 'COINTOSS()' '1'
+ fi
+
+-if AC_CHECK_FUNCS strcasecmp; then
++if AC_CHECK_FUNCS 'strcasecmp("X", "x")'; then
+ :
+ elif AC_CHECK_FUNCS stricmp; then
+ AC_DEFINE strcasecmp stricmp
+@@ -110,7 +110,7 @@ else
+ AC_FAIL "$TARGET requires either strcasecmp() or stricmp()"
+ fi
+
+-if AC_CHECK_FUNCS strncasecmp; then
++if AC_CHECK_FUNCS 'strncasecmp("X", "x", 1)'; then
+ :
+ elif AC_CHECK_FUNCS strnicmp; then
+ AC_DEFINE strncasecmp strnicmp
+@@ -118,7 +118,7 @@ else
+ AC_FAIL "$TARGET requires either strncasecmp() or strnicmp()"
+ fi
+
+-if AC_CHECK_FUNCS fchdir || AC_CHECK_FUNCS getcwd ; then
++if AC_CHECK_FUNCS 'fchdir(0)' || AC_CHECK_FUNCS 'getcwd((char *)0, 0)'; then
+ AC_SUB 'THEME' ''
+ else
+ AC_SUB 'THEME' '#'