[28120] trunk/dports/lang/python24/Portfile

Anders F Björklund afb at macports.org
Tue Aug 21 08:18:26 PDT 2007


> Revision
> 28120
> Author
> raimue at macports.org
> Date
> 2007-08-21 06:41:55 -0700 (Tue, 21 Aug 2007)
>
> Log Message
> lang/python24:
> Don't install python binaries without version suffix.
> Use new python_select to choose your version.
>
> Modified Paths
> 	• 	trunk/dports/lang/python24/Portfile
>
> Diff
>
> Modified: trunk/dports/lang/python24/Portfile (28119 => 28120)
> --- trunk/dports/lang/python24/Portfile 2007-08-21 13:40:27 UTC (rev 
> 28119)
> +++ trunk/dports/lang/python24/Portfile 2007-08-21 13:41:55 UTC (rev 
> 28120)
> @@ -93,6 +93,20 @@
>      }
>  }
>
> +
> +# delete symlinks without version suffix, use python_select instead 
> to choose version
> +platform darwin {
> +    post-destroot {
> +        cd ${destroot}${prefix}
> +        file delete bin/python
> +        file delete bin/pythonw
> +        file delete bin/idle
> +        file delete bin/pydoc
> +        file delete bin/smtpd.py
> +        file rename share/man/man1/python.1 share/man/man1/python2.4.1
> +    }
> +}
> +
>  platform puredarwin {
>      configure.args-delete   
> --enable-framework=${prefix}/Library/Frameworks
>      configure.args-append   --disable-toolbox-glue --disable-framework

This change will break ports that depends on "python24" and then try to 
use the "python" binary, either directly with #!/opt/local/bin/python 
or with e.g. #!/usr/bin/env python.

Maybe those ports using port:python24 should be patched to use 
"python2.4" instead ?

--anders




More information about the macports-dev mailing list