summaryrefslogtreecommitdiff
path: root/sys-apps/sensei-raw-ctl/sensei-raw-ctl-0.0_pre20230801.ebuild
blob: 4853308808b195a0006bed4858ad1b49f17aac67 (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
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake xdg

MY_COMMIT="e8914c63fbc82832577d9d57f0e87d5fc4de29f9"
DESCRIPTION="SteelSeries Sensei Raw configuration tool"
HOMEPAGE="https://git.janouch.name/p/sensei-raw-ctl"
SRC_URI="https://git.janouch.name/p/sensei-raw-ctl/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"

LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gui"

PATCHES=(
	"${FILESDIR}"/${PN}-0.0_pre20230801-fix_otherflags.patch
)

DEPEND="
	virtual/libusb:1
	gui? (
		dev-libs/glib:2
		x11-libs/gtk+:3
	)
"
RDEPEND="${DEPEND}"

src_configure() {
	local mycmakeargs=(
		-DBUILD_GUI=$(usex gui)
	)

	cmake_src_configure
}