# -*- 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.79 ../../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  9a0d7b76cf15b5faa5faef35dea06642b5f929c8 \
                    sha256  f2526e9a33ac96715cc47fbf5b4bec1a8c51720330b24e3974c2c5ae07a9c5e7 \
                    size    184691

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}
    }
}
