# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=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         WWW-Curl 4.17
revision            12
license             MIT
maintainers         {alum.wpi.edu:arno+macports @fracai} openmaintainer
description         Perl extension interface for libcurl

long_description    Python module interface to the cURL library which is a \
                    tool for transferring files with URL syntax, supporting \
                    many protocols.

checksums           rmd160  786b6e0461051eae67bdcded046095895ea2a6a2 \
                    sha256  52ffab110e32348d775f241c973eb56f96b08eedbc110d77d257cdb0a24ab7ba \
                    size    50917

if {${perl5.major} != ""} {
    depends_lib-append  port:curl

# patch Makefile.PL to not detect preprocessor macros as constants
# https://rt.cpan.org/Public/Bug/Display.html?id=117793
# https://github.com/szbalint/WWW--Curl/issues/16
# https://github.com/szbalint/WWW--Curl/issues/26
# additional patch for compatiblity with curl 7.66.0+
# https://rt.cpan.org/Ticket/Display.html?id=130591
# additional patch for compatiblity with curl 7.69.0+
# https://rt.cpan.org/Public/Bug/Display.html?id=132197
    patchfiles      constants-ignore-macros.patch \
                    curl-7.66.0-rt130591.patch \
                    curl-7.69.0-rt132197.patch \
                    patch-default-inc-excludes-dot.diff \
                    cpp-rt131089.patch
}
