Changeset 37820 for trunk/dports
- Timestamp:
- Jun 24, 2008, 10:01:51 PM (16 years ago)
- Location:
- trunk/dports/lang/python30
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/lang/python30
- Property svnmerge-integrated changed
/branches/python-frameworks/dports/lang/python30 merged: 37481,37529,37811-37812
- Property svnmerge-integrated changed
-
trunk/dports/lang/python30/Portfile
r34838 r37820 3 3 PortSystem 1.0 4 4 5 name python30 6 version 3.0a3 7 revision 3 8 categories lang 9 platforms darwin 10 maintainers mww 11 description An interpreted, object-oriented programming language 12 long_description Python is an interpreted, interactive, object-oriented \ 13 programming language. This version is an ALPHA release! 5 name python30 6 version 3.0a3 7 revision 4 8 set major 3 9 set branch 3.0 10 categories lang 11 platforms darwin 12 maintainers mww 14 13 15 homepage http://www.python.org 16 master_sites http://www.python.org/ftp/python/3.0/ 17 distname Python-${version} 18 extract.suffix .tgz 19 checksums md5 ec525b7e7fe4383e8394fab721663252 20 patchfiles patch-setup.py.diff \ 21 patch-Makefile.pre.in.diff \ 22 patch-Lib-cgi.py.diff 14 description An interpreted, object-oriented programming language 15 long_description Python is an interpreted, interactive, object-oriented \ 16 programming language. This version is an ALPHA release! 23 17 24 depends_lib port:gettext 25 depends_run port:python_select 26 configure.args --without-readline --enable-shared --enable-ipv6 --disable-tk --enable-framework=${prefix}/Library/Frameworks 18 homepage http://www.python.org/ 19 master_sites ${homepage}/ftp/python/${version}/ \ 20 ftp://ftp.python.org/pub/python/${version}/ \ 21 ftp://ftp.fastorama.com/mirrors/ftp.python.org/pub/python/${version}/ \ 22 ftp://ftp.python.jp/pub/python/${version}/ 27 23 28 destroot.target libpython3.0.dylib frameworkinstall maninstall 24 distname Python-${version} 25 extract.suffix .tgz 29 26 30 post-patch { 31 reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py 32 reinplace "s|/Applications/MacPython|/Applications/MacPorts/MacPython|g" \ 33 Mac/Makefile.in Mac/IDLE/Makefile.in \ 34 Mac/IDLE/Makefile.in Mac/Tools/Doc/setup.py \ 35 Mac/PythonLauncher/Makefile.in \ 36 Mac/BuildScript/build-installer.py 37 xinstall -m 644 ${filespath}/mac_japanese.py Lib/encodings/x_mac_japanese.py 38 } 27 checksums md5 ec525b7e7fe4383e8394fab721663252 28 29 patchfiles patch-setup.py \ 30 patch-Makefile.pre.in.diff 31 32 depends_lib port:gettext 33 34 configure.args --enable-shared \ 35 --enable-framework=${prefix}/Library/Frameworks \ 36 --mandir=${prefix}/share/man \ 37 --without-readline \ 38 --disable-tk \ 39 --enable-ipv6 40 41 use_parallel_build no 42 43 build.target all libpython${branch}.dylib 44 45 test.run yes 46 test.target test 47 48 destroot.target frameworkinstall maninstall 39 49 40 50 post-destroot { 41 system "cd ${destroot}${prefix}/bin && \ 42 rm idle pydoc python python-config pythonw smtpd.py" 43 system "cd ${destroot}${prefix}/share/man/man1 && \ 44 ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/share/man/man1/python.1 python3.0.1" 51 set framewpath ${prefix}/Library/Frameworks/Python.framework 52 set framewdir ${framewpath}/Versions/${branch} 45 53 46 system "cd ${destroot}${prefix}/lib && \ 47 ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/lib/libpython3.0.dylib && \ 48 ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0" 54 foreach dir { lib include } { 55 file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir} 56 ln -s ${destroot}${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch} 57 } 49 58 50 system "mkdir -p ${destroot}${prefix}/include && \ 51 cd ${destroot}${prefix}/include && \ 52 ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/include/python3.0" 59 file rename ${destroot}${framewdir}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib 60 ln -s ${destroot}${prefix}/lib/libpython${branch}.dylib ${destroot}${framewdir}/lib/libpython${branch}.dylib 53 61 54 # install select file for python_select 55 xinstall -m 755 -d ${destroot}${prefix}/etc/select/python 56 xinstall -m 644 ${filespath}/python30 ${destroot}${prefix}/etc/select/python/ 57 system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework && \ 58 rm -f Headers Resources Python && \ 59 rm -f Versions/Current" 62 file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1 60 63 61 system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.0/share/man/man1/ && \ 62 gzip python.1" 64 # delete symlinks without version suffix, use python_select instead to choose version 65 foreach bin { python pythonw idle pydoc smtpd.py python-config } { 66 file delete ${destroot}${prefix}/bin/${bin} 67 } 68 foreach bin [list python${branch} pythonw${branch} idle${branch} pydoc${branch} smtpd${branch}.py python${branch}-config] { 69 file rename -force ${destroot}${framewdir}/bin/${bin} ${destroot}${prefix}/bin 70 ln -s ${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin} 71 } 72 73 foreach dir { Headers Resources Python Versions/Current } { 74 file delete ${destroot}${framewpath}/${dir} 75 } 76 77 # install select file for python_select 78 xinstall -m 755 -d ${destroot}${prefix}/etc/select/python 79 xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/ 63 80 } 64 81 65 82 post-activate { 66 ui_msg "\n\n\nTo fully complete your installation and make python 3.0 the default, \ 67 please run\n\nsudo python_select python30\n\n" 83 ui_msg "\nTo fully complete your installation and make python $branch the default, please run 84 \n\tsudo port install python_select \ 85 \n\tsudo python_select $name\n" 68 86 } 69 87 70 platform darwin 7 { 71 # there is no SystemStubs on 10.3 72 post-patch { 73 reinplace "s|-lSystemStubs||g" \ 74 configure configure.in 75 } 76 post-configure { 77 reinplace "s|-lSystemStubs||g" \ 78 Makefile.pre.in Makefile.pre Makefile 79 } 80 # To avoid GCC incompatibility issue. See http://nxg.me.uk/note/2004/restFP/ (by ebgssth@gmail.com, ticket #13322) 81 configure.ldflags-append "-lcc_dynamic" 88 variant universal { 89 configure.args-append --enable-universalsdk 82 90 } 83 91 84 85 livecheck.check regex 86 livecheck.url http://www.python.org/download/releases/3.0/ 87 livecheck.regex /3.0/Python-(\[0-9a-z.\]+)\\.tgz 92 livecheck.check regex 93 livecheck.url ${homepage}download/releases/ 94 livecheck.regex Python (${branch}a\[0-9\]+)
Note: See TracChangeset
for help on using the changeset viewer.