Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions srcpkgs/python3-pplpy/template
Original file line number Diff line number Diff line change
@@ -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 <tornaria@cmat.edu.uy>"
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
}