Ignore:
Timestamp:
May 25, 2015, 4:31:35 AM (4 years ago)
Author:
larryv@…
Message:

select-1.0: Allow relative paths for files in filespath

This lets ports reference their select files by filename alone. Thus,
this "port"...

PortGroup       select 1.0
...
select.group    foo
select.file     ${filespath}/bar

... can now be written as...

PortGroup       select 1.0
...
select.group    foo
select.file     bar

Absolute paths may still be used if desired.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/select-1.0.tcl

    r136721 r136722  
    4242
    4343proc select::install {group file {name ""}} {
    44     global applications_dir destroot developer_dir \
     44    global applications_dir destroot developer_dir filespath \
    4545            frameworks_dir prefix
     46
     47    if {[file pathtype $file] eq "relative"} {
     48        set file ${filespath}/$file
     49    }
    4650
    4751    # Optional argument specifies file name
Note: See TracChangeset for help on using the changeset viewer.