blob: 132a03801a9881feeb145cdaf5b852311167ae90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Python bindings for the Parma Polyhedra Library (PPL)"
HOMEPAGE="
https://github.com/sagemath/pplpy/
https://pypi.org/project/pplpy/
"
# The file headers under ppl/ contain the "or later" bit
LICENSE="GPL-3+"
# API/ABI changes in point releases
SLOT="0/${PV}"
KEYWORDS="amd64 ~riscv"
IUSE="doc"
DEPEND="
dev-libs/ppl
dev-python/cysignals[${PYTHON_USEDEP}]
>=dev-python/gmpy2-2.1.0_beta1[${PYTHON_USEDEP}]
"
RDEPEND="
${DEPEND}
"
BDEPEND="
dev-python/cython[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
"
python_compile() {
# https://bugs.gentoo.org/927770
distutils-r1_python_compile -j1
}
python_compile_all() {
rm -r ppl || die
use doc && build_sphinx docs/source
}
python_test(){
"${EPYTHON}" tests/runtests.py || die
}
|