source: trunk/dports/python/py-couchdbkit/Portfile

Last change on this file was 148976, checked in by raimue@…, 18 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           couchdbkit
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             0.6.5
12categories-append   www databases
13license             MIT
14platforms           darwin
15supported_archs     noarch
16maintainers         blair openmaintainer
17
18description         Python library for working with CouchDB
19long_description    Couchdbkit provides you a full featured and easy client \
20                    to access and manage CouchDB.  It allow you to manage a \
21                    CouchDB server, databases, doc managements and view \
22                    access.  All objects mostly reflect python objects for \
23                    convenience.  Server and databases objects could be used \
24                    for example as easy as using a dict.
25
26homepage            http://couchdbkit.org/
27master_sites        pypi:${_n}/${_name}/
28distname            ${_name}-${version}
29
30checksums           md5    d5f6382665697b0f126f68a211c1a5a2 \
31                    sha1   64feff3bc6e47ff04d7efceeaad027036215d2c2 \
32                    rmd160 58f1fe17b32c3b307851b9f2701a987aab8d9849
33
34# Python >= 2.6 required, Python 3.x supported "soon"
35python.versions     26 27
36
37if {${name} ne ${subport}} {
38    depends_build-append    port:py${python.version}-setuptools
39    depends_lib-append      port:py${python.version}-restkit
40
41    # Adding documentation and examples
42    post-destroot {
43        set dest_doc ${destroot}${prefix}/share/doc/${subport}
44        xinstall -${dest_doc}
45        xinstall -m 755 -W ${worksrcpath} \
46            README.rst \
47            LICENSE \
48                ${dest_doc}
49    }
50
51    livecheck.type  none
52} else {
53    livecheck.type  regex
54    livecheck.url   [lindex ${master_sites} 0]
55    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
56}
Note: See TracBrowser for help on using the repository browser.