# $Id: Portfile 37812 2008-06-24 20:38:25Z raimue@macports.org $ PortSystem 1.0 name python30 version 3.0a3 revision 4 set major 3 set branch 3.0 categories lang platforms darwin maintainers mww description An interpreted, object-oriented programming language long_description Python is an interpreted, interactive, object-oriented \ programming language. This version is an ALPHA release! homepage http://www.python.org/ master_sites ${homepage}/ftp/python/${version}/ \ ftp://ftp.python.org/pub/python/${version}/ \ ftp://ftp.fastorama.com/mirrors/ftp.python.org/pub/python/${version}/ \ ftp://ftp.python.jp/pub/python/${version}/ distname Python-${version} extract.suffix .tgz checksums md5 ec525b7e7fe4383e8394fab721663252 patchfiles patch-setup.py \ patch-Makefile.pre.in.diff depends_lib port:gettext configure.args --enable-shared \ --enable-framework=${prefix}/Library/Frameworks \ --mandir=${prefix}/share/man \ --without-readline \ --disable-tk \ --enable-ipv6 use_parallel_build no build.target all libpython${branch}.dylib test.run yes test.target test destroot.target frameworkinstall maninstall post-destroot { set framewpath ${prefix}/Library/Frameworks/Python.framework set framewdir ${framewpath}/Versions/${branch} foreach dir { lib include } { file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir} ln -s ${destroot}${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch} } file rename ${destroot}${framewdir}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib ln -s ${destroot}${prefix}/lib/libpython${branch}.dylib ${destroot}${framewdir}/lib/libpython${branch}.dylib file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1 # delete symlinks without version suffix, use python_select instead to choose version foreach bin { python pythonw idle pydoc smtpd.py python-config } { file delete ${destroot}${prefix}/bin/${bin} } foreach bin [list python${branch} pythonw${branch} idle${branch} pydoc${branch} smtpd${branch}.py python${branch}-config] { file rename -force ${destroot}${framewdir}/bin/${bin} ${destroot}${prefix}/bin ln -s ${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin} } foreach dir { Headers Resources Python Versions/Current } { file delete ${destroot}${framewpath}/${dir} } # install select file for python_select xinstall -m 755 -d ${destroot}${prefix}/etc/select/python xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/ } post-activate { ui_msg "\nTo fully complete your installation and make python $branch the default, please run \n\tsudo port install python_select \ \n\tsudo python_select $name\n" } variant universal { configure.args-append --enable-universalsdk } livecheck.check regex livecheck.url ${homepage}download/releases/ livecheck.regex Python (${branch}a\[0-9\]+)