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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | set _name geojson |
---|
8 | set _n [string index ${_name} 0] |
---|
9 | |
---|
10 | name py-${_name} |
---|
11 | version 1.0.6 |
---|
12 | categories-append gis |
---|
13 | platforms darwin |
---|
14 | supported_archs noarch |
---|
15 | license BSD |
---|
16 | |
---|
17 | maintainers bo.ingv.it:Peter.Danecek openmaintainer |
---|
18 | |
---|
19 | description Python bindings and utilities for GeoJSON |
---|
20 | |
---|
21 | long_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 | |
---|
27 | homepage https://github.com/frewsxcv/python-geojson |
---|
28 | |
---|
29 | distname ${_name}-${version} |
---|
30 | master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ |
---|
31 | |
---|
32 | checksums md5 49bd5fcff7d43d4c295a86c886a17b8f \ |
---|
33 | rmd160 7a77fbe4cd5fa31059514d6ab219d2bb687458b3 \ |
---|
34 | sha256 d91cd23401b922ba597afe1f3effabfdab6af3550708b4e0cd16ab26094861b0 |
---|
35 | |
---|
36 | # py34: dependencies is missing or needs update, respectively |
---|
37 | python.versions 26 27 33 34 |
---|
38 | |
---|
39 | if {${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 -d ${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 | } |
---|