# -*- 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
# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-geoalchemy
version             0.7.2
revision            0
categories-append   databases
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     25 26 27

maintainers         icoost.com:jls openmaintainer

description         Python SQL ORM Geospatial

long_description    \
    GeoAlchemy is an extension of SQLAlchemy. It provides \
    support for Geospatial data types at the ORM layer using SQLAlchemy. It \
    aims to support spatial operations and relations specified by the Open \
    Geospatial Consortium (OGC). The project started under Google Summer of \
    Code Program under the mentorship of Mark Ramm-Christensen.

homepage            http://www.geoalchemy.org/
master_sites        http://pypi.python.org/packages/source/G/GeoAlchemy/

distname            GeoAlchemy-${version}

checksums           rmd160  a7ffa466b1f03d1058db801f117eea8e33de50ab \
                    sha256  78ce2f57a7982051030ccc9a59eb589bf6e0b3fad93875add4c1f7ef65f91863

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-sqlalchemy \
                        port:py${python.version}-psycopg2

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "GeoAlchemy-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
