Ticket #16863: python25.diff
File python25.diff, 1.7 KB (added by afb@…, 16 years ago) |
---|
-
Portfile
73 73 74 74 destroot.target frameworkinstall maninstall 75 75 76 platform macosx { 76 77 post-destroot { 77 78 set framewpath ${prefix}/Library/Frameworks/Python.framework 78 79 set framewdir ${framewpath}/Versions/${branch} … … 104 105 xinstall -m 755 -d ${destroot}${prefix}/etc/select/python 105 106 xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/ 106 107 } 108 } 107 109 108 110 post-activate { 109 111 ui_msg "\nTo fully complete your installation and make python $branch the default, please run … … 134 136 configure.cppflags-append -D__DARWIN_UNIX03 135 137 } 136 138 139 platform puredarwin { 140 patchfiles-append patch-Modules-posixmodule.c.diff 141 configure.args-delete --enable-framework=${prefix}/Library/Frameworks 142 configure.args-append --disable-toolbox-glue --disable-framework 143 destroot.target install maninstall 144 145 post-destroot { 146 # delete symlinks without version suffix, use python_select instead to choose version 147 foreach bin { python pythonw idle pydoc smtpd.py python-config } { 148 file delete ${destroot}${prefix}/bin/${bin} 149 } 150 151 file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1 152 153 # install select file for python_select 154 xinstall -m 755 -d ${destroot}${prefix}/etc/select/python 155 xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/ 156 } 157 } 158 137 159 variant universal { 138 160 configure.args-append --enable-universalsdk 139 161 }