From c375181c77f480d07aba1b29ba20e524458a7361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Fri, 22 May 2026 18:33:03 -0300 Subject: [PATCH] python3-pplpy: update to 0.9.0. --- srcpkgs/python3-pplpy/template | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python3-pplpy/template b/srcpkgs/python3-pplpy/template index 7e3c50646bf096..3afca115ec80d6 100644 --- a/srcpkgs/python3-pplpy/template +++ b/srcpkgs/python3-pplpy/template @@ -1,21 +1,30 @@ # Template file for 'python3-pplpy' pkgname=python3-pplpy -version=0.8.10 -revision=3 +version=0.9.0 +revision=1 build_style=python3-pep517 -hostmakedepends="python3-setuptools python3-wheel python3-Cython +build_helper="meson qemu" +hostmakedepends="python3-meson-python pkg-config python3-Cython python3-cysignals python3-gmpy2" makedepends="python3-devel gmp-devel gmpxx-devel ppl-devel mpfr-devel libmpc-devel pari-devel" -depends="python3" +depends="python3-cysignals python3-gmpy2" +checkdepends="python3-pytest" short_desc="Python wrapper to the C++ Parma Polyhedra Library (PPL)" maintainer="Gonzalo TornarĂ­a " license="GPL-3.0-or-later" homepage="https://github.com/sagemath/pplpy" changelog="https://raw.githubusercontent.com/sagemath/pplpy/master/CHANGES.txt" distfiles="${PYPI_SITE}/p/pplpy/pplpy-${version}.tar.gz" -checksum=d42a216c82914dcf4d7c000debc98bb336b8f83e026ba5d952cccd9f8074effd +checksum=8289c50d680ce3f9eacac666cb4cdbbd8a711959e7cc7cf06f7fdb4035d0cc5d -do_check() { - PYTHONPATH=$(cd build/lib* && pwd) python3 setup.py test +pre_configure() { + if [ "$CROSS_BUILD" ]; then + # run the target `ppl-config` + cat > ${XBPS_WRAPPERDIR}/ppl-config <<-__EOF__ + #! /bin/sh + exec /usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static ${XBPS_CROSS_BASE}/usr/bin/ppl-config + __EOF__ + chmod 755 ${XBPS_WRAPPERDIR}/ppl-config + fi }