source: trunk/dports/perl/p5-cpan-meta/Portfile

Last change on this file was 154393, checked in by mojca@…, 13 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 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 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.24
8perl5.setup         CPAN-Meta 2.150010
9license             {Artistic-1 GPL}
10maintainers         nomaintainer
11description         the distribution metadata for a CPAN dist
12long_description    ${description}
13
14platforms           darwin
15
16checksums           rmd160  6f85c17dba70983ed6d7e0179675e2e9ed0f6d01 \
17                    sha256  e4f80f2ec73e0741455f957bbfc992b167ecbfa1c9e23ba358df3b37b86ba3d6
18
19supported_archs     noarch
20
21if {${perl5.major} != ""} {
22   # Parse::CPAN::Meta, now part of this module, was previously provided by separate port p5-parse-cpan-meta
23   # deactivate old conflicting p5-parse-cpan-meta before activation
24
25    pre-activate {
26        set pname p${perl5.major}-parse-cpan-meta
27        if {![catch {set installed [lindex [registry_active $pname] 0]}]} {
28            registry_deactivate_composite $pname "" [list ports_nodepcheck 1]
29        }
30    }
31
32    depends_lib-append \
33                    port:p${perl5.major}-cpan-meta-requirements \
34                    port:p${perl5.major}-cpan-meta-yaml \
35                    port:p${perl5.major}-encode \
36                    port:p${perl5.major}-scalar-list-utils \
37                    port:p${perl5.major}-version
38}
Note: See TracBrowser for help on using the repository browser.