[123646] trunk/dports/python/py-couchdbkit/Portfile

petr at macports.org petr at macports.org
Mon Aug 11 14:34:49 PDT 2014


Revision: 123646
          https://trac.macports.org/changeset/123646
Author:   petr at macports.org
Date:     2014-08-11 14:34:49 -0700 (Mon, 11 Aug 2014)
Log Message:
-----------
py-couchdbkit @0.2.1: update to 0.6.5, cleanup, correct dependencies, closed #38898, #25132

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

Modified: trunk/dports/python/py-couchdbkit/Portfile
===================================================================
--- trunk/dports/python/py-couchdbkit/Portfile	2014-08-11 21:13:13 UTC (rev 123645)
+++ trunk/dports/python/py-couchdbkit/Portfile	2014-08-11 21:34:49 UTC (rev 123646)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem          1.0
@@ -3,10 +4,15 @@
 PortGroup           python 1.0
 
-name                py-couchdbkit
-version             0.2.1
-categories          python www
+set _name           couchdbkit
+set _n              [string index ${_name} 0]
+
+name                py-${_name}
+version             0.6.5
+categories-append   www databases
+license             MIT
 platforms           darwin
+supported_archs     noarch
 maintainers         blair openmaintainer
-homepage            http://couchdbkit.org/
+
 description         Python library for working with CouchDB
 long_description    Couchdbkit provides you a full featured and easy client \
@@ -17,24 +23,34 @@
                     convenience.  Server and databases objects could be used \
                     for example as easy as using a dict.
 
-master_sites        https://pypi.python.org/packages/source/c/couchdbkit
-distname            couchdbkit-${version}
-checksums           md5 76f5a90bfc7b91f65079e76edcd54c5b \
-                    sha1 df1ef7a0836d4f4988e36bd268bb32c6acd38c0e \
-                    rmd160 bc80ddb3eb02c16b9b9cc5c8b810d61616f4d382
+homepage            http://couchdbkit.org/
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
+distname            ${_name}-${version}
 
-python.versions     25 26
+checksums           md5    d5f6382665697b0f126f68a211c1a5a2 \
+                    sha1   64feff3bc6e47ff04d7efceeaad027036215d2c2 \
+                    rmd160 58f1fe17b32c3b307851b9f2701a987aab8d9849
 
+# Python >= 2.6 required, Python 3.x supported "soon"
+python.versions     26 27
+
 if {${name} ne ${subport}} {
-    depends_build       port:py${python.version}-setuptools
-    depends_lib-append  port:py${python.version}-anyjson
+    depends_build-append    port:py${python.version}-setuptools
+    depends_lib-append      port:py${python.version}-restkit
 
+    # Adding documentation and examples
     post-destroot {
-        delete ${destroot}${python.pkgd}/tests
+        set dest_doc ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d  ${dest_doc}
+        xinstall -m 755 -W ${worksrcpath} \
+            README.rst \
+            LICENSE \
+                ${dest_doc}
     }
-    livecheck.type      none
+
+    livecheck.type  none
 } else {
-    livecheck.type      regex
-    livecheck.url       https://pypi.python.org/pypi/couchdbkit
-    livecheck.regex     {couchdbkit ([0-9]+\.[0-9]+(?:\.[0-9]+)?)}
+    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/20140811/d0f3ad4b/attachment.html>


More information about the macports-changes mailing list