[67635] trunk/dports/python/py26-pyusb
jmr at macports.org
jmr at macports.org
Sat May 15 03:22:41 PDT 2010
Revision: 67635
http://trac.macports.org/changeset/67635
Author: jmr at macports.org
Date: 2010-05-15 03:22:36 -0700 (Sat, 15 May 2010)
Log Message:
-----------
py26-pyusb: use correct include and link flags (#24891)
Modified Paths:
--------------
trunk/dports/python/py26-pyusb/Portfile
Added Paths:
-----------
trunk/dports/python/py26-pyusb/files/
trunk/dports/python/py26-pyusb/files/setup.py.diff
Modified: trunk/dports/python/py26-pyusb/Portfile
===================================================================
--- trunk/dports/python/py26-pyusb/Portfile 2010-05-15 09:56:12 UTC (rev 67634)
+++ trunk/dports/python/py26-pyusb/Portfile 2010-05-15 10:22:36 UTC (rev 67635)
@@ -2,6 +2,7 @@
PortSystem 1.0
PortGroup python26 1.0
+
name py26-pyusb
version 0.4.2
categories-append devel
@@ -21,6 +22,11 @@
depends_lib-append port:libusb-compat
+patchfiles setup.py.diff
+post-patch {
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
+}
+
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} README license.txt \
@@ -29,4 +35,3 @@
eval file copy [glob ${worksrcpath}/samples/*] \
${destroot}${prefix}/share/examples/${name}
}
-
Added: trunk/dports/python/py26-pyusb/files/setup.py.diff
===================================================================
--- trunk/dports/python/py26-pyusb/files/setup.py.diff (rev 0)
+++ trunk/dports/python/py26-pyusb/files/setup.py.diff 2010-05-15 10:22:36 UTC (rev 67635)
@@ -0,0 +1,14 @@
+--- setup.py.orig 2009-06-13 03:15:47.000000000 +1000
++++ setup.py 2010-05-15 20:04:38.000000000 +1000
+@@ -34,9 +34,8 @@
+ 'CoreFoundation',
+ '-framework',
+ 'IOKit',
+- '-L/sw/lib',
+- '-L/usr/local/lib']
+- extra_compile_args = ['-I/sw/include','-I/usr/local/lib']
++ '-L__PREFIX__/lib']
++ extra_compile_args = ['-I__PREFIX__/lib']
+ # Juha Torkkel has reported problems compiling on freebsd
+ # when libusb is in /usr/local tree. I don't know on freebsd, but
+ # on Linux the paths to usr/local are in $PATH.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100515/81c704e3/attachment.html>
More information about the macports-changes
mailing list