Ignore:
Timestamp:
Aug 17, 2012, 8:53:28 PM (7 years ago)
Author:
blair@…
Message:

python25-1.0.tcl: rename files in ${prefix}/bin to end in -${python.branch}.

This makes this group consistent in behavior for files in
${prefix}/bin with higher numbered Python groups, which allows
consolidation between py2{5,6,7}-* port into a single py- port.

Inspired by code in python26-1.0.tcl.

File:
1 edited

Legend:

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

    r78508 r96712  
    7979        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
    8080}
     81
     82options         python.move_binaries python.move_binaries_suffix
     83default python.move_binaries yes
     84default python.move_binaries_suffix {-${python.branch}}
     85post-destroot {
     86    if {${python.move_binaries}} {
     87        foreach bin [glob -nocomplain -tails -directory "${destroot}${prefix}/bin" *] {
     88            move ${destroot}${prefix}/bin/${bin} \
     89                ${destroot}${prefix}/bin/${bin}${python.move_binaries_suffix}
     90        }
     91    }
     92}
Note: See TracChangeset for help on using the changeset viewer.