Revision: 100383 https://trac.macports.org/changeset/100383 Author: jmr@macports.org Date: 2012-12-10 02:19:17 -0800 (Mon, 10 Dec 2012) Log Message: ----------- py-lightblue: fix stub, set license Modified Paths: -------------- trunk/dports/python/py-lightblue/Portfile Modified: trunk/dports/python/py-lightblue/Portfile =================================================================== --- trunk/dports/python/py-lightblue/Portfile 2012-12-10 10:12:07 UTC (rev 100382) +++ trunk/dports/python/py-lightblue/Portfile 2012-12-10 10:19:17 UTC (rev 100383) @@ -6,6 +6,7 @@ name py-lightblue version 0.4 +license GPL-3+ maintainers puffin.lb.shuttle.de:michael.klein openmaintainer description A cross-platform Python Bluetooth API long_description A cross-platform Python Bluetooth API for Mac OS X, \ @@ -23,47 +24,46 @@ rmd160 9eb520d354b3b95b8e324cf846a6cb5556a29056 python.versions 25 26 27 -python.default_version 27 if {${subport} != ${name}} { - depends_lib-append port:py${python.version}-pyobjc-cocoa -} + depends_lib-append port:py${python.version}-pyobjc-cocoa -patchfiles patch-deviceInquiryComplete_error_aborted-signature.diff - -extract.only lightblue-${version}.tar.gz - -if {${os.platform} == "darwin" && ${os.major} >= 10} { - - distfiles-append LightAquaBlue-framework-MacOS10.6.zip LightAquaBlue-python-MacOS10.6.zip - checksums-append LightAquaBlue-framework-MacOS10.6.zip \ - md5 1a46f98ec2ff688bb6d23df02e91c052 \ - sha1 f43accbcf4edf82553c12d3a809b03905a8777bf \ - rmd160 0efeb78018bccc1d458bcdddd08d9ee20e439e83 \ - LightAquaBlue-python-MacOS10.6.zip \ - md5 a5eb3152039033ab100f4b855bd79478 \ - sha1 220cafd2ee4f4cae46dd56454d02994c27c7eb4f \ - rmd160 08aa939afe0be496af521e3e249732ad978e1f8c - patchfiles-append patch-setup.py.diff - -# Extract LightAquaBlue-framework to replace existing version in tar archive - post-extract { - system "cd ${workpath}/${distname}/src/mac && rm -rf LightAquaBlue" - system "cd ${workpath}/${distname}/src/mac && unzip ${distpath}/LightAquaBlue-framework-MacOS10.6.zip" - system "cd ${workpath}/${distname}/src/mac && mv LightAquaBlue LightAquaBlue-xcode" - system "cd ${workpath}/${distname}/src/mac && unzip ${distpath}/LightAquaBlue-python-MacOS10.6.zip" + patchfiles patch-deviceInquiryComplete_error_aborted-signature.diff + + extract.only lightblue-${version}.tar.gz + + if {${os.platform} == "darwin" && ${os.major} >= 10} { + + distfiles-append LightAquaBlue-framework-MacOS10.6.zip LightAquaBlue-python-MacOS10.6.zip + checksums-append LightAquaBlue-framework-MacOS10.6.zip \ + md5 1a46f98ec2ff688bb6d23df02e91c052 \ + sha1 f43accbcf4edf82553c12d3a809b03905a8777bf \ + rmd160 0efeb78018bccc1d458bcdddd08d9ee20e439e83 \ + LightAquaBlue-python-MacOS10.6.zip \ + md5 a5eb3152039033ab100f4b855bd79478 \ + sha1 220cafd2ee4f4cae46dd56454d02994c27c7eb4f \ + rmd160 08aa939afe0be496af521e3e249732ad978e1f8c + patchfiles-append patch-setup.py.diff + + # Extract LightAquaBlue-framework to replace existing version in tar archive + post-extract { + system "cd ${workpath}/${distname}/src/mac && rm -rf LightAquaBlue" + system "cd ${workpath}/${distname}/src/mac && unzip ${distpath}/LightAquaBlue-framework-MacOS10.6.zip" + system "cd ${workpath}/${distname}/src/mac && mv LightAquaBlue LightAquaBlue-xcode" + system "cd ${workpath}/${distname}/src/mac && unzip ${distpath}/LightAquaBlue-python-MacOS10.6.zip" + } + + post-patch { + reinplace "s|/Library/Frameworks|${frameworks_dir}|g" \ + ${worksrcpath}/src/mac/LightAquaBlue/__init__.py + } } - + post-patch { reinplace "s|/Library/Frameworks|${frameworks_dir}|g" \ - ${worksrcpath}/src/mac/LightAquaBlue/__init__.py + ${worksrcpath}/setup.py \ + ${worksrcpath}/src/mac/_LightAquaBlue.py + reinplace "s|DSTROOT=/|DSTROOT=${destroot}|g" \ + ${worksrcpath}/setup.py } } - -post-patch { - reinplace "s|/Library/Frameworks|${frameworks_dir}|g" \ - ${worksrcpath}/setup.py \ - ${worksrcpath}/src/mac/_LightAquaBlue.py - reinplace "s|DSTROOT=/|DSTROOT=${destroot}|g" \ - ${worksrcpath}/setup.py -}
participants (1)
-
jmr@macports.org