blob: d840aa57f738b6d7ee4f7ff94c074ab663cd6d7b (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake xdg
DESCRIPTION="Provides functionality for gaming input devices"
HOMEPAGE="https://sourceforge.net/projects/libgaminggear/"
SRC_URI="mirror://sourceforge/libgaminggear/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND="
>=dev-db/sqlite-3.17:3
dev-libs/glib:2
media-libs/libcanberra
x11-libs/cairo
x11-libs/gtk+:2
x11-libs/libnotify
x11-libs/pango
"
DEPEND="
${RDEPEND}
dev-libs/libgudev
media-libs/harfbuzz
"
BDEPEND="
dev-util/glib-utils
doc? ( app-doc/doxygen )
"
PATCHES=(
"${FILESDIR}"/${PN}-0.10.0-doc.patch
"${FILESDIR}"/${P}-cmake-3.13.patch
)
# Required because xdg.eclass overrides src_prepare() from cmake.eclass
src_prepare() {
cmake_src_prepare
}
src_configure() {
mycmakeargs=(
-DWITH_DOC="$(usex doc)"
)
cmake_src_configure
}
src_install() {
cmake_src_install
}
pkg_preinst() {
xdg_pkg_preinst
}
pkg_postinst() {
xdg_pkg_postinst
}
pkg_postrm() {
xdg_pkg_postrm
}
|