# -*- 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 90259 2012-02-28 11:35:59Z jwa@macports.org $

PortSystem 1.0

name			postgresql91-doc
version			9.1.3
categories		databases
platforms		darwin
maintainers		mww jwa
license			Permissive
description		Documentation for the postgresql database ALPHA release.
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  84eb235c090083b78e6a2facf3d7bc534395db8b \
                    sha256  7a79800a624031c1d9bc9cdce73cb40050100ac50a82050cbf7bbbd16ac4d5d5

use_bzip2		yes
dist_subdir		postgresql91

set libdir		${prefix}/lib/postgresql91
configure.args	--mandir=${prefix}/share/man \
				--with-docdir=${prefix}/share/doc/postgresql91 \
				--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/postgresql91
}

livecheck.type	regex
livecheck.url	${homepage}
livecheck.regex	(9\\.1\\.\[.0-9\]+)
#livecheck.url	${homepage}/developer/beta
#livecheck.regex	(9\\.1\[a-z\]+\[.0-9\]+)

