Ticket #16933: Portfile.diff
File Portfile.diff, 2.9 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 4 4 5 5 name python26 6 6 version 2.6 7 revision 27 revision 3 8 8 set major [lindex [split $version .] 0] 9 9 set branch [join [lrange [split ${version} .] 0 1] .] 10 10 categories lang … … 51 51 52 52 configure.args --enable-shared \ 53 53 --enable-framework=${frameworks_dir} \ 54 --mandir=${prefix}/share/man \55 --without-readline \56 --disable-tk \57 54 --enable-ipv6 58 55 59 56 use_parallel_build no … … 64 61 ${worksrcpath}/Mac/Makefile.in ${worksrcpath}/Mac/IDLE/Makefile.in \ 65 62 ${worksrcpath}/Mac/Tools/Doc/setup.py \ 66 63 ${worksrcpath}/Mac/PythonLauncher/Makefile.in 67 reinplace "s|xargs -0 rm -r|xargs -0 rm -rf|g" \ 64 65 # See http://trac.macports.org/changeset/37861 66 reinplace "s|xargs -0 rm -r|/usr/bin/xargs -0 /bin/rm -r|g" \ 68 67 ${worksrcpath}/Mac/PythonLauncher/Makefile.in 69 68 } 70 69 … … 79 78 set framewpath ${frameworks_dir}/Python.framework 80 79 set framewdir ${framewpath}/Versions/${branch} 81 80 82 foreach dir { lib include } {83 file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}84 ln -s ${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch}85 }86 87 ln -s ${framewdir}/Python ${destroot}${prefix}/lib/libpython${branch}.dylib88 89 file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.190 91 # delete symlinks without version suffix, use python_select instead to choose version92 foreach bin { python pythonw idle pydoc smtpd.py python-config } {93 file delete ${destroot}${prefix}/bin/${bin}94 }95 foreach bin [list python${branch} pythonw${branch} idle${branch} pydoc${branch} smtpd${branch}.py python${branch}-config] {96 file rename -force ${destroot}${framewdir}/bin/${bin} ${destroot}${prefix}/bin97 ln -s ${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin}98 }99 100 81 foreach dir { Headers Resources Python Versions/Current } { 101 82 file delete ${destroot}${framewpath}/${dir} 102 83 } 103 84 85 ln -s ${framewdir}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1 86 104 87 # install select file for python_select 105 88 xinstall -m 755 -d ${destroot}${prefix}/etc/select/python 106 89 xinstall -m 644 ${filespath}/${name} ${destroot}${prefix}/etc/select/python/ … … 110 93 ui_msg "\nTo fully complete your installation and make python $branch the default, please run 111 94 \n\tsudo port install python_select \ 112 95 \n\tsudo python_select $name\n" 96 ui_msg "The program IDLE will not run until py26-tkinter is installed.\n" 113 97 } 114 98 115 99 platform darwin 7 {