head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.2 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.3.0.28 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.26 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.24 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.22 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.20 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.18 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.16 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.14 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.12 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.10 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.8 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.6 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.4 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.2 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.2.0.2 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.1.0.4 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.2 pkgsrc-2008Q4-base:1.1; locks; strict; comment @# @; 1.4 date 2013.03.19.12.19.39; author drochner; state dead; branches; next 1.3; 1.3 date 2009.08.31.08.04.32; author wiz; state Exp; branches; next 1.2; 1.2 date 2009.05.13.12.56.47; author obache; state Exp; branches; next 1.1; 1.1 date 2008.11.18.12.46.52; author drochner; state Exp; branches; next ; desc @@ 1.4 log @drop patches for Python-2.5 support @ text @$NetBSD: patch-ac,v 1.3 2009/08/31 08:04:32 wiz Exp $ --- src/surface.c.orig 2009-08-26 10:59:35.000000000 +0000 +++ src/surface.c @@@@ -118,7 +118,7 @@@@ static cairo_status_t _write_func (void *closure, const unsigned char *data, unsigned int length) { PyGILState_STATE gstate = PyGILState_Ensure(); 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() @@@@ -401,7 +401,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", @@@@ -445,7 +445,7 @@@@ image_surface_create_for_data (PyTypeObj static cairo_status_t _read_func (void *closure, unsigned char *data, unsigned int length) { char *buffer; - Py_ssize_t str_length; + int str_length; cairo_status_t status = CAIRO_STATUS_READ_ERROR; PyGILState_STATE gstate = PyGILState_Ensure(); PyObject *pystr = PyObject_CallMethod ((PyObject *)closure, "read", "(i)", @@@@ -585,10 +585,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[] = { @ 1.3 log @Update to 1.8.8: General Changes: Pycairo 1.8.8 requires cairo 1.8.8 (or later). Move from CVS to git. Add support for the waf build tool. Updated methods The PDF/PS/SVGSurface constructors now accept None as a filename. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.2 2009/05/13 12:56:47 obache Exp $ @ 1.2 log @Update pycairo to 1.8.4. Based on maintainer update request by PR 41063. While here, add commented out LICENSE (LGPL-2.1 or MPL-1.1). Overview of changes from pycairo 1.8.2 to pycairo 1.8.4 ======================================================= General Changes: Pycairo 1.8.4 requires cairo 1.8.4 (or later) and Python 2.6 Bug Fixes: 20674: Add get/set_extend for Gradient Patterns New Classes: cairo.ToyFontFace New Methods: Pattern.get_extend Pattern.set_extend ToyFontFace.get_family ToyFontFace.get_slant ToyFontFace.get_weight Deleted Methods: SurfacePattern.get_extend SurfacePattern.set_extend Other Changes: Threading for surfaces with stream functions has been reenabled. Documentation updates. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1 2008/11/18 12:46:52 drochner Exp $ d3 18 a20 18 --- cairo/pycairo-surface.c.orig 2009-03-03 11:11:20.000000000 +0000 +++ cairo/pycairo-surface.c @@@@ -123,7 +123,7 @@@@ _write_func (void *closure, const unsign { PyGILState_STATE gstate = PyGILState_Ensure(); 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() @@@@ -424,7 +424,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; d22 11 a32 2 if (!PyArg_ParseTuple(args, "Oiii|i:Surface.create_for_data", @@@@ -616,10 +616,10 @@@@ image_surface_buffer_getsegcount (Pycair d36 8 a43 8 - (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, @ 1.1 log @make this work with python-2.4 again @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- cairo/pycairo-surface.c.orig 2008-11-18 12:50:34.000000000 +0100 d5 1 a5 2 @@@@ -122,7 +122,7 @@@@ static cairo_status_t _write_func (void *closure, const unsigned char *data, unsigned int length) d7 1 d14 1 a14 1 @@@@ -392,7 +392,7 @@@@ image_surface_create_for_data (PyTypeObj d23 1 a23 1 @@@@ -570,10 +570,10 @@@@ image_surface_buffer_getsegcount (Pycair @