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

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

p5-http-negotiate: fix license

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