# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
set branch [join [lrange [split ${version} .] 0 1] .]
description An interpreted, object-oriented programming language
long_description Python is an interpreted, interactive, object-oriented \
homepage https://www.python.org/
master_sites https://ftp.python.org/ftp/python/${version}/
distname Python-${version}
checksums md5 5d45979c5f30fb2dd5f067c6b06b88e4 \
sha1 29f6dd41bf09c5e04311b367cbb7604fa016e699 \
rmd160 92f0a955971f187a7d50c6422168202ec551bf22
# patch-Lib-distutils-dist.py.diff comes from
# <https://bugs.python.org/issue1180>
patchfiles patch-Makefile.pre.in.diff \
patch-Lib-distutils-dist.py.diff \
patch-setup.py-disabled_modules.diff \
depends_lib port:gettext port:zlib path:lib/libssl.dylib:openssl \
port:sqlite3 port:db46 port:bzip2 \
port:libedit port:ncurses
depends_run port:python_select
configure.args --enable-shared \
--enable-framework=${frameworks_dir} \
--mandir=${prefix}/share/man \
--with-cxx=${configure.cxx}
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py \
reinplace "s|/Applications/MacPython|${applications_dir}/MacPython|g" \
${worksrcpath}/Mac/Makefile.in \
${worksrcpath}/Mac/IDLE/Makefile.in \
${worksrcpath}/Mac/Tools/Doc/setup.py \
${worksrcpath}/Mac/PythonLauncher/Makefile.in \
${worksrcpath}/Mac/BuildScript/build-installer.py
reinplace "s|xargs -0 rm -r|xargs -0 rm -rf|g" \