commit: 5c66a50f704c2c3dd32ba848a8137c6daa227e8a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat May 24 18:02:38 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat May 24 18:11:30 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c66a50f
app-i18n/ibus-cangjie: add 2.5.0 Fails tests w/ py3.11 so dropped that. Depending on the new releases of the cangjie suite as some binaries got renamed and wouldn't be surprised if other issues are there w/ mismatching too. Closes: https://bugs.gentoo.org/939888 Closes: https://bugs.gentoo.org/952144 Signed-off-by: Sam James <sam <AT> gentoo.org> app-i18n/ibus-cangjie/Manifest | 1 + .../files/ibus-cangjie-2.5.0-no-coverage.patch | 37 +++++++++++ app-i18n/ibus-cangjie/ibus-cangjie-2.5.0.ebuild | 73 ++++++++++++++++++++++ 3 files changed, 111 insertions(+) diff --git a/app-i18n/ibus-cangjie/Manifest b/app-i18n/ibus-cangjie/Manifest index d5264d994c36..4141528868db 100644 --- a/app-i18n/ibus-cangjie/Manifest +++ b/app-i18n/ibus-cangjie/Manifest @@ -1 +1,2 @@ DIST ibus-cangjie-2.4.tar.xz 150616 BLAKE2B 2e59acc1b05ce0dc3dad26ba663440d067bf28a549e79ec9d127de414d715f5e376f426db5b415255eb63aa13677e59643889481f5e39c946399d4d4fe15a468 SHA512 cef9562fc4a5f3b78881c09b43e502f02322148e501022d3f80989caef4ca98ae26903e9a3dcc422feeba7712a8321c731ba229429e52fe919db5144aa0ead47 +DIST ibus-cangjie-2.5.0.tar.xz 53412 BLAKE2B 1bb6801ef7d2d8c62ebdbf2108006830291113bfcd3a84f316786247d255adf771a57beda98ecdf35467889dbc90c35ca69c1752fb75ae7aead499ac35654127 SHA512 f98b898126d1e1a6652e1f3e041cf9888b97d00802b92b0b22ea0bef2d17b06631e60d03633567950b132d6220f7414b6101a8ebc0640c696d0e2387d24ad765 diff --git a/app-i18n/ibus-cangjie/files/ibus-cangjie-2.5.0-no-coverage.patch b/app-i18n/ibus-cangjie/files/ibus-cangjie-2.5.0-no-coverage.patch new file mode 100644 index 000000000000..531c244a6282 --- /dev/null +++ b/app-i18n/ibus-cangjie/files/ibus-cangjie-2.5.0-no-coverage.patch @@ -0,0 +1,37 @@ +We don't need coverage for our testing purposes. +--- a/tests/meson.build ++++ b/tests/meson.build +@@ -1,5 +1,5 @@ + python = import('python').find_installation('python3', +- modules : [ 'cangjie', 'coverage' ]) ++ modules : [ 'cangjie' ]) + + # Run the tests folder as a module + # This is the equivalent of running `python -m tests` in the repo folder +@@ -11,26 +11,3 @@ test( + suite: 'unittest', + workdir: meson.project_source_root(), + ) +- +-# Generate the coverage information into .coverage +-test( +- 'scan tests for coverages', +- python, +- args: ['-m', 'coverage', 'run', '-m', 'tests'], +- suite: 'coverage', +- workdir: meson.project_source_root(), +-) +- +-# Generate the XML report from .coverage into meson-logs, which is stored +-# as CI/CD artifact +-test( +- 'generate report (xml)', +- python, +- args: [ +- '-m', 'coverage', 'xml', +- '-o', meson.project_build_root() / 'meson-logs' / 'coverage.xml', +- ], +- is_parallel: false, +- suite: 'coverage', +- workdir: meson.project_source_root(), +-) diff --git a/app-i18n/ibus-cangjie/ibus-cangjie-2.5.0.ebuild b/app-i18n/ibus-cangjie/ibus-cangjie-2.5.0.ebuild new file mode 100644 index 000000000000..7dfd9822b1f4 --- /dev/null +++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.5.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..13} ) +inherit meson gnome2-utils python-r1 xdg + +DESCRIPTION="Chinese Cangjie and Quick engines for IBus" +HOMEPAGE="https://cangjie.pages.freedesktop.org/projects/ibus-cangjie/" +SRC_URI="https://gitlab.freedesktop.org/cangjie/ibus-cangjie/-/jobs/67033920/artifacts/raw/builddir/meson-dist/${P}.tar.xz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + app-i18n/ibus[python(+),${PYTHON_USEDEP}] + >=app-i18n/libcangjie-1.4.0 + >=dev-python/cangjie-1.5.0[${PYTHON_USEDEP}] + media-libs/gsound[introspection] + nls? ( virtual/libintl ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-build/meson-1.3.2 + dev-util/intltool + nls? ( sys-devel/gettext ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.5.0-no-coverage.patch +) + +src_configure() { + python_foreach_impl meson_src_configure +} + +src_compile() { + python_foreach_impl meson_src_compile +} + +src_test() { + python_foreach_impl meson_src_test +} + +src_install() { + python_install() { + meson_src_install + python_optimize + } + python_foreach_impl python_install + + mv "${ED}"/usr/share/doc/ibus-cangjie "${ED}"/usr/share/doc/${PF} || die +} + +pkg_preinst() { + xdg_pkg_preinst + gnome2_schemas_savelist +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +}
