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

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

perl ports:

  • enable threads (#34723, #26323, #23993) and shared (#23089) by default, removing variants
  • add explicit perl5.branches to all p5 ports (#34784)
  • use non-conflicting vendorbin and vendorman* so p5.x-foo doesn't conflict with p5.y-foo
  • use non-conflicting sitebin and siteman*
  • add perl5.link_binaries and perl5.link_binaries_suffix options to portgroup
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 94655 2012-06-26 06:25:00Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.8 5.10 5.12 5.14 5.16
8perl5.setup         LWP-Protocol-https 6.02
9revision            2
10platforms           darwin
11maintainers         l2g openmaintainer
12license             {Artistic 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           sha1 476a62275bf5ae89dd6799d8f660071dba1819b9 \
25                    rmd160 a4ee19e141a4da9dc0d6a415573204c80a330569
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        set deactivate_proc registry_deactivate_composite
39        if {[info commands registry_deactivate_composite] == {}} {
40            set deactivate_proc registry_deactivate
41        }
42        $deactivate_proc p5-libwww-perl "" [list ports_nodepcheck 1]
43    }
44}
Note: See TracBrowser for help on using the repository browser.