Ticket #43052: Portfile

File Portfile, 2.1 KB (added by petrrr, 10 years ago)

updated Portfile for python/py-geojson

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$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           geojson
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             1.0.6
12categories-append   gis
13platforms           darwin
14supported_archs     noarch
15license             BSD
16
17maintainers         bo.ingv.it:Peter.Danecek 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        https://pypi.python.org/packages/source/${_n}/${_name}/
31
32checksums           md5     49bd5fcff7d43d4c295a86c886a17b8f \
33                    rmd160  7a77fbe4cd5fa31059514d6ab219d2bb687458b3 \
34                    sha256  d91cd23401b922ba597afe1f3effabfdab6af3550708b4e0cd16ab26094861b0
35
36# py34: dependencies is missing or needs update, respectively
37python.versions     26 27 33 34
38
39if {${name} ne ${subport}} {
40    depends_build-append    port:py${python.version}-setuptools
41
42    patchfiles      patch-setup.py.diff
43
44    test.run        yes
45    if {${test.run}} {
46        depends_build-append    port:py${python.version}-nose \
47                                port:py${python.version}-coverage
48    }
49
50    # Adding documents
51    post-destroot {
52        set dest_doc ${destroot}${prefix}/share/doc/${subport}
53        xinstall -${dest_doc}
54        xinstall -m 755 -W ${worksrcpath} \
55            CHANGELOG.rst \
56            LICENSE.rst \
57            README.rst \
58                ${dest_doc}
59    }
60
61    livecheck.type  none
62} else {
63    livecheck.type  regex
64    livecheck.url   [lindex ${master_sites} 0]
65    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
66}