ports/130108: graphics/py-cairo: Unneeded dependency on math/py-numpy

Keith Gaughan keith.gaughan at gmail.com
Fri Jan 2 06:30:05 UTC 2009


>Number:         130108
>Category:       ports
>Synopsis:       graphics/py-cairo: Unneeded dependency on math/py-numpy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 02 06:30:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Keith Gaughan
>Release:        FreeBSD 7.0
>Organization:
>Environment:
FreeBSD talisra.talideon.com 7.0-RELEASE-p7 FreeBSD 7.0-RELEASE-p7 #0: Sun Dec 21 12:33:45 UTC 2008     root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
PR ports/130031 requested that the dependency on math/py-numeric be replaced with a dependency on math/py-numpy because PyCairo 1.4.0 removed Numeric Python support. However, that change <http://url.ie/11fl> didn't introduce a dependency on NumPy; all it did was remove some needless cruft from the bindings. All that cairo.ImageSurface.create_for_data() requires is an object that can be flattened by PyObject_AsWriteBuffer() such as an instance of array.array, a NumPy array of some kind, &c. This is demonstrated by the sample files within the distribution's test directory.

It's a good idea to commit this change as math/py-numpy pulls in quite a few rather large dependencies of its own that take a long time to build.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile	2009-01-01 22:44:39.000000000 +0000
+++ Makefile.new	2009-01-02 06:22:08.000000000 +0000
@@ -8,7 +8,7 @@
 
 PORTNAME=	cairo
 PORTVERSION=	1.6.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics python
 MASTER_SITES=	http://cairographics.org/releases/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,9 +17,7 @@
 MAINTAINER=	gnome at FreeBSD.org
 COMMENT=	Python bindings for Cairo
 
-BUILD_DEPENDS=	${PYNUMPY}
 LIB_DEPENDS=	cairo.2:${PORTSDIR}/graphics/cairo
-RUN_DEPENDS=	${PYNUMPY}
 
 USE_PYTHON=	yes
 USE_GMAKE=	yes


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list