# -*- 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         libwww-perl 6.78 ../../authors/id/O/OA/OALDERS
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer

homepage            https://metacpan.org/pod/LWP

description         The World-Wide Web library for Perl
long_description    The libwww-perl collection is a set of Perl \
                    modules which provides a simple and consistent \
                    application programming interface to the \
                    World-Wide Web.  The main focus of the library \
                    is to provide classes and functions that allow \
                    you to write WWW clients. The library also \
                    contain modules that are of more general use \
                    and even classes that help you implement \
                    simple HTTP servers.

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  39d95c2fd34b1e65348ea0a7b0ddaf152aeef126 \
                    sha256  b738bdcf54e2c6bb81fd2b83ec47bc83347f97b371ea80f0dc10360f817a9a44 \
                    size    184340

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-http-cookiejar \
                    port:p${perl5.major}-test-fatal \
                    port:p${perl5.major}-test-leaktrace \
                    port:p${perl5.major}-test-needs \
                    port:p${perl5.major}-test-requiresinternet
                    
    depends_lib-append \
                    port:p${perl5.major}-data-dump \
                    port:p${perl5.major}-encode-locale \
                    port:p${perl5.major}-file-listing \
                    port:p${perl5.major}-getopt-long \
                    port:p${perl5.major}-html-form \
                    port:p${perl5.major}-html-parser \
                    port:p${perl5.major}-http-cookies \
                    port:p${perl5.major}-http-daemon \
                    port:p${perl5.major}-http-date \
                    port:p${perl5.major}-http-message \
                    port:p${perl5.major}-http-negotiate \
                    port:p${perl5.major}-lwp-mediatypes \
                    port:p${perl5.major}-module-load \
                    port:p${perl5.major}-net-http \
                    port:p${perl5.major}-try-tiny \
                    port:p${perl5.major}-uri \
                    port:p${perl5.major}-www-robotrules

    post-destroot {
        # Install miscellaneous doc files
        file mkdir ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/Changes \
            ${worksrcpath}/README.SSL \
            ${destroot}${prefix}/share/doc/${subport}
    }
}