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

Last change on this file was 148976, checked in by raimue@…, 14 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           geojson
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             1.3.1
12categories-append   gis
13platforms           darwin
14supported_archs     noarch
15license             BSD
16
17maintainers         petr openmaintainer
18
19description         Python bindings and utilities for GeoJSON
20
21long_description    \
22    This library implements all the GeoJSON objects described in The GeoJSON \
23    Format Specification. It provides functions encoding and decoding GeoJSON \
24    formatted data and is an implementation of the Python __geo_interface__ \
25    Specification.
26
27homepage            https://github.com/frewsxcv/python-geojson
28
29distname            ${_name}-${version}
30master_sites        pypi:${_n}/${_name}/
31
32checksums           md5     2131dfaf4546db43f64d9c98d443b48c \
33                    rmd160  e7a6622856f9418bced6ef0602e90a7d7a819ae2 \
34                    sha256  72541ca29b4b6bf93deb61b4719499c3c346f1a82c1c3edb31c6ae2fde1dec8e
35
36python.versions     27 34 35
37
38if {${name} ne ${subport}} {
39    depends_build-append    port:py${python.version}-setuptools
40
41    test.run        yes
42    if {${test.run}} {
43        depends_build-append    port:py${python.version}-nose \
44                                port:py${python.version}-coverage
45    }
46
47    # Adding documents
48    post-destroot {
49        set dest_doc ${destroot}${prefix}/share/doc/${subport}
50        xinstall -${dest_doc}
51        xinstall -m 755 -W ${worksrcpath} \
52            CHANGELOG.rst \
53            LICENSE.rst \
54            README.rst \
55                ${dest_doc}
56    }
57
58    livecheck.type  none
59} else {
60    livecheck.type  regex
61    livecheck.url   https://pypi.python.org/pypi/${_name}/json
62    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
63}
Note: See TracBrowser for help on using the repository browser.