summaryrefslogtreecommitdiff
path: root/dev-python/pycairo
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-11-13 21:36:47 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-11-13 21:36:47 +0000
commitb92800ff808bd9e8bb18292c49e7f11e6b6541df (patch)
tree7e3951663e7cd2ceb8b1c01df60f0779dc8fa1a6 /dev-python/pycairo
parent0a3f5bd985c689ffb11ac15fe58ae187e717fc98 (diff)
downloadbaldeagleos-repo-b92800ff808bd9e8bb18292c49e7f11e6b6541df.tar.gz
baldeagleos-repo-b92800ff808bd9e8bb18292c49e7f11e6b6541df.tar.xz
baldeagleos-repo-b92800ff808bd9e8bb18292c49e7f11e6b6541df.zip
Adding metadata
Diffstat (limited to 'dev-python/pycairo')
-rw-r--r--dev-python/pycairo/pycairo-1.29.0-r1.ebuild (renamed from dev-python/pycairo/pycairo-1.29.0.ebuild)22
1 files changed, 16 insertions, 6 deletions
diff --git a/dev-python/pycairo/pycairo-1.29.0.ebuild b/dev-python/pycairo/pycairo-1.29.0-r1.ebuild
index c3aa5ffee964..3e516ab29025 100644
--- a/dev-python/pycairo/pycairo-1.29.0.ebuild
+++ b/dev-python/pycairo/pycairo-1.29.0-r1.ebuild
@@ -4,12 +4,13 @@
EAPI=8
DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=meson-python
-# TODO: readd 3.13t & 3.14t (requires same in meson-python)
+# we aren't using meson-python, as that results in removing .pc file
+# https://bugs.gentoo.org/966038
+DISTUTILS_USE_PEP517=no
PYTHON_COMPAT=( python3_{10..14} )
PYTHON_REQ_USE="threads(+)"
-inherit distutils-r1
+inherit meson distutils-r1
DESCRIPTION="Python bindings for the cairo library"
HOMEPAGE="
@@ -43,18 +44,27 @@ distutils_enable_sphinx docs \
EPYTEST_PLUGINS=( hypothesis )
distutils_enable_tests pytest
-src_configure() {
- DISTUTILS_ARGS=(
+python_compile() {
+ local emesonargs=(
+ # TODO: move that to the eclass?
+ -Dpython.bytecompile=2
-Dtests="$(usex test true false)"
-Dno-x11="$(usex X false true)"
)
+
+ meson_src_configure
+ meson_src_compile
}
python_test() {
- rm -rf cairo || die
+ cd "${BUILD_DIR}" || die
epytest
}
+python_install() {
+ meson_src_install
+}
+
python_install_all() {
if use examples; then
dodoc -r examples