# -*- 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.26 5.28 5.30
perl5.setup         JSON-DWIW 0.47
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         JSON::DWIW - JSON converter that Does What I Want
long_description    ${description}

platforms           darwin

checksums           rmd160  2bf1a314067900246056ea3d02b17947dd627e12 \
                    sha256  46a7cdcb77ceb95f96da53800ce36d21835f7fd25ab15cb45f823dec11213161

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

# patch to UseTheRightCompiler

    patchfiles      patch-Makefile.PL.diff

    post-patch {
        reinplace "s|__MP_CC__|${configure.cc}|" ${worksrcpath}/Makefile.PL
    }
}