source: trunk/dports/perl/p5-http-negotiate/Portfile @ 126431

Last change on this file since 126431 was 123699, checked in by mojca@…, 5 years ago

p5-*: revbump or upgrade perl dependents (#43480)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 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 123699 2014-08-13 06:30:25Z mojca@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.8 5.10 5.12 5.14 5.16 5.18 5.20
8perl5.setup         HTTP-Negotiate 6.01
9revision            1
10platforms           darwin
11maintainers         nomaintainer
12license             {Artistic GPL}
13supported_archs     noarch
14
15description         HTTP content negotiation
16
17long_description    ${description}
18
19checksums           rmd160  bfc839ac4ff7ef24b7154f2702cdb107c882e8c6 \
20                    sha256  1c729c1ea63100e878405cda7d66f9adfd3ed4f1d6cacaca0ee9152df728e016
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        registry_deactivate_composite p5-libwww-perl "" [list ports_nodepcheck 1]
32    }
33}
Note: See TracBrowser for help on using the repository browser.