summaryrefslogtreecommitdiff
blob: 4e2f936ff6f6fa27ee5adb90802dc8bea84ef4f2 (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

MY_P=${P/-ac}

DESCRIPTION="WMACPILoad based dockapp to monitor CPU temp and battery time on ACPI kernels"
HOMEPAGE="http://wmacpiload.tuxfamily.org/"
SRC_URI="http://wmacpiload.tuxfamily.org/download/${MY_P}.tar.bz2"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 x86"
IUSE="debug"

RDEPEND="x11-libs/libX11
	x11-libs/libXt
	x11-libs/libXext
	x11-libs/libXpm"

DEPEND="${RDEPEND}
	x11-base/xorg-proto"

S="${WORKDIR}/${MY_P}"

PATCHES=(
	"${FILESDIR}/${PN}-acpi-segfault.patch"
	"${FILESDIR}/${PN}-acpi-sys-temp-hwmon.patch"
	"${FILESDIR}/${PN}-acpi-fix-battery-unit.patch"
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf $(use_enable debug)
}