# -*- 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

PortSystem 1.0

name                postgresql15-doc
conflicts           postgresql96-doc postgresql10-doc postgresql11-doc \
                    postgresql12-doc postgresql13-doc postgresql14-doc
version             15.12
revision            0
categories          databases
platforms           any
supported_archs     noarch
maintainers         {jwa @jyrkiwahlstedt}
license             Permissive
description         Documentation for the PostgreSQL database version 15
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            https://www.postgresql.org/
master_sites        postgresql:source/v${version}
distname            postgresql-${version}
set rname           postgresql15

checksums           rmd160  f3b4728a7f40ce24c9c5c6e15e198200c0975f8d \
                    sha256  3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7 \
                    size    23170228

use_bzip2           yes
dist_subdir         ${rname}

set libdir          ${prefix}/lib/${rname}
configure.args      --mandir=${prefix}/share/man \
                    --without-openssl \
                    --without-readline \
                    --without-zlib

depends_build       port:docbook-xml-4.5 port:docbook-xsl-nons
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/${rname}
}

livecheck.type      none