commit:     bea7f7e378e362228dbac0bf50fc77b04c75c1f3
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  6 09:28:56 2022 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Tue Sep  6 09:30:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bea7f7e3

app-i18n/ibus: remove stray pyc/pyo files

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

 app-i18n/ibus/ibus-1.5.27.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/app-i18n/ibus/ibus-1.5.27.ebuild b/app-i18n/ibus/ibus-1.5.27.ebuild
index 935a3baa1a42..65119041410e 100644
--- a/app-i18n/ibus/ibus-1.5.27.ebuild
+++ b/app-i18n/ibus/ibus-1.5.27.ebuild
@@ -184,7 +184,6 @@ src_test() {
 
 src_install() {
        default
-       find "${ED}" -name '*.la' -delete || die
 
        if use python; then
                python_install() {
@@ -207,6 +206,13 @@ 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