# -*- 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
PortGroup           perl5 1.0

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         DB_File 1.859
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         DB_File - Perl5 access to Berkeley DB version 1.x
long_description    {*}${description}

platforms           darwin

checksums           rmd160  13ecee5eecef0f9f99cc729634c18ef0c1d955ce \
                    sha256  5674e0d2cd0b060c4d1253670ea022c64d842a55257f9eb8edb19c0f53e2565c \
                    size    214533

if {${perl5.major} != ""} {
    depends_lib-append \
                    port:db48

    patchfiles      patch-config.in.diff

    post-patch {
        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/config.in
    }
}

notes "
p5-db_file is designed to support Berkeley DB 1.0 and the 1.0 compatible API in Berkeley DB 2.0 thru 4.8.  \
Berkeley DB 5.0 and later is not well supported, hence, this port builds against MacPorts Berkeley DB 4.8.
To use the full API of Berkeley DB 4 and later see p5-berkeleydb.
"
