# -*- 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         DateTime-Format-Pg 0.16014
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         Parse and format PostgreSQL dates and times
long_description    This module understands the formats used by PostgreSQL \
                    for its DATE, TIME, TIMESTAMP, and INTERVAL data types. \
                    It can be used to parse these formats in order to \
                    create DateTime or DateTime::Duration objects, and it \
                    can take a DateTime or DateTime::Duration object and \
                    produce a string representing it in a format accepted \
                    by PostgreSQL.

platforms           {darwin any}

checksums           rmd160  fa677e42b40fe7d356505d6d3a83e293972bef28 \
                    sha256  38bb9666524dc384c3366f6342cb9656c50bac0f9716a3d44f1cf552ccbe0eb9 \
                    size    30914

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-module-build-tiny

    depends_lib-append \
                    port:p${perl5.major}-datetime \
                    port:p${perl5.major}-datetime-format-builder \
                    port:p${perl5.major}-datetime-timezone

    supported_archs noarch
    perl5.use_module_build
}
