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

Last change on this file since 122553 was 122553, checked in by mf2k@…, 6 years ago

p5-[various]: Add perl 5.18 and 5.20 subports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 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 122553 2014-07-23 21:43:46Z mf2k@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
9platforms           darwin
10maintainers         nomaintainer
11license             {Artistic GPL}
12supported_archs     noarch
13
14description         HTTP content negotiation
15
16long_description    ${description}
17
18checksums           rmd160  bfc839ac4ff7ef24b7154f2702cdb107c882e8c6 \
19                    sha256  1c729c1ea63100e878405cda7d66f9adfd3ed4f1d6cacaca0ee9152df728e016
20
21if {${perl5.major} != ""} {
22depends_lib-append  port:p${perl5.major}-http-message
23}
24# This hack is needed because of the libwww-perl 6.0 breakup (Trac #28865)
25pre-activate {
26    if {[file exists ${perl5.lib}/HTTP/Negotiate.pm]
27      && ![catch {set vers [lindex [registry_active p5-libwww-perl] 0]}]
28      && [vercmp [lindex $vers 1] 6.0] < 0} {
29        ui_warn "Deactivating old, pre-6.x libwww-perl to activate ${name}"
30        registry_deactivate_composite p5-libwww-perl "" [list ports_nodepcheck 1]
31    }
32}
Note: See TracBrowser for help on using the repository browser.