# $Id: Portfile 66913 2010-04-25 19:56:48Z blb@macports.org $

PortSystem          1.0
PortGroup           python31 1.0
name                py31-postgresql
version             1.0.1
categories-append   devel databases
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     3ad5a41e429cee8435f835b2d39a31b8 \
                    sha1    f357f816adad21ae4cd98ab6f42cd3ee3ea590dc \
                    rmd160  d4e2747da746f9e98f4cb3b758dffec51c52839d

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}

