# -*- 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         GnuPG-Interface 1.06 ../../authors/id/B/BP/BPS
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         GnuPG::Interface - Perl interface to GnuPG
long_description    {*}${description}

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  ffeb82c71beaf19f5f6054a9b4f096033d2e0aa6 \
                    sha256  4433d6e9d49dbae84e234afa856e3130d0061e8f98d0519a562b825f7536241d \
                    size    77643

if {${perl5.major} != ""} {
    depends_lib-append \
                    path:bin/gpg:gnupg2 \
                    port:p${perl5.major}-math-bigint \
                    port:p${perl5.major}-moo \
                    port:p${perl5.major}-moox-handlesvia \
                    port:p${perl5.major}-moox-late \
                    port:p${perl5.major}-scalar-list-utils

    patchfiles      fix_taint_mode.patch \

    post-patch {
        reinplace "s|@@PREFIX@@|${prefix}|"  \
            ${worksrcpath}/lib/GnuPG/Interface.pm
    }
}
