blob: 6d28253d190e13b8fe769d9b6e84fddbe9600ee3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit readme.gentoo cmake-utils gnome2-utils udev user
DESCRIPTION="Utility for advanced configuration of Roccat devices"
HOMEPAGE="http://roccat.sourceforge.net/"
SRC_URI="mirror://sourceforge/roccat/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE_INPUT_DEVICES="
input_devices_roccat_arvo
input_devices_roccat_isku
input_devices_roccat_iskufx
input_devices_roccat_kone
input_devices_roccat_koneplus
input_devices_roccat_konepure
input_devices_roccat_konepuremilitary
input_devices_roccat_konepureoptical
input_devices_roccat_konextd
input_devices_roccat_konextdoptical
input_devices_roccat_kovaplus
input_devices_roccat_lua
input_devices_roccat_pyra
input_devices_roccat_savu
input_devices_roccat_ryosmk
input_devices_roccat_ryostkl
input_devices_roccat_tyon
"
IUSE="${IUSE_INPUT_DEVICES} lua lua51 lua52"
REQUIRED_USE="
lua? ( input_devices_roccat_ryosmk )
lua? ( ^^ ( lua51 lua52 ) )
"
RDEPEND="
=dev-libs/libgaminggear-0.10*
x11-libs/gtk+:2
x11-libs/libnotify
media-libs/libcanberra
virtual/libusb:1
dev-libs/dbus-glib
virtual/libgudev:=
lua51? ( || ( dev-lang/lua:5.1 dev-lang/lua:0 ) )
lua52? ( dev-lang/lua:5.2 )
"
DEPEND="${RDEPEND}"
pkg_setup() {
enewgroup roccat
}
src_configure() {
local UDEVDIR="$(get_udevdir)"/rules.d
local MODELS=${INPUT_DEVICES//roccat_/}
mycmakeargs=(
-DDEVICES=${MODELS// /;} \
-DUDEVDIR="${UDEVDIR/"//"//}"
)
if use lua51 ; then
mycmakeargs+=( -DWITH_LUA=5.1 )
elif use lua52 ; then
mycmakeargs+=( -DWITH_LUA=5.2 )
fi
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
local stat_dir=/var/lib/roccat
keepdir $stat_dir
fowners root:roccat $stat_dir
fperms 2770 $stat_dir
readme.gentoo_src_install
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
readme.gentoo_print_elog
ewarn
ewarn "Starting from version 3.0.0, executables were renamed and now prefixed with 'roccat',"
ewarn "so konextdconfig is now roccatkonextdconfig and so on"
ewarn "Everything that was ryos is now ryosmk to distinguish it from the ryostkl product range"
ewarn
ewarn "In version 3.5.0-r1 the support for Lua as a scripting language for RyosMKPro"
ewarn "ripple effects has been changed. Now in combination with USE=lua to enable it"
ewarn "one also needs to put additional use flag depending on which lua version is wanted - "
ewarn "it can be USE=lua51 for Lua 5.1 or USE=lua52 for 5.2"
ewarn
}
pkg_postrm() {
gnome2_icon_cache_update
}
|