# -*- 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.860 ../../authors/id/P/PM/PMQS
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         DB_File - Perl5 access to Berkeley DB version 1.x
long_description    {*}${description}

checksums           rmd160  eb6638947a6e5266d16055d9dc86463c193d612c \
                    sha256  cbe5e90b0e40e0d566f505789b73196e93c56709f660ca316af50662260749a0 \
                    size    216484

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.
"
