commit:     e1a63fe870b79c2c65222006be03b5cac55bb33e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 13 12:56:56 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 13 12:56:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1a63fe8

dev-python/pycairo: Revert build system changes

Closes: https://bugs.gentoo.org/966038
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 ...airo-1.29.0.ebuild => pycairo-1.29.0-r1.ebuild} | 24 +++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)

diff --git a/dev-python/pycairo/pycairo-1.29.0.ebuild 
b/dev-python/pycairo/pycairo-1.29.0-r1.ebuild
similarity index 72%
rename from dev-python/pycairo/pycairo-1.29.0.ebuild
rename to dev-python/pycairo/pycairo-1.29.0-r1.ebuild
index 4354c52e47a0..10e2fc132ccf 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)
-PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
+# 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_{11..12} python3_{13..14}{,t} pypy3_11 )
 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

Reply via email to