# -*- 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               stub 1.0
PortGroup               select 1.0

name                    perl_select
version                 0.3
revision                1
categories              sysutils
supported_archs         noarch
description             common files for selecting default perl version
long_description        This port installs files that allow 'port select' to \
                        be used to create links to the preferred default \
                        version of perl.

post-destroot {
    select::install perl ${filespath}/base
    select::install perl ${filespath}/none
}

platform darwin 9 {
    post-destroot {
        select::install perl ${filespath}/perl5.8-apple.9
    }
}

platform darwin 10 {
    post-destroot {
        select::install perl ${filespath}/perl5.8-apple.10
        select::install perl ${filespath}/perl5.10-apple.10
    }
}

platform darwin 11 {
    post-destroot {
        select::install perl ${filespath}/perl5.10-apple.11
        select::install perl ${filespath}/perl5.12-apple.11
    }
}

platform darwin 12 {
    post-destroot {
        select::install perl ${filespath}/perl5.10-apple.12
        select::install perl ${filespath}/perl5.12-apple.12
    }
}

platform darwin 13 {
    post-destroot {
        select::install perl ${filespath}/perl5.12-apple.13
        select::install perl ${filespath}/perl5.16-apple.13
    }
}

platform darwin 14 {
    post-destroot {
        select::install perl ${filespath}/perl5.16-apple.14
        select::install perl ${filespath}/perl5.18-apple.14
    }
}

platform darwin 15 {
    post-destroot {
        select::install perl ${filespath}/perl5.16-apple.15
        select::install perl ${filespath}/perl5.18-apple.15
    }
}

livecheck.type     none

# Documentation for perl ports:
#   PortGroup select 1.0
#   select.group            perl
#   select.file             ${filespath}/perl[string map {. {}} ${branch}]