2015-05-25 19:32:34 +00:00
|
|
|
# -*- 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 select 1.0
|
|
|
|
|
|
|
|
|
|
name python2_select
|
2024-02-13 15:32:55 +11:00
|
|
|
version 0.1
|
2015-05-25 19:32:34 +00:00
|
|
|
categories sysutils
|
|
|
|
|
supported_archs noarch
|
2019-08-16 02:15:34 +10:00
|
|
|
configure.cxx_stdlib
|
2024-02-13 15:32:55 +11:00
|
|
|
license BSD
|
|
|
|
|
maintainers nomaintainer
|
|
|
|
|
|
2015-05-25 19:32:34 +00:00
|
|
|
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 \
|
|
|
|
|
of Python 2.
|
2024-02-13 15:32:55 +11:00
|
|
|
homepage https://www.macports.org/
|
|
|
|
|
|
|
|
|
|
distfiles
|
|
|
|
|
use_configure no
|
|
|
|
|
build {}
|
|
|
|
|
destroot {}
|
2015-05-25 19:32:34 +00:00
|
|
|
|
|
|
|
|
# Documentation for Python 2 ports:
|
|
|
|
|
# PortGroup select 1.0
|
|
|
|
|
# set pythonNoDot python[string map {. {}} $branch]
|
|
|
|
|
# select.entries [list python2 python2-$pythonNoDot $pythonNoDot]
|
|
|
|
|
|
|
|
|
|
# install all files
|
2016-08-16 21:50:05 +00:00
|
|
|
select.entries {python2 base} \
|
|
|
|
|
{python2 none}
|
2015-05-25 19:32:34 +00:00
|
|
|
|
2016-08-16 21:50:05 +00:00
|
|
|
platform darwin {
|
|
|
|
|
set apple_pythons [
|
|
|
|
|
if {${os.major} == 8} {
|
|
|
|
|
list python23-apple
|
|
|
|
|
} elseif {${os.major} == 9} {
|
|
|
|
|
list python25-apple
|
|
|
|
|
} elseif {${os.major} == 10} {
|
|
|
|
|
list python25-apple \
|
|
|
|
|
python26-apple
|
|
|
|
|
} elseif {${os.major} == 11} {
|
|
|
|
|
list python25-apple \
|
|
|
|
|
python26-apple \
|
|
|
|
|
python27-apple
|
2024-02-13 15:32:55 +11:00
|
|
|
} elseif {${os.major} <= 13} {
|
2016-08-16 21:50:05 +00:00
|
|
|
list {python25-apple.mtln python25-apple} \
|
|
|
|
|
{python26-apple.mtln python26-apple} \
|
|
|
|
|
{python27-apple.mtln python27-apple}
|
2024-02-13 15:32:55 +11:00
|
|
|
} elseif {${os.major} <= 16} {
|
2016-08-16 21:50:05 +00:00
|
|
|
list {python26-apple.mtln python26-apple} \
|
|
|
|
|
{python27-apple.mtln python27-apple}
|
2024-02-13 15:32:55 +11:00
|
|
|
} elseif {${os.major} <= 20} {
|
2018-10-20 11:31:19 +08:00
|
|
|
list {python27-apple.mtln python27-apple}
|
2016-08-16 21:50:05 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
foreach python $apple_pythons {
|
|
|
|
|
select.entries-append [list python2 {*}$python]
|
|
|
|
|
}
|
2015-05-25 19:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
livecheck.type none
|