source: trunk/dports/perl/p5-lwp-protocol-https/Portfile @ 128808

Last change on this file since 128808 was 128808, checked in by jmr@…, 5 years ago

correct license field for multiple ports that use the Artistic license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 128808 2014-11-27 17:05:13Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.10 5.12 5.14 5.16 5.18 5.20
8perl5.setup         LWP-Protocol-https 6.06 ../by-authors/id/M/MS/MSCHILLI/
9revision            1
10platforms           darwin
11maintainers         nomaintainer
12license             {Artistic-1 GPL}
13supported_archs     noarch
14
15description         LWP::Protocol::https - SSL support for libwww-perl
16
17long_description \
18    The LWP::Protocol::https module used to be bundled with p5-libwww-perl, \
19    but it was unbundled in v6.02 so that dependencies could be declared \
20    properly.  Ports that need https support can just declare their \
21    dependency on ${name} and will no longer need to know what \
22    underlying modules to install.
23
24checksums           rmd160  faefe1526b6a04be2deac8c6f96a9d6cf2d4a647 \
25                    sha256  b86c83cc1dcf4a6f84e2fbe32f9c39591a36e6e418af00533505f3452496adef
26
27if {${perl5.major} != ""} {
28depends_lib-append  port:p${perl5.major}-io-socket-ssl \
29                    port:p${perl5.major}-mozilla-ca \
30                    port:p${perl5.major}-net-http
31}
32# This hack is needed because of the libwww-perl 6.0 breakup (Trac #28865)
33pre-activate {
34    if {[file exists ${perl5.lib}/LWP/Protocol/https.pm]
35      && ![catch {set vers [lindex [registry_active p5-libwww-perl] 0]}]
36      && [vercmp [lindex $vers 1] 6.0] < 0} {
37        ui_warn "Deactivating old, pre-6.x libwww-perl to activate ${name}"
38        registry_deactivate_composite p5-libwww-perl "" [list ports_nodepcheck 1]
39    }
40}
Note: See TracBrowser for help on using the repository browser.