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

Last change on this file was 154177, checked in by vince@…, 13 months ago

py-spatialite: get rid of obsolete API “amalgamation”

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 154177 2016-10-23 15:21:28Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           github 1.0
7
8github.setup        lokkju pyspatialite 3.0.1-alpha-0
9name                py-spatialite
10version             3.0.1
11revision            2
12
13# pyspatialite comes in several flavors according the spatialite API it's going to work with
14set spatialite-compat "-spatialite.2.3.1"
15
16license             BSD
17maintainers         nomaintainer
18
19description         Python interface to SQLite 3 and Spatialite
20long_description \
21    pyspatialite is an interface to the SQLite 3.x embedded relational database \
22    engine with spatialite extensions. It is almost fully compliant with the Python \
23    database API version 2.0 also exposes the unique features of SQLite and \
24    spatialite.
25
26platforms           darwin
27
28homepage            https://pypi.python.org/pypi/pyspatialite
29
30checksums           md5     b006a6fdc23a26400ea5b0d1ca6ab471 \
31                    sha1    e9f60f6a46b6e523ddcf94fd7ec7c113985246fc \
32                    rmd160  b6f7ff630e35cf0b0dbdd81b834d36c5fe162f91
33
34# have to check if it works with 3.x
35python.versions     27
36
37if {${name} ne ${subport}} {
38    depends_build-append \
39                    port:py${python.version}-setuptools
40
41    depends_lib-append \
42                    port:spatialite \
43                    port:geos \
44                    port:proj
45
46    patchfiles      patch-setup_py.diff \
47                    patch-connection_h.diff
48
49    post-patch {
50        reinplace -locale C "s|%%PREFIX%%|${prefix}|" ${worksrcpath}/setup.py
51    }
52
53    post-destroot {
54         xinstall -d ${destroot}${python.prefix}/share/doc/${subport}
55         file copy ${worksrcpath}/doc ${destroot}${python.prefix}/share/doc/${subport}
56         file copy ${worksrcpath}/LICENSE ${destroot}${python.prefix}/share/doc/${subport}
57         file delete -force ${destroot}${python.prefix}/pyspatialite-doc
58    }
59}
60
61livecheck.url       [lindex ${master_sites} 0]
62livecheck.regex     "pyspatialite-(\\d+(?:\\.\\d+)*)-spatialite.2.3.1${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.