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

Last change on this file was 148976, checked in by raimue@…, 16 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: 1.9 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           pyshp
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             1.2.3
12categories-append   gis
13platforms           darwin
14supported_archs     noarch
15license             MIT
16maintainers         petr openmaintainer
17
18description         Python Shapefile Library
19
20long_description    PyShp library provides read and write support for the \
21                    ESRI shapefile format in pure Python. This format is a \
22                    popular Geographic Information System vector data format \
23                    created by ESRI. You can read and write shp, shx, and dbf \
24                    files with all types of geometry. Everything in the \
25                    public ESRI shapefile specification is implemented.
26
27homepage            http://code.google.com/${_n}/${_name}/
28
29distname            ${_name}-${version}
30master_sites        pypi:${_n}/${_name}
31
32checksums           md5     f857099a57f93830e0c72a31e9c506a8 \
33                    rmd160  47b64bca853f1d0e3ac5300e40cae588e3b57587 \
34                    sha256  e18cc19659dadc5ddaa891eb780a6958094da0cf105a1efe0f67e75b4fa1cdf9
35
36python.versions     27 34 35
37
38if {${name} ne ${subport}} {
39    depends_build-append    port:py${python.version}-setuptools
40
41    # Adding documentation
42    post-destroot {
43        set dest_doc ${destroot}${prefix}/share/doc/${subport}
44        xinstall -${dest_doc}
45        xinstall -m 755 -W ${worksrcpath} \
46            README.txt \
47                ${dest_doc}
48    }
49
50    livecheck.type  none
51} else {
52    livecheck.type  regex
53    livecheck.url   https://pypi.python.org/pypi/${_name}/json
54    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
55}
Note: See TracBrowser for help on using the repository browser.