[96171] trunk/dports/python

lightnin at macports.org lightnin at macports.org
Thu Aug 2 01:55:58 PDT 2012


Revision: 96171
          https://trac.macports.org/changeset/96171
Author:   lightnin at macports.org
Date:     2012-08-02 01:55:56 -0700 (Thu, 02 Aug 2012)
Log Message:
-----------
py*-vobject unified into python PortGroup.

Modified Paths:
--------------
    trunk/dports/python/py-vobject/Portfile

Removed Paths:
-------------
    trunk/dports/python/py25-vobject/
    trunk/dports/python/py26-vobject/
    trunk/dports/python/py27-vobject/

Modified: trunk/dports/python/py-vobject/Portfile
===================================================================
--- trunk/dports/python/py-vobject/Portfile	2012-08-02 08:13:17 UTC (rev 96170)
+++ trunk/dports/python/py-vobject/Portfile	2012-08-02 08:55:56 UTC (rev 96171)
@@ -2,7 +2,7 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python24 1.0
+PortGroup           python 1.0
 
 name                py-vobject
 license             Apache
@@ -10,6 +10,8 @@
 categories          python
 platforms           darwin
 maintainers         lightnin openmaintainer
+supported_archs     noarch
+
 description         Python package for parsing and generating vCard and \
                     vCalendar files.
 long_description    vObject is intended to be a full featured Python package \
@@ -24,10 +26,34 @@
                     sha1 97f1daf9d813a2b2128c2d39ca52bbbcc152fdfd \
                     rmd160 ca1b1f207b6b7d4418a401938656627e6404aacf
 
-depends_lib         port:py24-dateutil \
-                    port:py24-distribute
+python.versions     24 25 26 27
+python.default_version 27
 
-test.run            yes
-test.cmd            ${python.bin} test_vobject.py
-test.target
-test.env            PYTHONPATH=${worksrcpath}/build/lib
+if {${subport} != ${name}} {
+    depends_lib         port:py${python.version}-dateutil
+
+    test.run            yes
+    test.cmd            ${python.bin} test_vobject.py
+    test.target
+    test.env            PYTHONPATH=${worksrcpath}/build/lib
+
+    post-destroot   {
+        set docdir ${prefix}/share/doc/${subport}
+        xinstall -d ${destroot}${docdir}
+        xinstall -m 644 -W ${worksrcpath} \
+            ACKNOWLEDGEMENTS.txt \
+            LICENSE-2.0.txt \
+            PKG-INFO \
+            README.txt \
+            ${destroot}${docdir}
+
+        # This is only required for Python versions 2.4 and 2.5 as newer
+        # versions automatically create the "-2.x" variants...
+        if {${python.version} in [split "24 25"]} {
+            move ${destroot}${prefix}/bin/change_tz \
+                ${destroot}${prefix}/bin/change_tz-${python.branch}
+            move ${destroot}${prefix}/bin/ics_diff \
+                ${destroot}${prefix}/bin/ics_diff-${python.branch}
+        }
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120802/be783e65/attachment.html>


More information about the macports-changes mailing list