commit:     2fe38629d671bb5b5812fca1a2c4fd5d04336203
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May  4 13:48:03 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May  4 13:48:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fe38629

app-i18n/opencc: fix pkg_setup w/ USE=-python

Closes: https://bugs.gentoo.org/955417
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-i18n/opencc/opencc-1.1.7-r2.ebuild | 4 ++++
 app-i18n/opencc/opencc-1.1.9.ebuild    | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/app-i18n/opencc/opencc-1.1.7-r2.ebuild 
b/app-i18n/opencc/opencc-1.1.7-r2.ebuild
index 7c8387fd815f..eabc31068ad5 100644
--- a/app-i18n/opencc/opencc-1.1.7-r2.ebuild
+++ b/app-i18n/opencc/opencc-1.1.7-r2.ebuild
@@ -51,6 +51,10 @@ PATCHES=(
        "${FILESDIR}/${P}-fix-missing-cstdint-for-gcc-15.patch"
 )
 
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
 src_prepare() {
        rm -r deps || die
 

diff --git a/app-i18n/opencc/opencc-1.1.9.ebuild 
b/app-i18n/opencc/opencc-1.1.9.ebuild
index bf1fd1c4e420..ccd68ffb3cd8 100644
--- a/app-i18n/opencc/opencc-1.1.9.ebuild
+++ b/app-i18n/opencc/opencc-1.1.9.ebuild
@@ -51,6 +51,10 @@ PATCHES=(
        "${FILESDIR}/${PN}-1.1.7-fix-missing-cstdint-for-gcc-15.patch"
 )
 
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
 src_prepare() {
        # as of opencc 1.1.8 there is no clean way to disable duplicated 
building of the clib again.
        # plus, the installation is broken as well.

Reply via email to