diff options
-rw-r--r-- | graphics/py-cairo/Makefile | 6 | ||||
-rw-r--r-- | graphics/py-cairo/patches/patch-aa | 22 |
2 files changed, 26 insertions, 2 deletions
diff --git a/graphics/py-cairo/Makefile b/graphics/py-cairo/Makefile index a414121bf33..f55c6b4a92e 100644 --- a/graphics/py-cairo/Makefile +++ b/graphics/py-cairo/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.3 2006/04/23 17:13:03 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2006/09/20 12:57:46 joerg Exp $ # DISTNAME= pycairo-1.0.2 PKGNAME= ${PYPKGPREFIX}-cairo-1.0.2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= graphics MASTER_SITES= http://cairographics.org/releases/ @@ -27,6 +27,8 @@ PY_PATCHPLIST= yes BUILDLINK_TRANSFORM+= rm:-std=c99 .endif +BUILDLINK_API_DEPENDS.cairo+= cairo>=1.2.0 + .include "../../lang/python/extension.mk" .include "../../math/py-Numeric/buildlink3.mk" .include "../../graphics/cairo/buildlink3.mk" diff --git a/graphics/py-cairo/patches/patch-aa b/graphics/py-cairo/patches/patch-aa new file mode 100644 index 00000000000..26195d882d5 --- /dev/null +++ b/graphics/py-cairo/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1 2006/09/20 12:57:46 joerg Exp $ + +--- cairo/pycairo-surface.c.orig 2005-09-28 14:35:09.000000000 +0000 ++++ cairo/pycairo-surface.c +@@ -595,7 +595,7 @@ pdf_surface_set_dpi (PycairoPDFSurface * + + if (!PyArg_ParseTuple(args, "dd:PDFSurface.set_dpi", &x_dpi, &y_dpi)) + return NULL; +- cairo_pdf_surface_set_dpi (o->surface, x_dpi, y_dpi); ++ cairo_surface_set_fallback_resolution (o->surface, x_dpi, y_dpi); + Py_RETURN_NONE; + } + +@@ -688,7 +688,7 @@ ps_surface_set_dpi (PycairoPSSurface *o, + + if (!PyArg_ParseTuple(args, "dd:PSSurface.set_dpi", &x_dpi, &y_dpi)) + return NULL; +- cairo_ps_surface_set_dpi (o->surface, x_dpi, y_dpi); ++ cairo_surface_set_fallback_resolution (o->surface, x_dpi, y_dpi); + Py_RETURN_NONE; + } + |