1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit readme.gentoo-r1 cmake flag-o-matic toolchain-funcs udev user xdg
8 DESCRIPTION="Utility for advanced configuration of Roccat devices"
10 HOMEPAGE="http://roccat.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/roccat/${P}.tar.bz2"
14 KEYWORDS="~amd64 ~x86"
17 input_devices_roccat_arvo
18 input_devices_roccat_isku
19 input_devices_roccat_iskufx
20 input_devices_roccat_kiro
21 input_devices_roccat_kone
22 input_devices_roccat_koneplus
23 input_devices_roccat_konepure
24 input_devices_roccat_konepuremilitary
25 input_devices_roccat_konepureoptical
26 input_devices_roccat_konextd
27 input_devices_roccat_konextdoptical
28 input_devices_roccat_kovaplus
29 input_devices_roccat_kova2016
30 input_devices_roccat_lua
31 input_devices_roccat_nyth
32 input_devices_roccat_pyra
33 input_devices_roccat_ryosmk
34 input_devices_roccat_ryosmkfx
35 input_devices_roccat_ryostkl
36 input_devices_roccat_savu
37 input_devices_roccat_skeltr
38 input_devices_roccat_sova
39 input_devices_roccat_suora
40 input_devices_roccat_tyon
43 IUSE="${IUSE_INPUT_DEVICES[@]}"
45 LUA_DEPEND="|| ( dev-lang/lua:5.1 dev-lang/lua:0 )"
50 >=dev-libs/libgaminggear-0.15.1
57 input_devices_roccat_ryosmk? ( ${LUA_DEPEND} )
58 input_devices_roccat_ryosmkfx? ( ${LUA_DEPEND} )
59 input_devices_roccat_ryostkl? ( ${LUA_DEPEND} )
69 DOCS=( Changelog KNOWN_LIMITATIONS README )
75 for model in ${IUSE_INPUT_DEVICES[@]} ; do
76 use ${model} && USED_MODELS+="${model/input_devices_roccat_/;}"
80 # Required because xdg.eclass overrides src_prepare() from cmake.eclass
86 if has_version \>=x11-libs/pango-1.44.0 ; then
87 # Fix build with pango-1.44 which depends on harfbuzz
88 local PKGCONF="$(tc-getPKG_CONFIG)"
89 append-cflags "$(${PKGCONF} --cflags harfbuzz)"
93 -DDEVICES="${USED_MODELS/;/}"
94 -DUDEVDIR="${EPREFIX}$(get_udevdir)/rules.d"
98 input_devices_roccat_ryosmk
99 input_devices_roccat_ryosmkfx
100 input_devices_roccat_ryostkl
103 for luse in ${lua_use[@]} ; do
104 if use ${luse} ; then
105 mycmakeargs+=( -DWITH_LUA="5.1" )
115 local stat_dir=/var/lib/roccat
117 fowners root:roccat ${stat_dir}
118 fperms 2770 ${stat_dir}
119 readme.gentoo_create_doc
124 readme.gentoo_print_elog
126 ewarn "This version breaks stored data for some devices. Before reporting bugs please delete"
127 ewarn "affected folder(s) in /var/lib/roccat"