commit: 4360ac2b1caf1be019ef4935a7d7571028a206b5 Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com> AuthorDate: Sat Jan 18 15:35:09 2025 +0000 Commit: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com> CommitDate: Sat Jan 18 15:35:09 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4360ac2b
dev-python/pyrime: fix build with pypy Closes: https://bugs.gentoo.org/946510 Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com> .../pyrime/files/pyrime-0.0.7-fix-meson-project.patch | 11 +++++++++++ dev-python/pyrime/pyrime-0.0.7.ebuild | 18 ++++++++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/dev-python/pyrime/files/pyrime-0.0.7-fix-meson-project.patch b/dev-python/pyrime/files/pyrime-0.0.7-fix-meson-project.patch new file mode 100644 index 000000000..4e0d4cd70 --- /dev/null +++ b/dev-python/pyrime/files/pyrime-0.0.7-fix-meson-project.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/946510 +https://github.com/Freed-Wu/pyrime/pull/3 +Using Cython requires both 'cython' and 'c' to be specified in the +project(). +--- a/meson.build ++++ b/meson.build +@@ -1,3 +1,3 @@ +-project('pyrime', 'cython', version: '0.0.7') ++project('pyrime', 'cython', 'c', version: '0.0.7') + + subdir('src/pyrime') diff --git a/dev-python/pyrime/pyrime-0.0.7.ebuild b/dev-python/pyrime/pyrime-0.0.7.ebuild index 1c8170357..599960818 100644 --- a/dev-python/pyrime/pyrime-0.0.7.ebuild +++ b/dev-python/pyrime/pyrime-0.0.7.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 +DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=meson-python PYTHON_COMPAT=( python3_{10..13} pypy3 ) inherit distutils-r1 pypi @@ -21,13 +22,8 @@ IUSE="+prompt-toolkit +ptpython" DEPEND=" app-i18n/librime - dev-python/cython[${PYTHON_USEDEP}] dev-python/autopxd[${PYTHON_USEDEP}] " - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - RDEPEND=" $DEPEND prompt-toolkit? ( @@ -39,6 +35,16 @@ RDEPEND=" dev-python/platformdirs[${PYTHON_USEDEP}] ) " +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/${P}-fix-meson-project.patch" +) + +EPYTEST_XDIST=1 +distutils_enable_tests pytest python_test() { epytest
