# -*- 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 91532 2012-04-04 04:16:39Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

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  fc0bbf5872fc07062110fd87218643eb1f984c11 \
                    sha256  c4a52644675bc80a2a7e2a8db3efee70157c7e641fa8519a3bb7a151474ba1ab

python.versions     25 26 27
python.default_version  27

if {$subport != $name} {
    depends_lib-append \
                    port:py${python.version}-distribute \
                    port:py${python.version}-sqlalchemy \
                    port:py${python.version}-psycopg2
}

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