2015-05-25 04:38:19 +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
|
2007-08-21 13:40:27 +00:00
|
|
|
|
2015-05-25 04:38:19 +00:00
|
|
|
PortSystem 1.0
|
|
|
|
|
PortGroup select 1.0
|
2007-08-21 13:40:27 +00:00
|
|
|
|
2015-05-25 04:38:19 +00:00
|
|
|
name python_select
|
|
|
|
|
version 0.3
|
2020-06-05 18:38:15 +02:00
|
|
|
revision 9
|
2015-05-25 04:38:19 +00:00
|
|
|
categories sysutils
|
|
|
|
|
platforms darwin
|
|
|
|
|
supported_archs noarch
|
2019-08-16 02:15:34 +10:00
|
|
|
configure.cxx_stdlib
|
2015-05-25 04:38:19 +00:00
|
|
|
license BSD
|
2019-12-19 23:16:46 +08:00
|
|
|
maintainers nomaintainer
|
2007-08-21 13:40:27 +00:00
|
|
|
|
2015-05-25 04:38:19 +00:00
|
|
|
description Common files for selecting default Python version
|
|
|
|
|
long_description This port installs files that allow 'port select' \
|
|
|
|
|
to create links to the preferred default version \
|
|
|
|
|
of Python.
|
2018-06-27 12:30:32 +00:00
|
|
|
homepage https://www.macports.org/
|
2007-08-21 13:40:27 +00:00
|
|
|
|
2011-05-13 16:57:49 +00:00
|
|
|
distfiles
|
2015-05-25 04:38:19 +00:00
|
|
|
use_configure no
|
|
|
|
|
build {}
|
2015-05-25 04:38:21 +00:00
|
|
|
destroot {}
|
2015-05-25 04:38:19 +00:00
|
|
|
|
2015-05-25 04:43:52 +00:00
|
|
|
# Documentation for Python ports:
|
|
|
|
|
# PortGroup select 1.0
|
2015-05-25 04:38:19 +00:00
|
|
|
# select.group python
|
|
|
|
|
# select.file ${filespath}/python[string map {. {}} ${branch}]
|
2007-08-21 13:40:27 +00:00
|
|
|
|
2008-01-18 20:25:28 +00:00
|
|
|
# install all files
|
2016-09-12 16:22:25 +00:00
|
|
|
select.entries {python base} \
|
|
|
|
|
{python none}
|
2008-01-18 20:25:28 +00:00
|
|
|
|
2016-09-12 16:22:25 +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
|
|
|
|
|
} elseif {${os.major} == 12 || ${os.major} == 13} {
|
|
|
|
|
list {python25-apple.mtln python25-apple} \
|
|
|
|
|
{python26-apple.mtln python26-apple} \
|
|
|
|
|
{python27-apple.mtln python27-apple}
|
2018-10-20 11:31:19 +08:00
|
|
|
} elseif {${os.major} == 14 || ${os.major} == 15 || ${os.major} == 16} {
|
2016-09-12 16:22:25 +00:00
|
|
|
list {python26-apple.mtln python26-apple} \
|
|
|
|
|
{python27-apple.mtln python27-apple}
|
2020-06-05 18:38:15 +02:00
|
|
|
} elseif {${os.major} == 17 || ${os.major} == 18} {
|
2018-10-20 11:31:19 +08:00
|
|
|
list {python27-apple.mtln python27-apple}
|
2020-06-05 18:38:15 +02:00
|
|
|
} elseif {${os.major} == 19} {
|
|
|
|
|
list {python27-apple.mtln python27-apple} \
|
|
|
|
|
python37-apple \
|
|
|
|
|
python38-apple
|
|
|
|
|
} elseif {${os.major} == 20} {
|
|
|
|
|
list {python27-apple.mtln python27-apple} \
|
|
|
|
|
python38-apple
|
2016-09-12 16:22:25 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
foreach python $apple_pythons {
|
2016-09-12 16:35:27 +00:00
|
|
|
select.entries-append [list python {*}$python]
|
2016-09-12 16:22:25 +00:00
|
|
|
}
|
2015-10-18 06:18:41 +00:00
|
|
|
}
|
|
|
|
|
|
2009-09-10 08:16:41 +00:00
|
|
|
livecheck.type none
|