source: trunk/dports/perl/p5-libwww-perl/Portfile

Last change on this file was 154393, checked in by mojca@…, 11 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# -*- 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
2# $Id: Portfile 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4# This comment was inserted on 20160713 to force reindexing of
5# this port after the default homepage definition in the perl5
6# PortGroup was changed to use metacpan.org (r150080).
7# Reindexing is necessary for the new definition to take effect.
8# This comment may be removed in subsequent updates of this port.
9
10PortSystem          1.0
11PortGroup           perl5 1.0
12
13perl5.branches      5.24
14perl5.setup         libwww-perl 6.15 ../by-authors/id/E/ET/ETHER
15maintainers         nomaintainer
16license             {Artistic-1 GPL}
17supported_archs     noarch
18
19description         The World-Wide Web library for Perl
20long_description    The libwww-perl collection is a set of Perl \
21                    modules which provides a simple and consistent \
22                    application programming interface to the \
23                    World-Wide Web.  The main focus of the library \
24                    is to provide classes and functions that allow \
25                    you to write WWW clients. The library also \
26                    contain modules that are of more general use \
27                    and even classes that help you implement \
28                    simple HTTP servers.
29
30checksums           rmd160  0b02a56c43a1a3858e53899cae727f97ad62a1ed \
31                    sha256  6f349d45c21b1ec0501c4437dfcb70570940e6c3d5bff783bd91d4cddead8322
32
33platforms           darwin
34
35if {${perl5.major} != ""} {
36    depends_lib-append \
37                    port:p${perl5.major}-encode-locale \
38                    port:p${perl5.major}-file-listing \
39                    port:p${perl5.major}-html-form \
40                    port:p${perl5.major}-html-parser \
41                    port:p${perl5.major}-http-cookies \
42                    port:p${perl5.major}-http-daemon \
43                    port:p${perl5.major}-http-date \
44                    port:p${perl5.major}-http-message \
45                    port:p${perl5.major}-http-negotiate \
46                    port:p${perl5.major}-lwp-mediatypes \
47                    port:p${perl5.major}-net-http \
48                    port:p${perl5.major}-uri \
49                    port:p${perl5.major}-www-robotrules
50
51use_parallel_build  yes
52
53post-destroot {
54    # Install miscellaneous doc files
55    file mkdir ${destroot}${prefix}/share/doc/${subport}
56    file copy ${worksrcpath}/AUTHORS \
57              ${worksrcpath}/Changes \
58              ${worksrcpath}/README \
59              ${worksrcpath}/README.SSL \
60        ${destroot}${prefix}/share/doc/${subport}
61}
62
63variant ssl description {Include optional SSL/TLS (HTTPS) support} {
64    depends_lib-append  port:p${perl5.major}-lwp-protocol-https
65}
66
67default_variants    +ssl
68}
69
70notes "
71As of version 6.00, libwww-perl has been broken up into multiple packages. If\
72you were using ${subport} for just one or two of its modules before, you may\
73be able to pare down your installation to just those modules now. Other\
74important changes have been made that may affect your code\; for details,\
75please see: ${prefix}/share/doc/${subport}/Changes
76"
77
78# Starting with version 6.02, LWP::Protocol::https began to be packaged
79# separately from libwww-perl as well.  The thinking seems to have been that
80# any package requiring HTTPS support would just declare an extra dependency
81# on LWP::Protocol::https, and those that didn't, wouldn't.
82#
83# However, at this writing, there are 59 ports in MacPorts that depend on
84# p5-libwww-perl, and I don't want to audit them all for their HTTPS
85# requirements.  So in keeping with the Principle of Least Astonishment while
86# recognizing that some people won't need or want the extra modules installed,
87# I've decided to add a new variant and have it enabled by default.
88#     --Larry Gilbert (L2G) 2011-06-02
Note: See TracBrowser for help on using the repository browser.