source: trunk/dports/perl/p5-http-negotiate/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.3 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         HTTP-Negotiate 6.00
9revision            2
10platforms           darwin
11maintainers         l2g openmaintainer
12license             {Artistic GPL}
13supported_archs     noarch
14
15description         HTTP content negotiation
16
17long_description    ${description}
18
19checksums           sha1 4ef0f026a9c710d876444dcfdc3a56cbb2c8a478 \
20                    rmd160 d6294ced942b213b851cfe5088334934ab5e9a43
21
22if {${perl5.major} != ""} {
23depends_lib-append  port:p${perl5.major}-http-message
24}
25# This hack is needed because of the libwww-perl 6.0 breakup (Trac #28865)
26pre-activate {
27    if {[file exists ${perl5.lib}/HTTP/Negotiate.pm]
28      && ![catch {set vers [lindex [registry_active p5-libwww-perl] 0]}]
29      && [vercmp [lindex $vers 1] 6.0] < 0} {
30        ui_warn "Deactivating old, pre-6.x libwww-perl to activate ${name}"
31        set deactivate_proc registry_deactivate_composite
32        if {[info commands registry_deactivate_composite] == {}} {
33            set deactivate_proc registry_deactivate
34        }
35        $deactivate_proc p5-libwww-perl "" [list ports_nodepcheck 1]
36    }
37}
Note: See TracBrowser for help on using the repository browser.