Ticket #16334: python25-Portfile.diff
File python25-Portfile.diff, 1.8 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 34 34 35 35 configure.args --enable-shared \ 36 36 --enable-framework=${frameworks_dir} \ 37 --mandir=${prefix}/share/man \38 37 --without-readline \ 39 38 --disable-tk \ 40 39 --enable-ipv6 … … 76 75 set framewdir ${framewpath}/Versions/${branch} 77 76 78 77 foreach dir { lib include } { 79 file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir} 80 ln -s ${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch} 78 ln -s ${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}/python${branch} 81 79 } 82 80 83 81 ln -s ${framewdir}/Python ${destroot}${prefix}/lib/libpython${branch}.dylib 84 82 85 file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.183 ln -s ${framewdir}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1 86 84 87 85 # delete symlinks without version suffix, use python_select instead to choose version 88 86 foreach bin { python pythonw idle pydoc smtpd.py python-config } { 89 87 file delete ${destroot}${prefix}/bin/${bin} 90 88 } 91 foreach bin [list python${branch} pythonw${branch} idle${branch} pydoc${branch} smtpd${branch}.py python${branch}-config] {92 file rename -force ${destroot}${framewdir}/bin/${bin} ${destroot}${prefix}/bin93 ln -s ${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin}94 }95 89 96 90 foreach dir { Headers Resources Python Versions/Current } { 97 91 file delete ${destroot}${framewpath}/${dir}