source: trunk/dports/sysutils/python_select/Portfile

Last change on this file was 152589, checked in by larryv@…, 12 months ago

python_select: Add system entries on Sierra

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- 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
2# $Id: Portfile 152589 2016-09-12 20:08:37Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           select 1.0
6
7name                python_select
8version             0.3
9revision            7
10categories          sysutils
11platforms           darwin
12supported_archs     noarch
13license             BSD
14maintainers         nomaintainer
15
16description         Common files for selecting default Python version
17long_description    This port installs files that allow 'port select' \
18                    to create links to the preferred default version \
19                    of Python.
20homepage            http://www.macports.org
21
22distfiles
23use_configure       no
24build {}
25destroot {}
26
27# Documentation for Python ports:
28#   PortGroup       select 1.0
29#   select.group    python
30#   select.file     ${filespath}/python[string map {. {}} ${branch}]
31
32# install all files
33select.entries      {python base} \
34                    {python none}
35
36platform darwin {
37    set apple_pythons [
38        if {${os.major} == 8} {
39            list python23-apple
40        } elseif {${os.major} == 9} {
41            list python25-apple
42        } elseif {${os.major} == 10} {
43            list python25-apple \
44                 python26-apple
45        } elseif {${os.major} == 11} {
46            list python25-apple \
47                 python26-apple \
48                 python27-apple
49        } elseif {${os.major} == 12 || ${os.major} == 13} {
50            list {python25-apple.mtln python25-apple} \
51                 {python26-apple.mtln python26-apple} \
52                 {python27-apple.mtln python27-apple}
53        } elseif {${os.major} >= 14} {
54            list {python26-apple.mtln python26-apple} \
55                 {python27-apple.mtln python27-apple}
56        }
57    ]
58    foreach python $apple_pythons {
59        select.entries-append [list python {*}$python]
60    }
61}
62
63livecheck.type     none
Note: See TracBrowser for help on using the repository browser.