# -*- 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 90261 2012-02-28 11:38:19Z jwa@macports.org $

PortSystem 1.0

name			postgresql84-doc
version			8.4.11
categories		databases
platforms		darwin
maintainers		mww jwa
license			Permissive
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           rmd160  85b4be0884ca11855eb0dbc1541403e7baf7c0aa \
                    sha256  5bbc9ff1d16282b592600d7c6b9cb1a93049d4aa9a961e3c2c8d5fb13b189c8f

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\]+)

