From db@db.net  Fri Oct  6 22:14:50 2006
Return-Path: <db@db.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C796916A412
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  6 Oct 2006 22:14:50 +0000 (UTC)
	(envelope-from db@db.net)
Received: from diana.db.net (heceta.db.net [142.46.199.182])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8361C43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  6 Oct 2006 22:14:50 +0000 (GMT)
	(envelope-from db@db.net)
Received: from db by diana.db.net with local (Exim 4.60 (FreeBSD))
	(envelope-from <db@db.net>)
	id 1GVxxy-0007zr-3j
	for FreeBSD-gnats-submit@freebsd.org; Fri, 06 Oct 2006 18:14:50 -0400
Message-Id: <E1GVxxy-0007zr-3j@diana.db.net>
Date: Fri, 06 Oct 2006 18:14:50 -0400
From: Diane Bruce <db@db.net>
Sender: Diane Bruce <db@diana.db.net>
Reply-To: Diane Bruce <db@db.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: py-scipy soley depends on atlas, when it does not have to
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         104077
>Category:       ports
>Synopsis:       py-scipy soley depends on atlas, when it does not have to
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    xride
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 06 22:20:19 GMT 2006
>Closed-Date:    Sat Oct 07 17:32:08 GMT 2006
>Last-Modified:  Sat Oct 07 17:32:08 GMT 2006
>Originator:     Diane Bruce
>Release:        FreeBSD 4.11-RELEASE-p9 i386
>Organization:
Very unorganised
>Environment:
System: FreeBSD heceta.db.net 4.11-RELEASE-p9 FreeBSD 4.11-RELEASE-p9 #4: Tue May 17 16:07:52 EDT 2005 db@heceta.db.net:/usr/src/sys/compile/HECETA i386


>Description:
py-scipy depends on atlas when it could also be built with lapack/blas instead
this diff to the Makefile in /usr/ports/science/py-scipy adds an OPTION
knob to allow selection at compile time.

Note that the pending PR submitted by Li-Lun Wang is not approved at this time.
I have suggested it be added as py-scipy-devel for the time being,
as it still has some bugs as it is not ready for prime time.

>How-To-Repeat:
>Fix:


diff -ur ./Makefile /home/db/py-scipy/Makefile
--- ./Makefile	Mon Sep 11 16:06:25 2006
+++ /home/db/py-scipy/Makefile	Fri Oct  6 18:05:47 2006
@@ -8,12 +8,13 @@
 
 PORTNAME=	scipy
 PORTVERSION=	0.3.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	science python
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	scipy
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	SciPy_complete-${PORTVERSION}
+LATEST_LINK=	py-${PORTNAME}
 
 MAINTAINER=	db@db.net
 COMMENT=	Scientific tools for Python
@@ -22,11 +23,11 @@
 		${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft \
 		f2py:${PORTSDIR}/lang/f2py \
 		${PYTHON_SITELIBDIR}/wx/__init__.py:${PORTSDIR}/x11-toolkits/py-wxPython24
-LIB_DEPENDS=	fftw.2:${PORTSDIR}/math/fftw \
-		atlas.1:${PORTSDIR}/math/atlas
+LIB_DEPENDS=	fftw.2:${PORTSDIR}/math/fftw
 
 USE_PYTHON=	2.3+
 USE_PYDISTUTILS=	yes
+OPTIONS=	ATLAS "Use optimized blas library" OFF
 
 post-patch:
 	@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
@@ -34,8 +35,15 @@
 
 .include <bsd.port.pre.mk>
 
+.if defined(WITH_ATLAS)
+LIB_DEPENDS+=	atlas.1:${PORTSDIR}/math/atlas
 .if !exists(${LOCALBASE}/lib/libalapack.a)
 IGNORE=	Atlas needs to be built with WITH_STATICLIB for scipy to function properly
+.endif
+.endif
+.if defined(WITHOUT_ATLAS)
+LIB_DEPENDS+=	lapack.3:${PORTSDIR}/math/lapack \
+		blas.1:${PORTSDIR}/math/blas	
 .endif
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->xride 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Oct 6 22:22:38 UTC 2006 
Responsible-Changed-Why:  
xride@ wants his PRs 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/104077: commit references a PR
Date: Sat,  7 Oct 2006 17:16:52 +0000 (UTC)

 xride       2006-10-07 17:16:43 UTC
 
   FreeBSD ports repository
 
   Modified files:
     science/py-scipy     Makefile 
   Log:
   depends on atlas when it could also be built with lapack/blas instead
   this diff adds an OPTION knob to allow selection at compile time.
   
   PR:             104077
   Submitted by:   maintainer
   Approved by:    tmclaugh (mentor)
   
   Revision  Changes    Path
   1.8       +9 -3      ports/science/py-scipy/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"
 
State-Changed-From-To: open->closed 
State-Changed-By: xride 
State-Changed-When: Sat Oct 7 17:31:10 UTC 2006 
State-Changed-Why:  
Committed with minor changes, Thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104077 
>Unformatted:
