Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/ibus/
Date: Tue, 06 Sep 2022 09:31:13
Message-Id: 1662456652.bea7f7e378e362228dbac0bf50fc77b04c75c1f3.dlan@gentoo
1 commit: bea7f7e378e362228dbac0bf50fc77b04c75c1f3
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 6 09:28:56 2022 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 6 09:30:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bea7f7e3
7
8 app-i18n/ibus: remove stray pyc/pyo files
9
10 Closes: https://bugs.gentoo.org/865753
11 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
12
13 app-i18n/ibus/ibus-1.5.27.ebuild | 8 +++++++-
14 1 file changed, 7 insertions(+), 1 deletion(-)
15
16 diff --git a/app-i18n/ibus/ibus-1.5.27.ebuild b/app-i18n/ibus/ibus-1.5.27.ebuild
17 index 935a3baa1a42..65119041410e 100644
18 --- a/app-i18n/ibus/ibus-1.5.27.ebuild
19 +++ b/app-i18n/ibus/ibus-1.5.27.ebuild
20 @@ -184,7 +184,6 @@ src_test() {
21
22 src_install() {
23 default
24 - find "${ED}" -name '*.la' -delete || die
25
26 if use python; then
27 python_install() {
28 @@ -207,6 +206,13 @@ src_install() {
29
30 # Undo compression of man page
31 find "${ED}"/usr/share/man -type f -name '*.gz' -exec gzip -d {} \; || die
32 +
33 + # Remove stray python files generated by the build system
34 + find "${ED}" -name '*.pyc' -exec rm -f {} \; || die
35 + find "${ED}" -name '*.pyo' -exec rm -f {} \; || die
36 +
37 + # Remove la files
38 + find "${ED}" -name '*.la' -delete || die
39 }
40
41 pkg_postinst() {