commit:     3f1a8f072e2fb5712820ce4920717c9e5c36d744
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 10 09:05:49 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 09:21:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f1a8f07

xfce-extra/xfce4-windowck-plugin: Fix shebangs for Python scripts

Closes: https://bugs.gentoo.org/869440
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../xfce4-windowck-plugin/xfce4-windowck-plugin-0.5.0.ebuild   | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git 
a/xfce-extra/xfce4-windowck-plugin/xfce4-windowck-plugin-0.5.0.ebuild 
b/xfce-extra/xfce4-windowck-plugin/xfce4-windowck-plugin-0.5.0.ebuild
index b6fd0528f2ac..25332bb6beb7 100644
--- a/xfce-extra/xfce4-windowck-plugin/xfce4-windowck-plugin-0.5.0.ebuild
+++ b/xfce-extra/xfce4-windowck-plugin/xfce4-windowck-plugin-0.5.0.ebuild
@@ -3,7 +3,9 @@
 
 EAPI=8
 
-inherit xdg-utils
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit python-any-r1 xdg-utils
 
 DESCRIPTION="Panel plugin to put the maximized window title and window buttons 
on the panel"
 HOMEPAGE="https://gitlab.xfce.org/panel-plugins/xfce4-windowck-plugin/";
@@ -26,11 +28,17 @@ RDEPEND="
        ${DEPEND}
 "
 BDEPEND="
+       ${PYTHON_DEPS}
        dev-util/intltool
        sys-devel/gettext
        virtual/pkgconfig
 "
 
+src_prepare() {
+       python_fix_shebang themes/*/*/generator.py
+       default
+}
+
 src_install() {
        default
        find "${D}" -name '*.la' -delete || die

Reply via email to