# -*- 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.30 5.32 5.34
perl5.setup             Net-Eboks 0.11
revision                0
license                 BSD
maintainers             {danchr @danchr} openmaintainer

description             Interface for e-Boks, the Danish national email system.
long_description        {*}${description}

checksums               sha256 5da063877d01c6fdd6f5bd7e32b8479990416c1b1f1a3bc45145f080580735c8 \
                        rmd160 fb4fc004a687bd05f6c8b1e9f8803968ba9b1bc9 \
                        size 20815

platforms               {darwin any}
supported_archs         noarch

if {${perl5.major} != ""} {
    depends_lib \
        port:p${perl5.major}-crypt-openssl-rsa \
        port:p${perl5.major}-datetime \
        port:p${perl5.major}-digest-sha \
        port:p${perl5.major}-getopt-long \
        port:p${perl5.major}-io-lambda \
        port:p${perl5.major}-io-socket-ssl \
        port:p${perl5.major}-mime-base64 \
        port:p${perl5.major}-mime-tools \
        port:p${perl5.major}-xml-simple

    post-destroot {
        foreach p [glob -directory ${destroot}${perl5.bindir} *] {
            reinplace "1s,^#!/usr/bin/env perl,#!${perl5.bin}," $p
        }
    }
}
