diff options
author | Ben Kohler <bkohler@gentoo.org> | 2023-11-13 06:52:27 -0600 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2023-11-13 06:55:39 -0600 |
commit | 2fb66920f6a524b1b29365dda4b3dd8c06d0ad51 (patch) | |
tree | 40b5fc55b771c688072212594d2097fe987ae34f | |
parent | app-admin/xkcdpass: add 1.19.5 (diff) | |
download | gentoo-2fb66920f6a524b1b29365dda4b3dd8c06d0ad51.tar.gz gentoo-2fb66920f6a524b1b29365dda4b3dd8c06d0ad51.tar.bz2 gentoo-2fb66920f6a524b1b29365dda4b3dd8c06d0ad51.zip |
sys-apps/cpu-x: add 5.0.2
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
-rw-r--r-- | sys-apps/cpu-x/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/cpu-x/cpu-x-5.0.2.ebuild | 83 |
2 files changed, 84 insertions, 0 deletions
diff --git a/sys-apps/cpu-x/Manifest b/sys-apps/cpu-x/Manifest index def9553a0c2f..1a274976f665 100644 --- a/sys-apps/cpu-x/Manifest +++ b/sys-apps/cpu-x/Manifest @@ -1 +1,2 @@ DIST cpu-x-5.0.1.tar.gz 1973785 BLAKE2B 57f46f68d116fb0aac0323fc1b877b88bf75911fae09170d04c35353885ce341b006614652d4473211e952b594deb253580d1245e661adae744c7f7d64829d35 SHA512 3ded9098c840fa62061ec6b87e1f4a602a97e428f6eaa4bf63de3d6a2e29a9a9ceea199b323546a3f163fcc8a0185815a9dd68623ce46e0b13bee59c33a671c2 +DIST cpu-x-5.0.2.tar.gz 1975214 BLAKE2B 2b4cccdf96cc789a6c7b8a9e8124b380de681adabcd55cda05b5f0b97661a68feab9a434c1bcb8e092c529502d3472fd7385a7fbe5339fb93f4808ba2546b92d SHA512 3677207af8ea233a5bc1e435f501f4dffbe555486b048f5b51ac818cb458d52ab7ac94830ab83e992772e339de93464b3d4cd92798b8f49a272fd5292484de7e diff --git a/sys-apps/cpu-x/cpu-x-5.0.2.ebuild b/sys-apps/cpu-x/cpu-x-5.0.2.ebuild new file mode 100644 index 000000000000..3f9b4fe3e739 --- /dev/null +++ b/sys-apps/cpu-x/cpu-x-5.0.2.ebuild @@ -0,0 +1,83 @@ +# 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? ( dev-cpp/gtkmm:3.0 + >=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 +} |