# $Id: Portfile 78279 2011-05-01 15:37:43Z jwa@macports.org $

PortSystem 1.0

name			postgresql84-doc
version			8.4.8
categories		databases
platforms		darwin
maintainers		mww jwa
description		Documentation for the postgresql database
long_description PostgreSQL is Object-Relational Database Management System. \
				It supports almost all SQL constructs, including transactions, \
				subselects, and user-defined types and functions. Write-ahead \
				logging means increased performance while retaining data \
				integrity. This is the documentation.

homepage		http://www.postgresql.org/
master_sites		postgresql:source/v${version}
distname		postgresql-${version}

checksums           md5     4603e8ea30cee97189b62b39022f2043 \
                    sha1    f4936de8b8a31f5579e094c928df9612fffe62b5 \
                    rmd160  ad4c81e7f22ed3018ff4f37e1e6ad54ce1a5fd4e

use_bzip2		yes
dist_subdir		postgresql84

set libdir		${prefix}/lib/postgresql84
configure.args	--mandir=${prefix}/share/man \
				--with-docdir=${prefix}/share/doc/postgresql84 \
				--without-openssl \
				--without-rendezvous \
				--without-readline \
				--without-zlib

build.dir		${worksrcpath}/doc
build.type		gnu
build.target

destroot.dir	${build.dir}

post-destroot {
    file rename ${destroot}${prefix}/share/doc/postgresql ${destroot}${prefix}/share/doc/postgresql84
}

livecheck.type	regex
livecheck.url	${homepage}
livecheck.regex	(8\\.4\\.\[0-9\]+)

