# -*- 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
maintainers {yan12125 @yan12125} openmaintainer
description Common files for selecting default Python 2 version
long_description This port installs files that allow 'port select' \
to create links to the preferred default version \
homepage https://www.macports.org/
# Documentation for Python 2 ports:
# set pythonNoDot python[string map {. {}} $branch]
# select.entries [list python2 python2-$pythonNoDot $pythonNoDot]
select.entries {python2 base} \
} elseif {${os.major} == 9} {
} elseif {${os.major} == 10} {
} elseif {${os.major} == 11} {
} elseif {${os.major} == 12 || ${os.major} == 13} {
list {python25-apple.mtln python25-apple} \
{python26-apple.mtln python26-apple} \
{python27-apple.mtln python27-apple}
} elseif {${os.major} == 14 || ${os.major} == 15 || ${os.major} == 16} {
list {python26-apple.mtln python26-apple} \
{python27-apple.mtln python27-apple}
} elseif {${os.major} >= 17} {
list {python27-apple.mtln python27-apple}
foreach python $apple_pythons {
select.entries-append [list python2 {*}$python]