summaryrefslogtreecommitdiff
path: root/sys-power/radeon-profile/radeon-profile-20170714.ebuild
blob: bc9a877de85a66e53b6f91757dc03b91393965fa (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
# Copyright 1999-2016 Gentoo Foundation 
# Distributed under the terms of the GNU General Public License v2 

EAPI=6
inherit eutils qmake-utils

DESCRIPTION="Monitor Radeon GPU parameters and switch power profiles"
HOMEPAGE="https://github.com/marazmista/radeon-profile"
SRC_URI="https://github.com/marazmista/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

RDEPEND="dev-qt/qtcore:5
	dev-qt/qtgui:5
	dev-qt/qtwidgets:5
	dev-qt/qtcharts:5
	x11-libs/libdrm
	x11-libs/libXrandr
	x11-libs/libxkbcommon
"
DEPEND="${RDEPEND}"

S=${WORKDIR}/${P}/${PN}

src_prepare() {
	default
	sed -i "s/Categories\=System\;Monitor\;HardwareSettings\;TrayIcon\;/Categories\=System\;/g" extra/${PN}.desktop
}

src_configure() { 
	eqmake5	${PN}.pro 
}

src_install() { 
	dodir usr/bin
	exeinto usr/bin
	doexe ${PN}
	dodir usr/share/applications
	insinto usr/share/applications
	doins extra/${PN}.desktop
	doicon extra/${PN}.png 
}