ports/105641: [PATCH] lang/f2py: [remove version from f2py binary]

Diane Bruce db at db.net
Sat Nov 18 08:00:43 UTC 2006


>Number:         105641
>Category:       ports
>Synopsis:       [PATCH] lang/f2py: [remove version from f2py binary]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 18 08:00:37 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Diane Bruce
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
none
>Environment:
System: FreeBSD diana.db.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sat Oct 14 14:44:56 MDT 2006
>Description:
[DESCRIBE CHANGES]

lang/f2py will produce /bin/f2py2.4 if USE_PYTHON= 2.4 is used,
this happens when f2py is compiled as a dependancy i.e. of py-scipy03
This results in f2py being named /usr/local/bin/f2py2.4 instead of bin/f2py
This then breaks the plist for f2py
The patch given fixes this behaviour.

Added file(s):
- files/patch-setup.py

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- f2py-2.45.241.1926_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/lang/f2py/Makefile /usr/home/db/f2py/Makefile
--- /usr/ports/lang/f2py/Makefile	Fri Nov 17 21:53:47 2006
+++ /usr/home/db/f2py/Makefile	Fri Nov 17 21:46:38 2006
@@ -8,6 +8,7 @@
 
 PORTNAME=	f2py
 PORTVERSION=	2.45.241.1926
+PORTREVISION=	1
 CATEGORIES=	lang python
 MASTER_SITES=	http://cens.ioc.ee/projects/f2py2e/2.x/
 DISTNAME=	${PORTNAME:U}-${PORTVERSION:R}_${PORTVERSION:E}
diff -ruN --exclude=CVS /usr/ports/lang/f2py/files/patch-setup.py /usr/home/db/f2py/files/patch-setup.py
--- /usr/ports/lang/f2py/files/patch-setup.py	Wed Dec 31 17:00:00 1969
+++ /usr/home/db/f2py/files/patch-setup.py	Thu Nov 16 16:49:16 2006
@@ -0,0 +1,11 @@
+--- setup.py.orig	Sun Jan 30 12:22:14 2005
++++ setup.py	Thu Nov 16 18:46:25 2006
+@@ -40,7 +40,7 @@
+ f2py2e.main()
+ '''%(os.path.basename(sys.executable))
+ 
+-f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:]
++f2py_exe = 'f2py'
+ if f2py_exe[-4:]=='.exe':
+     f2py_exe = f2py_exe[:-4] + '.py'
+ if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py':
--- f2py-2.45.241.1926_1.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list