summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2008-11-18 12:46:52 +0000
committerdrochner <drochner@pkgsrc.org>2008-11-18 12:46:52 +0000
commitf2bb98e5682f30d60ac215f613d0e5292c435614 (patch)
tree886d21044e90465b5c16ad020be37705259fbec2
parent534af116c11d8c78005bffba1724dca5c8c86cf9 (diff)
downloadpkgsrc-f2bb98e5682f30d60ac215f613d0e5292c435614.tar.gz
make this work with python-2.4 again
-rw-r--r--graphics/py-cairo/Makefile4
-rw-r--r--graphics/py-cairo/distinfo5
-rw-r--r--graphics/py-cairo/patches/patch-aa13
-rw-r--r--graphics/py-cairo/patches/patch-ab29
-rw-r--r--graphics/py-cairo/patches/patch-ac37
-rw-r--r--sysutils/py-notify/Makefile4
-rw-r--r--x11/py-gnome2-desktop/Makefile4
-rw-r--r--x11/py-gnome2/Makefile4
-rw-r--r--x11/py-gtk2/Makefile4
9 files changed, 93 insertions, 11 deletions
diff --git a/graphics/py-cairo/Makefile b/graphics/py-cairo/Makefile
index 1da0ad8a734..c82fb2b3795 100644
--- a/graphics/py-cairo/Makefile
+++ b/graphics/py-cairo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2008/11/10 22:10:08 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2008/11/18 12:46:52 drochner Exp $
#
DISTNAME= pycairo-1.6.4
@@ -19,7 +19,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
PKGCONFIG_OVERRIDE+= pycairo.pc.in
-PYTHON_VERSIONS_ACCEPTED= 25
+PYTHON_VERSIONS_ACCEPTED= 24 25
PY_PATCHPLIST= yes
.include "../../mk/compiler.mk"
diff --git a/graphics/py-cairo/distinfo b/graphics/py-cairo/distinfo
index 2f8d8a61971..53bd04631bd 100644
--- a/graphics/py-cairo/distinfo
+++ b/graphics/py-cairo/distinfo
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.6 2008/11/10 22:10:08 wiz Exp $
+$NetBSD: distinfo,v 1.7 2008/11/18 12:46:52 drochner Exp $
SHA1 (pycairo-1.6.4.tar.gz) = d3b3ecb6e999cc7b4a6ebcad00ae8d82c253c21c
RMD160 (pycairo-1.6.4.tar.gz) = 6197427df3d10b708847503f975670e3d02d57e5
Size (pycairo-1.6.4.tar.gz) = 491984 bytes
+SHA1 (patch-aa) = 1177a5421d80273721a80603dbd4cfca0fdf1b18
+SHA1 (patch-ab) = e8fcf835f97b38df476f09d7bcfe1f84b0264aa3
+SHA1 (patch-ac) = 93cc7fa29f90872dad22b83bc783acf9f1279093
diff --git a/graphics/py-cairo/patches/patch-aa b/graphics/py-cairo/patches/patch-aa
new file mode 100644
index 00000000000..3d686f21d3d
--- /dev/null
+++ b/graphics/py-cairo/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.3 2008/11/18 12:46:52 drochner Exp $
+
+--- configure.orig 2008-11-18 12:40:01.000000000 +0100
++++ configure
+@@ -19384,7 +19384,7 @@ echo $ECHO_N "checking whether $PYTHON v
+ prog="import sys, string
+ # split strings by '.' and convert to numeric. Append some zeros
+ # because we need at least 4 digits for the hex conversion.
+-minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
++minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
+ minverhex = 0
+ for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
+ sys.exit(sys.hexversion < minverhex)"
diff --git a/graphics/py-cairo/patches/patch-ab b/graphics/py-cairo/patches/patch-ab
new file mode 100644
index 00000000000..83ea57a0a34
--- /dev/null
+++ b/graphics/py-cairo/patches/patch-ab
@@ -0,0 +1,29 @@
+$NetBSD: patch-ab,v 1.1 2008/11/18 12:46:52 drochner Exp $
+
+--- cairo/pycairo-matrix.c.orig 2008-11-18 12:43:06.000000000 +0100
++++ cairo/pycairo-matrix.c
+@@ -206,7 +206,7 @@ matrix_transform_point (PycairoMatrix *o
+ }
+
+ static PyObject *
+-matrix_item (PycairoMatrix *o, Py_ssize_t i)
++matrix_item (PycairoMatrix *o, int i)
+ {
+ switch (i) {
+ case 0:
+@@ -266,14 +266,13 @@ static PyNumberMethods matrix_as_number
+ 0, /* nb_true_divide */
+ 0, /* nb_inplace_floor_divide */
+ 0, /* nb_inplace_true_divide */
+- (unaryfunc)0, /* nb_index */
+ };
+
+ static PySequenceMethods matrix_as_sequence = {
+ 0, /* sq_length */
+ 0, /* sq_concat */
+ 0, /* sq_repeat */
+- (ssizeargfunc)matrix_item, /* sq_item */
++ (intargfunc)matrix_item, /* sq_item */
+ 0, /* sq_slice */
+ 0, /* sq_ass_item */
+ 0, /* sq_ass_slice */
diff --git a/graphics/py-cairo/patches/patch-ac b/graphics/py-cairo/patches/patch-ac
new file mode 100644
index 00000000000..765dc31bda1
--- /dev/null
+++ b/graphics/py-cairo/patches/patch-ac
@@ -0,0 +1,37 @@
+$NetBSD: patch-ac,v 1.1 2008/11/18 12:46:52 drochner Exp $
+
+--- cairo/pycairo-surface.c.orig 2008-11-18 12:50:34.000000000 +0100
++++ cairo/pycairo-surface.c
+@@ -122,7 +122,7 @@ static cairo_status_t
+ _write_func (void *closure, const unsigned char *data, unsigned int length)
+ {
+ PyObject *res = PyObject_CallMethod ((PyObject *)closure, "write", "(s#)",
+- data, (Py_ssize_t)length);
++ data, length);
+ if (res == NULL) {
+ /* an exception has occurred, it will be picked up later by
+ * Pycairo_Check_Status()
+@@ -392,7 +392,7 @@ image_surface_create_for_data (PyTypeObj
+ cairo_format_t format;
+ unsigned char *buffer;
+ int width, height, stride = -1, res;
+- Py_ssize_t buffer_len;
++ int buffer_len;
+ PyObject *obj;
+
+ if (!PyArg_ParseTuple(args, "Oiii|i:Surface.create_for_data",
+@@ -570,10 +570,10 @@ image_surface_buffer_getsegcount (Pycair
+
+ /* See Python C API Manual 10.7 */
+ static PyBufferProcs image_surface_as_buffer = {
+- (readbufferproc) image_surface_buffer_getreadbuf,
+- (writebufferproc)image_surface_buffer_getwritebuf,
+- (segcountproc) image_surface_buffer_getsegcount,
+- (charbufferproc) NULL,
++ (getreadbufferproc) image_surface_buffer_getreadbuf,
++ (getwritebufferproc)image_surface_buffer_getwritebuf,
++ (getsegcountproc) image_surface_buffer_getsegcount,
++ (getcharbufferproc) NULL,
+ };
+
+ static PyMethodDef image_surface_methods[] = {
diff --git a/sysutils/py-notify/Makefile b/sysutils/py-notify/Makefile
index f6c62b4712c..735e27e3834 100644
--- a/sysutils/py-notify/Makefile
+++ b/sysutils/py-notify/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2008/11/15 08:15:06 hasso Exp $
+# $NetBSD: Makefile,v 1.7 2008/11/18 12:46:52 drochner Exp $
#
DISTNAME= notify-python-0.1.1
@@ -20,7 +20,7 @@ USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= notify-python-0.1.1/notify-python.pc.in
-PYTHON_VERSIONS_ACCEPTED= 25
+PYTHON_VERSIONS_ACCEPTED= 24 25
PY_PATCHPLIST= yes
.include "../../lang/python/extension.mk"
diff --git a/x11/py-gnome2-desktop/Makefile b/x11/py-gnome2-desktop/Makefile
index e2860e3a2ac..337135a712c 100644
--- a/x11/py-gnome2-desktop/Makefile
+++ b/x11/py-gnome2-desktop/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2008/11/13 11:17:16 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2008/11/18 12:46:52 drochner Exp $
#
DISTNAME= gnome-python-desktop-2.24.0
@@ -22,7 +22,7 @@ DEPENDS+= bug-buddy>=2.16:../../net/bug-buddy
PKGCONFIG_OVERRIDE+= gnome-python-desktop-2.0.pc.in
-PYTHON_VERSIONS_ACCEPTED= 25
+PYTHON_VERSIONS_ACCEPTED= 24 25
# XXX not yet, needs hal
PLIST_VARS+= nautilusburn
diff --git a/x11/py-gnome2/Makefile b/x11/py-gnome2/Makefile
index f26aa893311..21a288f4b88 100644
--- a/x11/py-gnome2/Makefile
+++ b/x11/py-gnome2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.57 2008/11/14 22:01:27 hasso Exp $
+# $NetBSD: Makefile,v 1.58 2008/11/18 12:46:52 drochner Exp $
#
DISTNAME= gnome-python-2.22.3
@@ -20,7 +20,7 @@ GNU_CONFIGURE= YES
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
USE_TOOLS+= pkg-config gmake
-PYTHON_VERSIONS_ACCEPTED= 25
+PYTHON_VERSIONS_ACCEPTED= 24 25
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
diff --git a/x11/py-gtk2/Makefile b/x11/py-gtk2/Makefile
index 069807f9871..b82ea8f0b22 100644
--- a/x11/py-gtk2/Makefile
+++ b/x11/py-gtk2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2008/11/17 21:56:16 jnemeth Exp $
+# $NetBSD: Makefile,v 1.54 2008/11/18 12:46:52 drochner Exp $
#
DISTNAME= pygtk-2.13.0
@@ -23,7 +23,7 @@ GNU_CONFIGURE= YES
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
USE_TOOLS+= gmake pkg-config
-PYTHON_VERSIONS_ACCEPTED= 25
+PYTHON_VERSIONS_ACCEPTED= 24 25
BUILDLINK_API_DEPENDS.pygobject+= ${PYPKGPREFIX}-gobject>=2.15.3