# $Id: Portfile 34729 2008-03-03 22:07:37Z raimue@macports.org $ PortSystem 1.0 name python_select version 0.1 revision 3 categories sysutils platforms darwin maintainers raimue description Switch the default python interpreter long_description python_select lets you switch the default python interpreter. \ python_select symlinks the standard python executables \ in the MacPorts prefix to the selected version. homepage http://svn.macports.org/repository/macports/users/mww/select/ master_sites ${homepage} distname select-${version} checksums sha1 18e1f95c2ddd88210aa52eb696261859af2dc3a4 configure.args --mandir=${prefix}/share/man --name=python # install all files post-destroot { xinstall -m 755 -d ${destroot}${prefix}/etc/select/python xinstall -m 644 -W ${filespath} base ${destroot}${prefix}/etc/select/python } platform darwin 7 { post-destroot { xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python system "${destroot}${prefix}/bin/${name} -i ${destroot} python23-apple" } } platform darwin 8 { post-destroot { xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python system "${destroot}${prefix}/bin/${name} -i ${destroot} python23-apple" } } platform darwin 9 { post-destroot { xinstall -m 644 -W ${filespath} python25-apple ${destroot}${prefix}/etc/select/python system "${destroot}${prefix}/bin/${name} -i ${destroot} python25-apple" } } livecheck.check none # Documentation for python ports: # Modify these two lines and add them into your destroot phase # xinstall -m 755 -d ${destroot}${prefix}/etc/select/python # xinstall -m 644 ${filespath}/python2x ${destroot}${prefix}/etc/select/python/