# -*- 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         Search-Elasticsearch 8.12
revision            0
license             Apache-2
maintainers         nomaintainer
description         Search::Elasticsearch - The official client for Elasticsearch
long_description    {*}${description}

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  5f41321fe042ab65cfff7c45ffb0d51952a566cd \
                    sha256  02769df0ec74deace9b4f07e5a596c110830872dff162af1452b633c1332fda9 \
                    size    140514

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-cpanel-json-xs \
                    port:p${perl5.major}-io-socket-ssl \
                    port:p${perl5.major}-json-xs \
                    port:p${perl5.major}-log-any-adapter-callback \
                    port:p${perl5.major}-test-deep \
                    port:p${perl5.major}-test-exception \
                    port:p${perl5.major}-test-pod \
                    port:p${perl5.major}-test-sharedfork

    depends_lib-append \
                    port:p${perl5.major}-any-uri-escape \
                    port:p${perl5.major}-devel-globaldestruction \
                    port:p${perl5.major}-http-message \
                    port:p${perl5.major}-http-tiny \
                    port:p${perl5.major}-json-maybexs \
                    port:p${perl5.major}-libwww-perl \
                    port:p${perl5.major}-log-any \
                    port:p${perl5.major}-module-runtime \
                    port:p${perl5.major}-moo \
                    port:p${perl5.major}-namespace-clean \
                    port:p${perl5.major}-net-ip \
                    port:p${perl5.major}-package-stash \
                    port:p${perl5.major}-sub-exporter \
                    port:p${perl5.major}-time-hires \
                    port:p${perl5.major}-try-tiny \
                    port:p${perl5.major}-uri \
                    port:p${perl5.major}-uri-escape-xs

    test.env-append \
                    CLIENT_VER=8_0
}
