Revision: 83074 http://trac.macports.org/changeset/83074 Author: jmr@macports.org Date: 2011-08-25 07:22:01 -0700 (Thu, 25 Aug 2011) Log Message: ----------- python portgroup: only set replaced_by when default_version is 24 Modified Paths: -------------- trunk/dports/_resources/port1.0/group/python-1.0.tcl Modified: trunk/dports/_resources/port1.0/group/python-1.0.tcl =================================================================== --- trunk/dports/_resources/port1.0/group/python-1.0.tcl 2011-08-25 12:22:06 UTC (rev 83073) +++ trunk/dports/_resources/port1.0/group/python-1.0.tcl 2011-08-25 14:22:01 UTC (rev 83074) @@ -84,8 +84,11 @@ # set up py-foo as a stub port that depends on the default pyXY-foo distfiles supported_archs noarch - replaced_by py[option python.default_version][string trimleft $name py] - depends_lib port:py[option python.default_version][string trimleft $name py] + global python.default_version + if {${python.default_version} == "24"} { + replaced_by py24[string trimleft $name py] + } + depends_lib port:py${python.default_version}[string trimleft $name py] build {} destroot { system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README" @@ -102,8 +105,11 @@ global name subport if {[string match py-* $name]} { if {$subport == $name || $subport == ""} { - replaced_by py[option python.default_version][string trimleft $name py] - depends_lib port:py[option python.default_version][string trimleft $name py] + global python.default_version + if {${python.default_version} == "24"} { + replaced_by py24[string trimleft $name py] + } + depends_lib port:py${python.default_version}[string trimleft $name py] } } else { depends_lib-append port:python[option python.default_version]