mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
python3-tkinter: update to 3.10.0.
This commit is contained in:
parent
9b61ec59f9
commit
b70e6ab284
1 changed files with 16 additions and 23 deletions
|
@ -8,9 +8,14 @@
|
||||||
_desc="Python programming language"
|
_desc="Python programming language"
|
||||||
|
|
||||||
pkgname=python3-tkinter
|
pkgname=python3-tkinter
|
||||||
version=3.9.7
|
version=3.10.0
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="Python-${version}"
|
wrksrc="Python-${version}"
|
||||||
|
build_style="gnu-configure"
|
||||||
|
configure_args="--enable-shared --enable-ipv6
|
||||||
|
--enable-loadable-sqlite-extensions --with-computed-gotos
|
||||||
|
--with-dbmliborder=gdbm:ndbm --with-system-expat --with-system-ffi
|
||||||
|
--without-ensurepip"
|
||||||
pycompile_dirs="
|
pycompile_dirs="
|
||||||
usr/lib/python${version%.*}/tkinter
|
usr/lib/python${version%.*}/tkinter
|
||||||
usr/lib/python${version%.*}/turtledemo
|
usr/lib/python${version%.*}/turtledemo
|
||||||
|
@ -23,37 +28,27 @@ maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
homepage="https://www.python.org"
|
homepage="https://www.python.org"
|
||||||
license="Python-2.0"
|
license="Python-2.0"
|
||||||
distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
|
distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
|
||||||
checksum=f8145616e68c00041d1a6399b76387390388f8359581abc24432bb969b5e3c57
|
checksum=5a99f8e7a6a11a7b98b4e75e0d1303d3832cada5534068f69c7b6222a7b1b002
|
||||||
|
|
||||||
pre_configure() {
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends+=" python3"
|
||||||
|
fi
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
# Ensure that internal copies of expat and libffi are not used.
|
# Ensure that internal copies of expat and libffi are not used.
|
||||||
rm -r Modules/expat
|
rm -r Modules/expat
|
||||||
rm -r Modules/_ctypes/{darwin,libffi}*
|
rm -r Modules/_ctypes/{darwin,libffi}*
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure() {
|
post_patch() {
|
||||||
local _args
|
|
||||||
unset GCC CC CXX CPP LD AR AS RANLIB
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
mkdir -p host-build
|
|
||||||
cd host-build
|
|
||||||
env -i PATH=$PATH XBPS_ARCH=$XBPS_ARCH CFLAGS=-Os ../configure
|
|
||||||
env -i PATH=$PATH XBPS_ARCH=$XBPS_ARCH make ${makejobs} python
|
|
||||||
mkdir -p ../hostpython
|
|
||||||
mv python ../hostpython
|
|
||||||
cd ..
|
|
||||||
patch -Np0 -i ${FILESDIR}/cross.patch
|
patch -Np0 -i ${FILESDIR}/cross.patch
|
||||||
_args="--build=${XBPS_MACHINE%%-musl}"
|
|
||||||
fi
|
fi
|
||||||
./configure ${configure_args} ${_args} \
|
|
||||||
--enable-shared --enable-ipv6 --enable-loadable-sqlite-extensions \
|
|
||||||
--with-computed-gotos --with-dbmliborder=gdbm:ndbm \
|
|
||||||
--with-system-expat --with-system-ffi --without-ensurepip
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_configure() {
|
||||||
export PATH="$PATH:$wrksrc/hostpython"
|
unset GCC CC CXX CPP LD AR AS RANLIB
|
||||||
make ${makejobs}
|
./configure ${configure_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
|
@ -62,8 +57,6 @@ do_check() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
export PATH="$PATH:$wrksrc/hostpython"
|
|
||||||
|
|
||||||
mkdir -p ${wrksrc}/tmp-destdir/usr/lib
|
mkdir -p ${wrksrc}/tmp-destdir/usr/lib
|
||||||
ln -s lib ${wrksrc}/tmp-destdir/usr/lib${XBPS_TARGET_WORDSIZE}
|
ln -s lib ${wrksrc}/tmp-destdir/usr/lib${XBPS_TARGET_WORDSIZE}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue