[121374] trunk/dports/python/py-stevedore

petr at macports.org petr at macports.org
Tue Jun 24 06:43:29 PDT 2014


Revision: 121374
          https://trac.macports.org/changeset/121374
Author:   petr at macports.org
Date:     2014-06-24 06:43:29 -0700 (Tue, 24 Jun 2014)
Log Message:
-----------
py-stevedore @0.8_1: update to @0.15, and some related changes
 * sources moved from GitHub to openstack, modified accordingly
 * modify livecheck to use PyPI
 * add py34 subport
 * add documentation

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

Removed Paths:
-------------
    trunk/dports/python/py-stevedore/files/

Modified: trunk/dports/python/py-stevedore/Portfile
===================================================================
--- trunk/dports/python/py-stevedore/Portfile	2014-06-24 13:36:43 UTC (rev 121373)
+++ trunk/dports/python/py-stevedore/Portfile	2014-06-24 13:43:29 UTC (rev 121374)
@@ -3,12 +3,12 @@
 
 PortSystem          1.0
 PortGroup           python 1.0
-PortGroup           github 1.0
 
-github.setup        dreamhost stevedore 0.8
+set _name           stevedore
+set _n              [string index ${_name} 0]
 
-name                py-${github.project}
-revision            1
+name                py-${_name}
+version             0.15
 categories-append   devel
 platforms           darwin
 maintainers         nomaintainer
@@ -18,14 +18,41 @@
 description         Manage dynamic plugins for Python applications
 long_description    ${description}
 
-checksums           rmd160  0b874cc0026c4d14540d75899ab9f8f95ff49b12 \
-                    sha256  3c37f41e2b883cdfd570eb2d18c4bc86fd48a4e58ddb108989018fdfdfe76146
+homepage            https://pypi.python.org/pypi/${_name}/${version}
 
-python.versions     25 26 27 31 32 33
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
+distname            ${_name}-${version}
 
+checksums           md5     437ee0a0168c78433b2b8faec0ae482d \
+                    rmd160  5822632176883c3b9cd7a5fd5fab3ec13ed9cdc9 \
+                    sha256  bec9269cbfa58de4f0849ec79bb7d54eeeed9df8b5fbfa1637fbc68062822847
+
+python.versions     25 26 27 31 32 33 34
+
 if {${name} ne ${subport}} {
     # uses pkg_resources for extensions
     depends_lib-append  port:py${python.version}-setuptools
-    patchfiles          setup.py.diff
+
+    if { ${python.version} <= 26 } {
+        depends_lib-append  port:py${python.version}-argparse
+    }
+
+    # Adding documentation
+    post-destroot {
+        set dest_doc ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d  ${dest_doc}
+        xinstall -m 755 -W ${worksrcpath} \
+            README.rst \
+            LICENSE \
+            announce.rst \
+            ChangeLog \
+            CONTRIBUTING.rst \
+                ${dest_doc}
+    }
+
     livecheck.type      none
+} else {
+    livecheck.type  regex
+    livecheck.url   [lindex ${master_sites} 0]
+    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140624/821f059c/attachment.html>


More information about the macports-changes mailing list