commit:     3444fb8b2c32c6b70d91e14675661f533207f827
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 23 00:17:11 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Aug 25 14:35:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3444fb8b

dev-qt/qtgamepad: Fix IUSE=sdl to depend on media-libs/libsdl2

EAPI-8

Closes: https://bugs.gentoo.org/777516
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-qt/qtgamepad/qtgamepad-5.15.2-r1.ebuild | 36 +++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/dev-qt/qtgamepad/qtgamepad-5.15.2-r1.ebuild 
b/dev-qt/qtgamepad/qtgamepad-5.15.2-r1.ebuild
new file mode 100644
index 00000000000..70434d09b66
--- /dev/null
+++ b/dev-qt/qtgamepad/qtgamepad-5.15.2-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qt5-build
+
+DESCRIPTION="Qt module to support gamepad hardware"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+       KEYWORDS="~amd64 ~arm64 ~x86"
+fi
+
+IUSE="evdev qml sdl"
+
+DEPEND="
+       ~dev-qt/qtcore-${PV}
+       ~dev-qt/qtgui-${PV}[evdev?]
+       evdev? ( virtual/libudev:= )
+       qml? ( ~dev-qt/qtdeclarative-${PV} )
+       sdl? ( media-libs/libsdl2 )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       qt_use_disable_mod qml quick \
+               src/src.pro
+
+       qt_use_disable_config evdev evdev \
+               src/plugins/gamepads/gamepads.pro
+
+       qt_use_disable_config sdl sdl2 \
+               src/plugins/gamepads/gamepads.pro
+
+       qt5-build_src_prepare
+}

Reply via email to