aboutsummaryrefslogtreecommitdiff
path: root/devel/py-jsonlib
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2010-10-29 08:38:33 +0000
committerWen Heping <wen@FreeBSD.org>2010-10-29 08:38:33 +0000
commit3f6bc74b9b65db5cdadaef26f1938da1b21c3e38 (patch)
tree91e0046b9adcb078119ca72aab9f0e5908be8693 /devel/py-jsonlib
parent0b50269aebbdaaba3aac2a79469292bfe3149827 (diff)
downloadports-3f6bc74b9b65db5cdadaef26f1938da1b21c3e38.tar.gz
ports-3f6bc74b9b65db5cdadaef26f1938da1b21c3e38.zip
Notes
Diffstat (limited to 'devel/py-jsonlib')
-rw-r--r--devel/py-jsonlib/Makefile1
-rw-r--r--devel/py-jsonlib/files/patch-_jsonlib.c14
2 files changed, 15 insertions, 0 deletions
diff --git a/devel/py-jsonlib/Makefile b/devel/py-jsonlib/Makefile
index 200507486c21..54ec925218c7 100644
--- a/devel/py-jsonlib/Makefile
+++ b/devel/py-jsonlib/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jsonlib
PORTVERSION= 1.6.1
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/devel/py-jsonlib/files/patch-_jsonlib.c b/devel/py-jsonlib/files/patch-_jsonlib.c
new file mode 100644
index 000000000000..7a97de1d841f
--- /dev/null
+++ b/devel/py-jsonlib/files/patch-_jsonlib.c
@@ -0,0 +1,14 @@
+--- _jsonlib.c.orig 2010-10-20 11:09:48.792940743 +0000
++++ _jsonlib.c 2010-10-20 11:11:06.166556561 +0000
+@@ -21,6 +21,12 @@
+ #include <ctype.h>
+ #include <math.h>
++#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
++typedef int Py_ssize_t;
++#define PY_SSIZE_T_MAX INT_MAX
++#define PY_SSIZE_T_MIN INT_MIN
++#endif
++
+ /* Parser {{{ */
+ typedef struct _Parser
+ {