You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
4 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
3 years ago
|
inherit autotools out-of-source systemd
|
||
4 years ago
|
|
||
|
DESCRIPTION="Thermal daemon for Intel architectures"
|
||
3 years ago
|
HOMEPAGE="https://01.org/linux-thermal-daemon https://github.com/intel/thermal_daemon"
|
||
|
SRC_URI="https://github.com/intel/thermal_daemon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
4 years ago
|
|
||
|
LICENSE="GPL-2+"
|
||
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
4 years ago
|
IUSE=""
|
||
|
|
||
|
RDEPEND="
|
||
|
dev-libs/dbus-glib:=
|
||
|
dev-libs/glib:=
|
||
|
dev-libs/libxml2:=
|
||
4 years ago
|
dev-libs/libevdev
|
||
|
sys-power/upower
|
||
4 years ago
|
sys-apps/dbus:="
|
||
|
DEPEND="${RDEPEND}
|
||
4 years ago
|
dev-util/gtk-doc
|
||
4 years ago
|
dev-util/glib-utils"
|
||
|
|
||
|
S=${WORKDIR}/thermal_daemon-${PV}
|
||
|
DOCS=( thermal_daemon_usage.txt README.txt )
|
||
|
|
||
|
src_prepare() {
|
||
3 years ago
|
sed -i -e "/group=/s/power/wheel/g" \
|
||
|
data/org.freedesktop.thermald.conf || die
|
||
|
|
||
4 years ago
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
my_src_configure() {
|
||
|
ECONF_SOURCE="${S}" econf \
|
||
4 years ago
|
--disable-werror \
|
||
4 years ago
|
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||
|
}
|
||
|
|
||
|
my_src_install_all() {
|
||
|
einstalldocs
|
||
|
|
||
|
rm -rf "${ED}"/etc/init || die
|
||
|
doinitd "${FILESDIR}"/thermald
|
||
|
}
|