Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jan 2009 06:28:28 GMT
From:      Keith Gaughan <keith.gaughan@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/130108: graphics/py-cairo: Unneeded dependency on math/py-numpy
Message-ID:  <200901020628.n026SSLP068098@www.freebsd.org>
Resent-Message-ID: <200901020630.n026U4kG015837@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901020628.n026SSLP068098>