# -*- 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 87551 2011-11-25 14:43:46Z pvanek@macports.org $

PortSystem          1.0

name                qore-pgsql-module
version             1.0.6
categories          lang
maintainers         davidnichols
description         PostgreSQL module for Qore
long_description    Module allowing communication with PostgreSQL DBs from the Qore Programming Language
homepage            http://qore.org
platforms           darwin
master_sites        sourceforge:qore

checksums           md5     cd076243186f33a0a1074ddb8b17e8d7 \
                    sha1    30a4bfdeea1698b3af48d5edeba82034c591a513 \
                    rmd160  15d98ce26ac18fa96d5ffc7b388d18c0edb4689d

variant psql83 conflicts psql84 psql90 psql91 \
description {Enable Postgre SQL Driver version 8.3} {}

variant psql84 conflicts psql83 psql90 psql91 \
description {Enable Postgre SQL Driver version 8.4} {}

variant psql90 conflicts psql83 psql84 psql91 \
description {Enable Postgre SQL Driver version 9.0 (default if none selected)} {}

variant psql91 conflicts psql83 psql84 psql90 \
description {Enable Postgre SQL Driver version 9.1} {}

set psql_version "90"
if {[variant_isset psql83]} {
    set psql_version "83"
} elseif {[variant_isset psql84]} {
    set psql_version "84"
} elseif {[variant_isset psql90]} {
    set psql_version "90"
} elseif {[variant_isset psql91]} {
    set psql_version "91"
}

depends_lib         port:qore \
                    port:postgresql${psql_version}

configure.args      --disable-debug
