Ignore:
Timestamp:
May 25, 2015, 4:38:21 AM (4 years ago)
Author:
larryv@…
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}".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/python_select/Portfile

    r136724 r136725  
    2323use_configure       no
    2424build {}
     25destroot {}
    2526
    2627# Documentation for python ports:
     
    3031
    3132# install all files
    32 destroot {
    33     select::install python ${filespath}/base
    34     select::install python ${filespath}/none
    35 }
     33select.entries              {python base} \
     34                            {python none}
    3635
    3736platform darwin 8 {
    38     post-destroot {
    39         select::install python ${filespath}/python23-apple
    40     }
     37    select.entries-append   {python python23-apple}
    4138}
    4239
    4340platform darwin 9 {
    44     post-destroot {
    45         select::install python ${filespath}/python25-apple
    46     }
     41    select.entries-append   {python python25-apple}
    4742}
    4843
    4944platform darwin 10 {
    50     post-destroot {
    51         select::install python ${filespath}/python25-apple
    52         select::install python ${filespath}/python26-apple
    53     }
     45    select.entries-append   {python python25-apple} \
     46                            {python python26-apple}
    5447}
    5548
    5649platform darwin 11 {
    57     post-destroot {
    58         select::install python ${filespath}/python25-apple
    59         select::install python ${filespath}/python26-apple
    60         select::install python ${filespath}/python27-apple
    61     }
     50    select.entries-append   {python python25-apple} \
     51                            {python python26-apple} \
     52                            {python python27-apple}
    6253}
    6354
    6455platform darwin 12 {
    65     post-destroot {
    66         select::install python ${filespath}/python25-apple.mtln python25-apple
    67         select::install python ${filespath}/python26-apple.mtln python26-apple
    68         select::install python ${filespath}/python27-apple.mtln python27-apple
    69     }
     56    select.entries-append   {python python25-apple.mtln python25-apple} \
     57                            {python python26-apple.mtln python26-apple} \
     58                            {python python27-apple.mtln python27-apple}
    7059}
    7160
    7261platform darwin 13 {
    73     post-destroot {
    74         select::install python ${filespath}/python25-apple.mtln python25-apple
    75         select::install python ${filespath}/python26-apple.mtln python26-apple
    76         select::install python ${filespath}/python27-apple.mtln python27-apple
    77     }
     62    select.entries-append   {python python25-apple.mtln python25-apple} \
     63                            {python python26-apple.mtln python26-apple} \
     64                            {python python27-apple.mtln python27-apple}
    7865}
    7966
    8067platform darwin 14 {
    81     post-destroot {
    82         select::install python ${filespath}/python26-apple.mtln python26-apple
    83         select::install python ${filespath}/python27-apple.mtln python27-apple
    84     }
     68    select.entries-append   {python python26-apple.mtln python26-apple} \
     69                            {python python27-apple.mtln python27-apple}
    8570}
    8671
Note: See TracChangeset for help on using the changeset viewer.