[102148] trunk/dports/python

jmr at macports.org jmr at macports.org
Mon Jan 28 08:43:09 PST 2013


Revision: 102148
          https://trac.macports.org/changeset/102148
Author:   jmr at macports.org
Date:     2013-01-28 08:43:09 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
py*-clientform: unify, license, noarch

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

Removed Paths:
-------------
    trunk/dports/python/py25-clientform/
    trunk/dports/python/py26-clientform/

Modified: trunk/dports/python/py-clientform/Portfile
===================================================================
--- trunk/dports/python/py-clientform/Portfile	2013-01-28 16:28:49 UTC (rev 102147)
+++ trunk/dports/python/py-clientform/Portfile	2013-01-28 16:43:09 UTC (rev 102148)
@@ -2,13 +2,15 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name                py-clientform
 version             0.2.9
 categories          python www
+license             {BSD ZPL-2.1}
 platforms           darwin
-maintainers         openmaintainer akitada
+supported_archs     noarch
+maintainers         akitada krischik openmaintainer
 description         python module for handling HTML forms
 long_description    ClientForm is a Python module for handling HTML forms \
                     on the client side, useful for parsing HTML forms, \
@@ -22,17 +24,21 @@
                     sha1 ab07cf5bc293ffa1676bb7f4c5c756cb2907d782 \
                     rmd160 f82975f171ef3c673d78fa08f7ade3205a0cc87a
 
-depends_build       port:py24-distribute
+python.versions     24 25 26
 
-test.run            yes
-test.cmd            ${python.bin}
-test.target         test.py
+if {$subport != $name} {
+    depends_build       port:py${python.version}-distribute
 
-post-destroot {
-    foreach f [glob -directory ${worksrcpath}/ *.txt *.html] {
-        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
+    test.run            yes
+    test.cmd            ${python.bin}
+    test.target         test.py
+
+    post-destroot {
+        foreach f [glob -directory ${worksrcpath}/ *.txt *.html] {
+            copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
+        }
+        foreach f [glob -directory ${worksrcpath}/examples *] {
+            copy $f ${destroot}${prefix}/share/doc/${subport}/examples/[file tail $f]
+        }
     }
-    foreach f [glob -directory ${worksrcpath}/examples *] {
-        copy $f ${destroot}${prefix}/share/doc/${name}/examples/[file tail $f]
-    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://localhost.localdomain/pipermail/macports-changes/attachments/20130128/754bc15d/attachment.html>


More information about the macports-changes mailing list