# -*- 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.16 ../../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  fa2ed311c402b794614f06d6e0a68a1b1293aa92 \
                    sha256  41472b0047cba02c203d3d02b9d4cf72b41346997b26c79b459be6159b0c0875 \
                    size    100291

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+)*)}
