blob: e1f02ebb7d260b48a95b9e31bee7fde8ec4cb3d2 (
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
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="CPU-X"
inherit cmake gnome2-utils xdg
DESCRIPTION="A Free software that gathers information on CPU, motherboard and more"
HOMEPAGE="https://x0rg.github.io/CPU-X/"
SRC_URI="https://github.com/X0rg/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="+cpu force-libstatgrab +gpu +gui +ncurses +nls opencl +pci test"
RESTRICT="!test? ( test )"
COMMON_DEPEND="
dev-libs/glib:2
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/pango
force-libstatgrab? ( sys-libs/libstatgrab )
!force-libstatgrab? ( sys-process/procps:= )
gui? ( >=x11-libs/gtk+-3.12:3 )
cpu? ( >=dev-libs/libcpuid-0.3.0:= )
gpu? ( >=media-libs/glfw-3.3
media-libs/libglvnd )
pci? ( sys-apps/pciutils )
ncurses? ( sys-libs/ncurses:=[tinfo] )
opencl? ( virtual/opencl )
"
DEPEND="
test? (
sys-apps/mawk
sys-apps/nawk
)
${COMMON_DEPEND}
"
BDEPEND="
dev-lang/nasm
nls? ( sys-devel/gettext )
"
RDEPEND="${COMMON_DEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
src_configure() {
local mycmakeargs=(
-DFORCE_LIBSTATGRAB=$(usex force-libstatgrab)
-DGSETTINGS_COMPILE=OFF
-DWITH_GETTEXT=$(usex nls)
-DWITH_GTK=$(usex gui)
-DWITH_LIBCPUID=$(usex cpu)
-DWITH_LIBGLFW=$(usex gpu)
-DWITH_LIBPCI=$(usex pci)
-DWITH_LIBSTATGRAB=OFF
-DWITH_NCURSES=$(usex ncurses)
-DWITH_OPENCL=$(usex opencl)
)
cmake_src_configure
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}
|