commit:     c0a7889115890bfc1011568bc20381cd77f24e69
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  7 01:24:24 2022 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Wed Sep  7 01:24:24 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0a78891

app-i18n/ibus: fix not byte-compiled issue

Closes: https://bugs.gentoo.org/868699
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-i18n/ibus/ibus-1.5.27.ebuild | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/app-i18n/ibus/ibus-1.5.27.ebuild b/app-i18n/ibus/ibus-1.5.27.ebuild
index 65119041410e..57b8aa524735 100644
--- a/app-i18n/ibus/ibus-1.5.27.ebuild
+++ b/app-i18n/ibus/ibus-1.5.27.ebuild
@@ -184,6 +184,12 @@ src_test() {
 
 src_install() {
        default
+       # Remove la files
+       find "${ED}" -name '*.la' -delete || die
+
+       # Remove stray python files generated by the build system
+       find "${ED}" -name '*.pyc' -exec rm -f {} \; || die
+       find "${ED}" -name '*.pyo' -exec rm -f {} \; || die
 
        if use python; then
                python_install() {
@@ -206,13 +212,6 @@ src_install() {
 
        # Undo compression of man page
        find "${ED}"/usr/share/man -type f -name '*.gz' -exec gzip -d {} \; || 
die
-
-       # Remove stray python files generated by the build system
-       find "${ED}" -name '*.pyc' -exec rm -f {} \; || die
-       find "${ED}" -name '*.pyo' -exec rm -f {} \; || die
-
-       # Remove la files
-       find "${ED}" -name '*.la' -delete || die
 }
 
 pkg_postinst() {

Reply via email to