From nobody@FreeBSD.org  Fri Jan  2 06:28:28 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6A5991065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Jan 2009 06:28:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 568778FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Jan 2009 06:28:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n026SS23068099
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 2 Jan 2009 06:28:28 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n026SSLP068098;
	Fri, 2 Jan 2009 06:28:28 GMT
	(envelope-from nobody)
Message-Id: <200901020628.n026SSLP068098@www.freebsd.org>
Date: Fri, 2 Jan 2009 06:28:28 GMT
From: Keith Gaughan <keith.gaughan@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: graphics/py-cairo: Unneeded dependency on math/py-numpy
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         130108
>Category:       ports
>Synopsis:       graphics/py-cairo: Unneeded dependency on math/py-numpy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 02 06:30:04 UTC 2009
>Closed-Date:    Fri Jan 02 20:12:45 UTC 2009
>Last-Modified:  Fri Jan  2 20:20:05 UTC 2009
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jan 2 06:30:16 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130108 
State-Changed-From-To: open->closed 
State-Changed-By: mezz 
State-Changed-When: Fri Jan 2 20:12:31 UTC 2009 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130108 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/130108: commit references a PR
Date: Fri,  2 Jan 2009 20:12:22 +0000 (UTC)

 mezz        2009-01-02 20:12:10 UTC
 
   FreeBSD ports repository
 
   Modified files:
     graphics/py-cairo    Makefile 
   Log:
   Remove PYNUMPY dependency, it's actually complete remove but only left in
   the test scripts to show how to get py-cairo works with py-numpy. I should
   have check more in tarball rather than ChangeLog. Bump the PORTREVISION.
   
   PR:             ports/130108
   Submitted by:   Keith Gaughan <keith.gaughan@gmail.com>
   
   Revision  Changes    Path
   1.23      +1 -3      ports/graphics/py-cairo/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
