summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-07-24 07:45:51 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-07-24 07:47:49 +0200
commit7c3b570e4be54aa5c1a4458530e3d1d592f1ebbb (patch)
tree3af8c13608d61c51f22f2d789b0b19ef505989a5 /sys-apps/roccat-tools
parentnet-mail/dovecot: bump to 2.3.7.1 (diff)
downloadgentoo-7c3b570e4be54aa5c1a4458530e3d1d592f1ebbb.tar.gz
gentoo-7c3b570e4be54aa5c1a4458530e3d1d592f1ebbb.tar.bz2
gentoo-7c3b570e4be54aa5c1a4458530e3d1d592f1ebbb.zip
sys-apps/roccat-tools: Make lua finder happy...
Thanks-to: Attila Tóth <atoth@atoth.sote.hu> Closes: https://bugs.gentoo.org/690532 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-apps/roccat-tools')
-rw-r--r--sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild22
1 files changed, 19 insertions, 3 deletions
diff --git a/sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild b/sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild
index 36aaaeefd2b9..1f81be7eaa34 100644
--- a/sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild
+++ b/sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild
@@ -42,6 +42,8 @@ IUSE_INPUT_DEVICES=(
IUSE="${IUSE_INPUT_DEVICES[@]}"
+LUA_DEPEND="|| ( dev-lang/lua:5.1 dev-lang/lua:0 )"
+
RDEPEND="
dev-libs/dbus-glib
dev-libs/glib:2
@@ -52,9 +54,9 @@ RDEPEND="
x11-libs/libX11
virtual/libgudev:=
virtual/libusb:1
- input_devices_roccat_ryosmk? ( || ( dev-lang/lua:5.1 dev-lang/lua:0 ) )
- input_devices_roccat_ryosmkfx? ( || ( dev-lang/lua:5.1 dev-lang/lua:0 ) )
- input_devices_roccat_ryostkl? ( || ( dev-lang/lua:5.1 dev-lang/lua:0 ) )
+ input_devices_roccat_ryosmk? ( ${LUA_DEPEND} )
+ input_devices_roccat_ryosmkfx? ( ${LUA_DEPEND} )
+ input_devices_roccat_ryostkl? ( ${LUA_DEPEND} )
"
DEPEND="
@@ -82,6 +84,20 @@ src_configure() {
-DDEVICES="${USED_MODELS/;/}"
-DUDEVDIR="${EPREFIX}$(get_udevdir)/rules.d"
)
+
+ local lua_use=(
+ input_devices_roccat_ryosmk
+ input_devices_roccat_ryosmkfx
+ input_devices_roccat_ryostkl
+ )
+ local luse
+ for luse in ${lua_use[@]} ; do
+ if use ${luse} ; then
+ mycmakeargs+=( -DWITH_LUA="5.1" )
+ break
+ fi
+ done
+
cmake-utils_src_configure
}