diff --git a/srcpkgs/python3-tkinter/template b/srcpkgs/python3-tkinter/template index b27d2cacd2d..4ee244cde57 100644 --- a/srcpkgs/python3-tkinter/template +++ b/srcpkgs/python3-tkinter/template @@ -7,7 +7,7 @@ _desc="Python programming language" pkgname=python3-tkinter -version=3.9.0 +version=3.9.1 revision=1 wrksrc="Python-${version}" pycompile_dirs=" @@ -22,13 +22,14 @@ maintainer="Andrew J. Hesford " homepage="https://www.python.org" license="Python-2.0" distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz" -checksum=9c73e63c99855709b9be0b3cc9e5b072cb60f37311e8c4e50f15576a0bf82854 +checksum=991c3f8ac97992f3d308fefeb03a64db462574eadbff34ce8bc5bb583d9903ff pre_configure() { # Ensure that internal copies of expat and libffi are not used. rm -r Modules/expat rm -r Modules/_ctypes/{darwin,libffi}* } + do_configure() { local _args unset GCC CC CXX CPP LD AR AS RANLIB @@ -48,10 +49,17 @@ do_configure() { --with-threads --with-computed-gotos --with-dbmliborder=gdbm:ndbm \ --with-system-expat --with-system-ffi --without-ensurepip } + do_build() { export PATH="$PATH:$wrksrc/hostpython" make ${makejobs} } + +do_check() { + # The test_tk suite requires DISPLAY, so just test idle and tcl + make ${makejobs} EXTRATESTOPTS="test_tcl test_idle test_ttk_textonly" test +} + do_install() { export PATH="$PATH:$wrksrc/hostpython" make DESTDIR=${wrksrc}/${pkgname}-${version}-install altinstall