# -*- 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
categories-append databases
description Python module that interfaces to a PostgreSQL database
long_description PyGreSQL is an open-source Python module that \
interfaces to a PostgreSQL database. It embeds the \
PostgreSQL query library to allow easy use of the \
powerful PostgreSQL features from a Python script.
homepage http://www.pygresql.org/
master_sites ${homepage}files/ freebsd
distname PyGreSQL-${version}
checksums rmd160 5cd30aceb7cb82acb2e3a36045be30b21112dd3f \
sha256 bb14092f97c66ed13b8faf71471b8c156c6b46d915858447f3a63e9abe48eef7
if {${name} ne ${subport}} {
depends_lib-append port:postgresql92
reinplace "s|\'pg_config|\'${prefix}/lib/postgresql92/bin/pg_config|g" \
set docdir ${prefix}/share/doc/${subport}
xinstall -d -m 755 ${destroot}${docdir}
xinstall -m 644 {*}[glob ${worksrcpath}/docs/*] {*}[glob ${worksrcpath}/tutorial/*] ${destroot}${docdir}
if {${name} eq ${subport}} {
livecheck.url ${homepage}announce.html
livecheck.regex PyGreSQL version (4\.\[0-9\.\]+)