[103036] trunk/dports/python

raimue at macports.org raimue at macports.org
Tue Feb 12 02:59:58 PST 2013


Revision: 103036
          https://trac.macports.org/changeset/103036
Author:   raimue at macports.org
Date:     2013-02-12 02:59:58 -0800 (Tue, 12 Feb 2013)
Log Message:
-----------
python/py*-pyusb, python/py*-pyusb-devel:
Unify ports, add license, supported_archs and update versions

Modified Paths:
--------------
    trunk/dports/python/py-pyusb/Portfile
    trunk/dports/python/py-pyusb/files/setup.py.diff
    trunk/dports/python/py-pyusb-devel/Portfile

Added Paths:
-----------
    trunk/dports/python/py-pyusb/
    trunk/dports/python/py-pyusb-devel/

Removed Paths:
-------------
    trunk/dports/python/py26-pyusb/
    trunk/dports/python/py26-pyusb-devel/

Modified: trunk/dports/python/py-pyusb/Portfile
===================================================================
--- trunk/dports/python/py26-pyusb/Portfile	2013-02-12 08:41:28 UTC (rev 103033)
+++ trunk/dports/python/py-pyusb/Portfile	2013-02-12 10:59:58 UTC (rev 103036)
@@ -1,37 +1,44 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
+PortGroup           python 1.0
 
-name                py26-pyusb
-version             0.4.2
+name                py-pyusb
+version             0.4.3
 categories-append   devel
+platforms           darwin
+license             BSD
 maintainers         nomaintainer
 description         Python library to provide easy USB device access
-long_description    ${description}
+long_description    The PyUSB module provides Python with easy access to \
+                    the host machine's Universal Serial Bus (USB) system
 
-platforms           darwin
-
-homepage            http://pyusb.berlios.de/
+homepage            http://pyusb.sourceforge.net/
 master_sites        sourceforge:pyusb
 distname            pyusb-${version}
 
-checksums           md5     5667a00af1ac0d5062103b4512e227f8 \
-                    sha1    0adfc60c2e24ecaf1b7caca7d57ff50f5e7a4de3 \
-                    rmd160  4ff88079402ce467b68f943ef8ed1a0901f5c822
+checksums           md5     a1a43bc6407caccbc22073c56439aa06 \
+                    sha1    5a6729169e320e9dfb19c6af461eca6d45242787 \
+                    rmd160  803794e073dd0f052ec9c31f0d3210751403c85b
 
-depends_lib-append  port:libusb-compat
+python.versions 25 26 27
 
-patchfiles          setup.py.diff
-post-patch {
-    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
-}
+if {${name} != ${subport}} {
+    conflicts           py${python.version}-pyusb-devel
 
-post-destroot {
-   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-   xinstall -m 644 -W ${worksrcpath} README license.txt \
-      ${destroot}${prefix}/share/doc/${name}
-   xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
-   eval file copy [glob ${worksrcpath}/samples/*] \
-      ${destroot}${prefix}/share/examples/${name}
+    depends_lib-append  path:lib/pkgconfig/libusb-1.0.pc:libusb
+
+    patchfiles          setup.py.diff
+    post-patch {
+        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
+    }
+
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} README LICENSE \
+            ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
+        eval file copy [glob ${worksrcpath}/samples/*] \
+            ${destroot}${prefix}/share/examples/${subport}
+    }
 }

Modified: trunk/dports/python/py-pyusb/files/setup.py.diff
===================================================================
--- trunk/dports/python/py26-pyusb/files/setup.py.diff	2013-02-12 08:41:28 UTC (rev 103033)
+++ trunk/dports/python/py-pyusb/files/setup.py.diff	2013-02-12 10:59:58 UTC (rev 103036)
@@ -6,7 +6,7 @@
                         'IOKit',
 -                       '-L/sw/lib',
 -                       '-L/usr/local/lib']
--    extra_compile_args = ['-I/sw/include','-I/usr/local/lib']
+-    extra_compile_args = ['-I/sw/include','-I/usr/local/lib', '-l/opt/local/lib']
 +                       '-L__PREFIX__/lib']
 +    extra_compile_args = ['-I__PREFIX__/include']
  # Juha Torkkel has reported problems compiling on freebsd

Modified: trunk/dports/python/py-pyusb-devel/Portfile
===================================================================
--- trunk/dports/python/py26-pyusb-devel/Portfile	2013-02-12 08:41:28 UTC (rev 103033)
+++ trunk/dports/python/py-pyusb-devel/Portfile	2013-02-12 10:59:58 UTC (rev 103036)
@@ -1,33 +1,38 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
-name                py26-pyusb-devel
-license             BSD
-conflicts           py26-pyusb
-version             1.0.0-a1
+PortGroup           python 1.0
+
+name                py-pyusb-devel
+version             1.0.0a3
 epoch               1
 categories-append   devel
+platforms           darwin
+supported_archs     noarch
+license             BSD
 maintainers         nomaintainer
 description         Python library to provide easy USB device access
 long_description    The PyUSB module provides Python with easy access to \
                     the host machine's Universal Serial Bus (USB) system
 
-platforms           darwin
-
-homepage            http://pyusb.wiki.sourceforge.net
+homepage            http://pyusb.sourceforge.net/
 master_sites        sourceforge:pyusb
 distname            pyusb-${version}
 
-checksums           md5 8a995953af70bf281a6e162f3e0d8df8 \
-                    sha1 bfb9a3489c434019fc31be761d951de2cf4d51cd \
-                    rmd160 e0d3f8d72c109c9d51593a9e5244efcad5073ef7
+checksums           md5     e83e12621149a0d76410aa5cec35ad22 \
+                    sha1    fee482852c3c5c8aa6d88b2ebdeedd60dd1b1dd5 \
+                    rmd160  18a63b934a5eadcd1338da3994ab1694f874aebe
 
-depends_lib-append  path:lib/pkgconfig/libusb-1.0.pc:libusb
+python.versions 25 26 27
 
-post-destroot {
-   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-   xinstall -m 644 -W ${worksrcpath}/docs tutorial.txt \
-      ${destroot}${prefix}/share/doc/${name}
+if {${name} != ${subport}} {
+    conflicts           py${python.version}-pyusb
+
+    depends_run-append  path:lib/pkgconfig/libusb-1.0.pc:libusb
+
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} README.rst ReleaseNotes.rst LICENSE docs/tutorial.rst \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130212/c15942ab/attachment.html>


More information about the macports-changes mailing list