# -*- 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 116120 2014-01-19 04:12:45Z jmr@macports.org $

PortSystem          1.0

name                postgresql_autodoc
version             1.41
revision            1
categories          databases textproc
license             BSD
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer

description         Automatic documentation generator for postgresql databases
long_description    Automatic documentation generator for postgresql \
                    databases. It supports output in HTML, GraphViz, SGML \
                    DocBook and DIA formats.

homepage            http://www.rbt.ca/autodoc/
master_sites        http://www.rbt.ca/autodoc/binaries/

checksums           md5    a23ae4a49bfd0c14375b3ea6e04cd5b9 \
                    sha1   66ef9804854bbec54bba7788fe3ba90e5a47abe2 \
                    rmd160 c588ef93e955b5c41b6175f3f2762c35accbb567

depends_lib         port:perl5.16 \
                    port:p5.16-dbi \
                    port:p5.16-dbd-pg \
                    port:p5.16-html-template \
                    port:p5.16-term-readkey
worksrcdir          ${name}

patchfiles          patch-make.diff

use_configure       no

build {
    reinplace -E "s#/usr/local#${prefix}#g" \
        Makefile
}

destroot.args       PERL=${prefix}/bin/perl5.16
destroot.destdir    DESTDIR=${destroot}

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