# -*- 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         Encode-Detect 1.01
revision            4
license             {MPL-1.1 LGPL-2.1+}
maintainers         nomaintainer
description         Encode-Encoding subclass that detects the encoding of data
long_description    This Perl module is an Encode::Encoding subclass that uses \
                    Encode::Detect::Detector to determine the charset of the \
                    input data and then decodes it using the encoder of the \
                    detected charset. It is similar to Encode::Guess, but \
                    does not require the configuration of a set of expected \
                    encodings. Like Encode::Guess, it only supports \
                    decoding--it cannot encode.

platforms           darwin

checksums           rmd160  30264410aa80ea030932b8c310b117d4acf25cbe \
                    sha256  834d893aa7db6ce3f158afbd0e432d6ed15a276e0940db0a74be13fd9c4bbbf1 \
                    size    179698

if {${perl5.major} != ""} {
    depends_lib-append \
                    port:p${perl5.major}-encode
    
    patchfiles      patch-Build.PL.diff

    variant universal {}
    configure.cc    ${configure.cxx} {*}${configure.cxxflags} {*}[get_canonical_archflags cxx]

    perl5.use_module_build
}
