From 2509f33d635a370cd00b7623c7bad284ccd43ecf Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Wed, 13 Jul 2022 12:27:59 +0800 Subject: [PATCH] app-emulation/deepin-wine-helper: add python depend Some scripts in this package depend on python, so add python as depend Signed-off-by: Huang Rui --- .../deepin-wine-helper-5.1.27-r1.ebuild | 17 ++++++++++++----- app-emulation/deepin-wine-helper/metadata.xml | 9 +++++++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/app-emulation/deepin-wine-helper/deepin-wine-helper-5.1.27-r1.ebuild b/app-emulation/deepin-wine-helper/deepin-wine-helper-5.1.27-r1.ebuild index 76b23e95c..3eef2e2aa 100644 --- a/app-emulation/deepin-wine-helper/deepin-wine-helper-5.1.27-r1.ebuild +++ b/app-emulation/deepin-wine-helper/deepin-wine-helper-5.1.27-r1.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit unpacker +PYTHON_COMPAT=( python3_{8..11} ) +inherit python-r1 unpacker DESCRIPTION="Deepin Wine Helper" HOMEPAGE="https://www.deepin.org" @@ -15,10 +16,14 @@ LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64" IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="test" -DEPEND="" -RDEPEND="${DEPEND} - app-emulation/deepin-wine-plugin[virtual-pkg]" +RDEPEND=" + ${PYTHON_DEPS} + app-emulation/deepin-wine-plugin[virtual-pkg] +" +DEPEND="${RDEPEND}" S=${WORKDIR} @@ -26,6 +31,8 @@ QA_PREBUILT="opt/deepinwine/*" QA_FLAGS_IGNORED="opt/deepinwine/*" src_install() { + python_fix_shebang -f "opt/deepinwine/tools/add_hotkeys" + python_fix_shebang -f "opt/deepinwine/tools/get_tray_window" insinto / doins -r opt diff --git a/app-emulation/deepin-wine-helper/metadata.xml b/app-emulation/deepin-wine-helper/metadata.xml index ce3ede7b3..b33966f3d 100644 --- a/app-emulation/deepin-wine-helper/metadata.xml +++ b/app-emulation/deepin-wine-helper/metadata.xml @@ -5,7 +5,12 @@ lyraile iamoatiz@gmail.com - - Deepin Wine helper. + + helper script from deepin-wine. Used to run deepin-wine related programs + and provide common operations for deepin wine programs. + + + 来自于deepin-wine的辅助脚本。 + 用来运行deepin-wine相关的程序,提供对deepin wine程序的公共操作。 -- 2.11.4.GIT