[98714] trunk/dports/python
blair at macports.org
blair at macports.org
Sat Oct 13 11:58:08 PDT 2012
Revision: 98714
http://trac.macports.org//changeset/98714
Author: blair at macports.org
Date: 2012-10-13 11:58:08 -0700 (Sat, 13 Oct 2012)
Log Message:
-----------
py-protobuf: new unified port to replace python-protobuf*.
Modified Paths:
--------------
trunk/dports/python/py-protobuf/Portfile
Added Paths:
-----------
trunk/dports/python/py-protobuf/
Property changes on: trunk/dports/python/py-protobuf
___________________________________________________________________
Added: svn:mergeinfo
+ /branches/mld-qt-481/dports/devel/protobuf-python27:92720,92813,92891,92963,93522,93556,93699,93743,93771-93773,93806,93817-93818,93856
Modified: trunk/dports/python/py-protobuf/Portfile
===================================================================
--- trunk/dports/devel/protobuf-python27/Portfile 2012-10-13 18:54:58 UTC (rev 98713)
+++ trunk/dports/python/py-protobuf/Portfile 2012-10-13 18:58:08 UTC (rev 98714)
@@ -1,11 +1,11 @@
# $Id$
PortSystem 1.0
-PortGroup python27 1.0
+PortGroup python 1.0
-name protobuf-python27
+name py-protobuf
version 2.4.1
-categories devel
+categories-append devel
maintainers blair
supported_archs noarch
license BSD
@@ -40,17 +40,21 @@
platforms darwin
-depends_lib port:protobuf-cpp \
- port:py27-distribute
+python.versions 24 25 26 27
-worksrcdir ${worksrcdir}/python
+if {$subport != $name} {
+ depends_lib port:protobuf-cpp \
+ port:py${python.version}-distribute
-build.env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
-build.cmd-append build_ext -I${prefix}/include
+ worksrcdir ${worksrcdir}/python
-destroot.env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
+ build.env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
+ build.cmd-append build_ext -I${prefix}/include
-test.run yes
-test.env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
-test.cmd "${prefix}/bin/python2.7 setup.py"
-test.target test
+ destroot.env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
+
+ test.run yes
+ test.env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
+ test.cmd "${python.bin} setup.py"
+ test.target test
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121013/02059471/attachment.html>
More information about the macports-changes
mailing list