[152558] trunk/dports/sysutils/python_select/Portfile
Ryan Schmidt
ryandesign at macports.org
Mon Sep 12 12:45:04 PDT 2016
> On Sep 12, 2016, at 11:22 AM, larryv at macports.org wrote:
>
> Revision
> 152558
> Author
> larryv at macports.org
> Date
> 2016-09-12 09:22:25 -0700 (Mon, 12 Sep 2016)
> Log Message
>
> python_select: Refactor to reduce repetition
> Modified Paths
>
> • trunk/dports/sysutils/python_select/Portfile
> Diff
>
> Modified: trunk/dports/sysutils/python_select/Portfile (152557 => 152558)
>
> --- trunk/dports/sysutils/python_select/Portfile 2016-09-12 15:41:20 UTC (rev 152557)
> +++ trunk/dports/sysutils/python_select/Portfile 2016-09-12 16:22:25 UTC (rev 152558)
>
> @@ -30,48 +30,34 @@
>
> # select.file ${filespath}/python[string map {. {}} ${branch}]
>
>
>
> # install all files
>
> -select.entries {python base} \
> - {python none}
>
> +select.entries {python base} \
> + {python none}
>
>
>
> -platform darwin 8 {
> - select.entries-append {python python23-apple}
>
> +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}
> + } elseif {${os.major} >= 14} {
> + list {python26-apple.mtln python26-apple} \
> + {python27-apple.mtln python27-apple}
> + }
> + ]
> + foreach python $apple_pythons {
> + select.entries-append [list python2 {*}$python]
> + }
>
> }
This takes care of adding the necessary bits for Sierra, yes?
Do we need to revbump for any early adopters who already had this port installed?
More information about the macports-dev
mailing list