# -*- 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 118047 2014-03-20 14:56:49Z jwa@macports.org $

PortSystem 1.0

name			postgresql93-doc
conflicts       postgresql84-doc postgresql90-doc postgresql91-doc \
                postgresql92-doc
version			9.3.4
categories		databases
platforms		darwin
maintainers		mww jwa
license			Permissive
description		Documentation for the postgresql database BETA 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  126df8cb07a28e5d58ca2d1b9fc1d20e4f7a8cf1 \
                    sha256  9ee819574dfc8798a448dc23a99510d2d8924c2f8b49f8228cd77e4efc8a6621

use_bzip2		yes
dist_subdir		postgresql93

set libdir		${prefix}/lib/postgresql93
configure.args	--mandir=${prefix}/share/man \
				--without-openssl \
				--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/postgresql93
}

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