# -*- 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         net 3.15 ../../authors/id/S/SH/SHAY
license             {Artistic-1 GPL}
maintainers         nomaintainer

description         libnet is a collection of Perl modules which provides a simple \
                    and consistent programming interface (API) to the client side \
                    of various protocols used in the internet community.
long_description    ${description}

homepage            https://metacpan.org/release/libnet/
distname            libnet-${perl5.moduleversion}

checksums           rmd160  d907d6c97d9412837f80d9aa745798225d70abee \
                    sha256  a71f4db580e1a767d6936faa5baf38f1fa617824342da078b561283e86f8f4a2 \
                    size    95593

platforms           {darwin any}
supported_archs     noarch

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-extutils-makemaker

    depends_lib-append \
                    port:p${perl5.major}-authen-sasl \
                    port:p${perl5.major}-io-socket-ip \
                    port:p${perl5.major}-io-socket-ssl \
                    port:p${perl5.major}-socket
}

livecheck.type      regex
livecheck.url       https://cpan.metacpan.org/authors/id/S/SH/SHAY
livecheck.regex     {libnet-(\d+(?:\.\d+)*)}
