commit:     7ba4565c21df8aa4b95c8a5f9c75d2a6f5a5d462
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 26 19:00:49 2023 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Sun Feb 26 20:03:03 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ba4565c

sci-libs/libsigrokdecode: optimize python modules

Closes: https://bugs.gentoo.org/866383
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>

 sci-libs/libsigrokdecode/libsigrokdecode-0.5.3-r2.ebuild | 1 +
 sci-libs/libsigrokdecode/libsigrokdecode-9999.ebuild     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3-r2.ebuild 
b/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3-r2.ebuild
index 5ede936226ef..617e1edb0d21 100644
--- a/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3-r2.ebuild
+++ b/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3-r2.ebuild
@@ -49,5 +49,6 @@ src_test() {
 
 src_install() {
        default
+       python_optimize "${D}"/usr/share/libsigrokdecode/decoders
        find "${D}" -name '*.la' -type f -delete || die
 }

diff --git a/sci-libs/libsigrokdecode/libsigrokdecode-9999.ebuild 
b/sci-libs/libsigrokdecode/libsigrokdecode-9999.ebuild
index 091ef37e284a..8f04c30aebba 100644
--- a/sci-libs/libsigrokdecode/libsigrokdecode-9999.ebuild
+++ b/sci-libs/libsigrokdecode/libsigrokdecode-9999.ebuild
@@ -49,5 +49,6 @@ src_test() {
 
 src_install() {
        default
+       python_optimize "${D}"/usr/share/libsigrokdecode/decoders
        find "${D}" -name '*.la' -type f -delete || die
 }

Reply via email to