summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2023-10-23 11:11:38 -0500
committerBen Kohler <bkohler@gentoo.org>2023-10-27 13:00:25 -0500
commit0370e258d86e028e9addf4f47294d273c37d45ba (patch)
tree8d16795a61a8f1bf87ba74cccb4aba89b15667ab /sys-apps
parentmedia-gfx/fotoxx: add 23.72 (diff)
downloadgentoo-0370e258d86e028e9addf4f47294d273c37d45ba.tar.gz
gentoo-0370e258d86e028e9addf4f47294d273c37d45ba.tar.bz2
gentoo-0370e258d86e028e9addf4f47294d273c37d45ba.zip
sys-apps/cpu-x: add 5.0.1
Closes: https://bugs.gentoo.org/915864 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/cpu-x/Manifest1
-rw-r--r--sys-apps/cpu-x/cpu-x-5.0.1.ebuild82
2 files changed, 83 insertions, 0 deletions
diff --git a/sys-apps/cpu-x/Manifest b/sys-apps/cpu-x/Manifest
index 9642d1bb65bc..ff0c2ca06360 100644
--- a/sys-apps/cpu-x/Manifest
+++ b/sys-apps/cpu-x/Manifest
@@ -1,2 +1,3 @@
DIST cpu-x-4.5.3.tar.gz 1910854 BLAKE2B 98bb905e24d11ba4f599badd8f9de272fc0b8cd63cd000b7e0e09d7b98da7663d34abe62451aa8d617520fb62d43ae29cae049a14cdf840330be8b404ed7b61a SHA512 3f3e4f1d31e4e84bdeb68e448a1dabd2e22965caed1668300945a1d9150f77422b685a7a0bad997371ba08a3b0ac7fe3eab3aa1d0b485942347a72eb81d21b4f
DIST cpu-x-5.0.0.tar.gz 1973209 BLAKE2B d34e99d899fe7a4c1d86b70af9059ad20a8edf7fc16864ad652ace8234aee86019c1359c46a19a230d759ed3a35636faee50df45613cc118ef683603eeeb54fc SHA512 c4fd7247c83987ab1c84586317a95327809510ed1289cd32cc16cd4d46c8d6af58f8496342e9172ad06cb8189d3e4c82a4826e9c8054fa2dc8cdd166ac29436d
+DIST cpu-x-5.0.1.tar.gz 1973785 BLAKE2B 57f46f68d116fb0aac0323fc1b877b88bf75911fae09170d04c35353885ce341b006614652d4473211e952b594deb253580d1245e661adae744c7f7d64829d35 SHA512 3ded9098c840fa62061ec6b87e1f4a602a97e428f6eaa4bf63de3d6a2e29a9a9ceea199b323546a3f163fcc8a0185815a9dd68623ce46e0b13bee59c33a671c2
diff --git a/sys-apps/cpu-x/cpu-x-5.0.1.ebuild b/sys-apps/cpu-x/cpu-x-5.0.1.ebuild
new file mode 100644
index 000000000000..c9f7486401b8
--- /dev/null
+++ b/sys-apps/cpu-x/cpu-x-5.0.1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2023 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://thetumultuousunicornofdarkness.github.io/CPU-X/"
+SRC_URI="https://github.com/TheTumultuousUnicornOfDarkness/${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 vulkan"
+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.6.0:= )
+ gpu? ( >=media-libs/glfw-3.3
+ media-libs/libglvnd )
+ pci? ( sys-apps/pciutils )
+ ncurses? ( sys-libs/ncurses:=[tinfo] )
+ opencl? ( virtual/opencl )
+ vulkan? ( media-libs/vulkan-loader
+ >=dev-util/vulkan-headers-1.3.151 )
+"
+
+DEPEND="
+ test? (
+ sys-apps/grep[pcre]
+ 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)
+ -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)
+ -DWITH_VULKAN=$(usex vulkan)
+ )
+ use gui && mycmakeargs+=( -DGSETTINGS_COMPILE=OFF )
+
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_schemas_update
+}