Ignore:
Timestamp:
Dec 10, 2012, 9:29:24 AM (7 years ago)
Author:
raimue@…
Message:

group/select-1.0:
Allow installation of select files with a different name

File:
1 edited

Legend:

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

    r96776 r100379  
    4141namespace eval select {}
    4242
    43 proc select::install {group file} {
     43proc select::install {group file {name ""}} {
    4444    global prefix destroot frameworks_dir applications_dir developer_dir
    4545
     46    # Optional argument specifies file name
     47    if {${name} == ""} {
     48        set name [file tail ${file}]
     49    }
     50
    4651    xinstall -m 755 -d ${destroot}${prefix}/etc/select/${group}
    47     xinstall -m 644 ${file} ${destroot}${prefix}/etc/select/${group}
     52    xinstall -m 644 ${file} ${destroot}${prefix}/etc/select/${group}/${name}
    4853
    49     reinplace s|\${prefix}|${prefix}|g ${destroot}${prefix}/etc/select/${group}/[file tail ${file}]
    50     reinplace s|\${frameworks_dir}|${frameworks_dir}|g ${destroot}${prefix}/etc/select/${group}/[file tail ${file}]
    51     reinplace s|\${applications_dir}|${applications_dir}|g ${destroot}${prefix}/etc/select/${group}/[file tail ${file}]
    52     reinplace s|\${developer_dir}|${developer_dir}|g ${destroot}${prefix}/etc/select/${group}/[file tail ${file}]
     54    reinplace s|\${prefix}|${prefix}|g ${destroot}${prefix}/etc/select/${group}/${name}
     55    reinplace s|\${frameworks_dir}|${frameworks_dir}|g ${destroot}${prefix}/etc/select/${group}/${name}
     56    reinplace s|\${applications_dir}|${applications_dir}|g ${destroot}${prefix}/etc/select/${group}/${name}
     57    reinplace s|\${developer_dir}|${developer_dir}|g ${destroot}${prefix}/etc/select/${group}/${name}
    5358}
    5459
Note: See TracChangeset for help on using the changeset viewer.