Ignore:
Timestamp:
Aug 17, 2012, 10:05:18 PM (7 years ago)
Author:
blair@…
Message:

python-1.0.tcl: rename Python 2.{4,5} files in ${prefix}/bin.

This fixes an inconsistently between ports that work with Python
2.{6,7} where the binary is installed in ${prefix}/Library/Frameworks
and ports that work with Python 2.{4,5} where the binary is installed
into ${prefix}/bin. With this change, by default, all files installed
in ${prefix}/bin end in -${python.branch} so the port doesn't have to
handle different Python versions.

File:
1 edited

Legend:

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

    r94386 r96718  
    152152                }
    153153            }
     154            if {${python.move_binaries}} {
     155                foreach bin [glob -nocomplain -tails -directory "${destroot}${prefix}/bin" *] {
     156                    move ${destroot}${prefix}/bin/${bin} \
     157                        ${destroot}${prefix}/bin/${bin}${python.move_binaries_suffix}
     158                }
     159            }
    154160        }
    155161        set python._addedcode 1
     
    255261            }
    256262        }
     263        move_binaries {
     264            if {${python.version} == 24 || ${python.version} == 25} {
     265                return yes
     266            } else {
     267                return no
     268            }
     269        }
    257270        default {
    258271            error "unknown option $var"
     
    269282default python.link_binaries {[python_get_defaults link_binaries]}
    270283default python.link_binaries_suffix {-${python.branch}}
     284
     285options python.move_binaries python.move_binaries_suffix
     286default python.move_binaries {[python_get_defaults move_binaries]}
     287default python.move_binaries_suffix {-${python.branch}}
Note: See TracChangeset for help on using the changeset viewer.