[136725] trunk/dports/sysutils/python_select/Portfile
larryv at macports.org
larryv at macports.org
Sun May 24 21:38:21 PDT 2015
Revision: 136725
https://trac.macports.org/changeset/136725
Author: larryv at macports.org
Date: 2015-05-24 21:38:21 -0700 (Sun, 24 May 2015)
Log Message:
-----------
python_select: Use new `select.entries` option
The `select.entries` option introduced in r136723 obviates the need to
call `select::install` directly.
The assumption that relative paths are in `filespath`, introduced in
r136722, obviates the need to litter the portfile with "${filespath}".
Revision Links:
--------------
https://trac.macports.org/changeset/136723
https://trac.macports.org/changeset/136722
Modified Paths:
--------------
trunk/dports/sysutils/python_select/Portfile
Modified: trunk/dports/sysutils/python_select/Portfile
===================================================================
--- trunk/dports/sysutils/python_select/Portfile 2015-05-25 04:38:19 UTC (rev 136724)
+++ trunk/dports/sysutils/python_select/Portfile 2015-05-25 04:38:21 UTC (rev 136725)
@@ -22,6 +22,7 @@
distfiles
use_configure no
build {}
+destroot {}
# Documentation for python ports:
# PortGroup select 1.0
@@ -29,59 +30,43 @@
# select.file ${filespath}/python[string map {. {}} ${branch}]
# install all files
-destroot {
- select::install python ${filespath}/base
- select::install python ${filespath}/none
-}
+select.entries {python base} \
+ {python none}
platform darwin 8 {
- post-destroot {
- select::install python ${filespath}/python23-apple
- }
+ select.entries-append {python python23-apple}
}
platform darwin 9 {
- post-destroot {
- select::install python ${filespath}/python25-apple
- }
+ select.entries-append {python python25-apple}
}
platform darwin 10 {
- post-destroot {
- select::install python ${filespath}/python25-apple
- select::install python ${filespath}/python26-apple
- }
+ select.entries-append {python python25-apple} \
+ {python python26-apple}
}
platform darwin 11 {
- post-destroot {
- select::install python ${filespath}/python25-apple
- select::install python ${filespath}/python26-apple
- select::install python ${filespath}/python27-apple
- }
+ select.entries-append {python python25-apple} \
+ {python python26-apple} \
+ {python python27-apple}
}
platform darwin 12 {
- post-destroot {
- select::install python ${filespath}/python25-apple.mtln python25-apple
- select::install python ${filespath}/python26-apple.mtln python26-apple
- select::install python ${filespath}/python27-apple.mtln python27-apple
- }
+ select.entries-append {python python25-apple.mtln python25-apple} \
+ {python python26-apple.mtln python26-apple} \
+ {python python27-apple.mtln python27-apple}
}
platform darwin 13 {
- post-destroot {
- select::install python ${filespath}/python25-apple.mtln python25-apple
- select::install python ${filespath}/python26-apple.mtln python26-apple
- select::install python ${filespath}/python27-apple.mtln python27-apple
- }
+ select.entries-append {python python25-apple.mtln python25-apple} \
+ {python python26-apple.mtln python26-apple} \
+ {python python27-apple.mtln python27-apple}
}
platform darwin 14 {
- post-destroot {
- select::install python ${filespath}/python26-apple.mtln python26-apple
- select::install python ${filespath}/python27-apple.mtln python27-apple
- }
+ select.entries-append {python python26-apple.mtln python26-apple} \
+ {python python27-apple.mtln python27-apple}
}
livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150524/99c52636/attachment.html>
More information about the macports-changes
mailing list