# -*- 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

PortSystem          1.0
PortGroup           perl5 1.0

perl5.branches      5.26 5.28
perl5.setup         inc-latest 0.500 ../by-authors/id/D/DA/DAGOLDEN/
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         inc::latest - use modules bundled in inc/ if they are newer than installed ones
long_description    ${description}

platforms           darwin

checksums           rmd160  4f2fd5553853d987674e79069726370f465bb9a2 \
                    sha256  daa905f363c6a748deb7c408473870563fcac79b9e3e95b26e130a4a8dc3c611

if {${perl5.major} != ""} {

   # p5-inc-latest was previously part of p5-module-build now separate
   # deactivate old conflicting p5-module-build before activation

    pre-activate {
        set pname p${perl5.major}-module-build
        if {![catch {set installed [lindex [registry_active $pname] 0]}]} {
            set _version [lindex $installed 1]
            if {[vercmp $_version 0.421.1] < 0} {
                registry_deactivate_composite $pname "" [list ports_nodepcheck 1]
            }
        }
    }

    supported_archs noarch
}
