[84311] trunk/dports/python
jmr at macports.org
jmr at macports.org
Wed Sep 21 23:48:42 PDT 2011
Revision: 84311
http://trac.macports.org/changeset/84311
Author: jmr at macports.org
Date: 2011-09-21 23:48:36 -0700 (Wed, 21 Sep 2011)
Log Message:
-----------
New port: py26-lightblue, a cross-platform Python Bluetooth API (#27033)
Added Paths:
-----------
trunk/dports/python/py26-lightblue/
trunk/dports/python/py26-lightblue/Portfile
trunk/dports/python/py26-lightblue/files/
trunk/dports/python/py26-lightblue/files/patch-deviceInquiryComplete_error_aborted-signature.diff
trunk/dports/python/py26-lightblue/files/patch-setup.py.diff
Added: trunk/dports/python/py26-lightblue/Portfile
===================================================================
--- trunk/dports/python/py26-lightblue/Portfile (rev 0)
+++ trunk/dports/python/py26-lightblue/Portfile 2011-09-22 06:48:36 UTC (rev 84311)
@@ -0,0 +1,64 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python26 1.0
+
+name py26-lightblue
+version 0.4
+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, \
+ GNU/Linux and Python For Series 60. Provides simple device \
+ and service discovery, RFCOMM sockets, L2CAP client \
+ sockets, OBEX file transfer, service advertising, and \
+ access to local device information.
+platforms darwin
+homepage http://lightblue.sourceforge.net/
+master_sites sourceforge:lightblue
+distname lightblue-${version}
+checksums ${distname}${extract.suffix} \
+ md5 2f2bf66faa4bf1a79eb28a47584077b7 \
+ sha1 78331a3c1640f0e351f71774b576fef1d9d3951d \
+ rmd160 9eb520d354b3b95b8e324cf846a6cb5556a29056
+
+depends_lib port:py26-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"
+ }
+
+ 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}/setup.py \
+ ${worksrcpath}/src/mac/_LightAquaBlue.py
+ reinplace "s|DSTROOT=/|DSTROOT=${destroot}|g" \
+ ${worksrcpath}/setup.py
+}
Property changes on: trunk/dports/python/py26-lightblue/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py26-lightblue/files/patch-deviceInquiryComplete_error_aborted-signature.diff
===================================================================
--- trunk/dports/python/py26-lightblue/files/patch-deviceInquiryComplete_error_aborted-signature.diff (rev 0)
+++ trunk/dports/python/py26-lightblue/files/patch-deviceInquiryComplete_error_aborted-signature.diff 2011-09-22 06:48:36 UTC (rev 84311)
@@ -0,0 +1,11 @@
+--- src/mac/_lightblue.py.orig 2010-10-27 21:33:10.000000000 +0200
++++ src/mac/_lightblue.py 2010-10-27 21:33:15.000000000 +0200
+@@ -465,7 +465,7 @@
+ if self.cb_completed:
+ self.cb_completed(err, aborted)
+ deviceInquiryComplete_error_aborted_ = objc.selector(
+- deviceInquiryComplete_error_aborted_, signature="v@:@iB")
++ deviceInquiryComplete_error_aborted_, signature="v@:@iZ")
+
+ # - (void)deviceInquiryStarted:(IOBluetoothDeviceInquiry*)sender;
+ def deviceInquiryStarted_(self, inquiry):
Added: trunk/dports/python/py26-lightblue/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py26-lightblue/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py26-lightblue/files/patch-setup.py.diff 2011-09-22 06:48:36 UTC (rev 84311)
@@ -0,0 +1,21 @@
+--- setup.py.orig 2011-02-25 12:29:21.000000000 +0800
++++ setup.py 2011-02-25 13:28:06.000000000 +0800
+@@ -39,8 +39,9 @@
+ description="Cross-platform Python Bluetooth library for Mac OS X, GNU/Linux and Python for Series 60.",
+ long_description="LightBlue is a cross-platform Python Bluetooth library for Mac OS X, GNU/Linux and Python for Series 60. It provides support for device and service discovery (with and without end-user GUIs), a standard socket interface for RFCOMM sockets, sending and receiving of files over OBEX, advertising of RFCOMM and OBEX services, and access to local device information.",
+ license="GPL",
+- packages=["lightblue"],
+- package_dir={"lightblue":getpackagedir()},
++ packages=["lightblue","LightAquaBlue"],
++ package_dir={"lightblue":getpackagedir(), "LightAquaBlue":"%s/LightAquaBlue" % getpackagedir()},
++ package_data={"lightblue":[ ], "LightAquaBlue":["LightAquaBlue.bridgesupport"]},
+ ext_modules=getextensions(),
+ classifiers = [ "Development Status :: 3 - Alpha",
+ "Intended Audience :: Developers",
+@@ -62,5 +63,5 @@
+ if MAC:
+ if "install" in sys.argv:
+ import os
+- os.chdir("src/mac/LightAquaBlue")
++ os.chdir("src/mac/LightAquaBlue-xcode")
+ os.system("xcodebuild install -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110921/cd8eba26/attachment.html>
More information about the macports-changes
mailing list