Ticket #16863: python24.diff
File python24.diff, 1.7 KB (added by afb@…, 16 years ago) |
---|
-
Portfile
70 70 71 71 destroot.target frameworkinstall maninstall 72 72 73 platform macosx { 73 74 post-destroot { 74 75 set framewpath ${prefix}/Library/Frameworks/Python.framework 75 76 set framewdir ${framewpath}/Versions/${branch} … … 101 102 xinstall -m 755 -d ${destroot}${prefix}/etc/select/python 102 103 xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/ 103 104 } 105 } 104 106 105 107 post-activate { 106 108 ui_msg "\nTo fully complete your installation and make python $branch the default, please run … … 117 119 configure.cppflags-append -D__DARWIN_UNIX03 118 120 } 119 121 122 platform puredarwin { 123 configure.args-delete --enable-framework=${prefix}/Library/Frameworks 124 configure.args-append --disable-toolbox-glue --disable-framework 125 destroot.target install maninstall 126 127 post-destroot { 128 # delete symlinks without version suffix, use python_select instead to choose version 129 foreach bin { python pythonw idle pydoc smtpd.py python-config } { 130 file delete ${destroot}${prefix}/bin/${bin} 131 } 132 133 file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1 134 135 # install select file for python_select 136 xinstall -m 755 -d ${destroot}${prefix}/etc/select/python 137 xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/ 138 } 139 } 140 120 141 # TODO: test if this universal variant actually works 121 142 # variant universal { 122 143 # configure.args-append --enable-universalsdk