# -*- 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 104219 2013-03-21 02:54:20Z ryandesign@macports.org $

PortSystem          1.0

name                geos
version             3.3.8
revision            0
categories          science gis
platforms           darwin
license             LGPL-2.1

maintainers         gaige.net:opendarwin

description         GEOS Geometry Engine - Open Source

long_description    A C++ port of the Java Topology Suite, providing OpenGIS \
                    Simple Features for SQL spatial predicate functions \
                    and spatial operators, as well as specific JTS topology \
                    functions.

homepage            http://trac.osgeo.org/geos/
master_sites        http://download.osgeo.org/geos/

use_bzip2           yes

checksums           rmd160  cb47808b3c80fa92ebee7dd6d9ef9c18499c5cd0 \
                    sha256  ebecd4d1a71bcc28e5e883296cd8c52a80d5596335e74728f320989734fa503b

compiler.blacklist  llvm-gcc-4.2 macports-llvm-gcc-4.2

use_parallel_build  yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
        TODO ${destroot}${docdir}
}

test.run            yes
test.cmd            make
test.target         check

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     {geos-(\d+(?:\.\d+)*)}
