# $Id: Portfile 77493 2011-04-01 07:49:16Z blb@macports.org $

PortSystem          1.0
PortGroup           python32 1.0
name                py32-postgresql
version             1.0.2
categories-append   devel databases
license             BSD
maintainers         blb openmaintainer
description         Python interface to PostgreSQL
long_description \
   py-postgresql is a project dedicated to improving the Python interfaces \
   to PostgreSQL. It strives to provide substantial convenience to Python \
   programmers using PostgreSQL.  At its core, py-postgresql provides a \
   PG-API, postgresql.api, and DB-API 2.0 interface for using a PostgreSQL \
   database.

platforms           darwin

homepage            http://python.projects.postgresql.org/
master_sites        ${homepage}files
distname            py-postgresql-${version}

checksums           md5     12c7ef62c78c9466a7fdd7fa985890e1 \
                    sha1    b855f0f432ea075237a6d00a3e34453a0db61c70 \
                    rmd160  77e36a3b2961a1561b3397d1ff5c374e47e37d76

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} AUTHORS LICENSE README \
      ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     py-postgresql-(\[.\\d\]+)${extract.suffix}

