-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-admin/hardinfo2: Fix overwriting CFLAGS
Bug: https://bugs.gentoo.org/933186 Signed-off-by: Quincy Fleming <[email protected]>
- Loading branch information
1 parent
0c554d9
commit 484deb3
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright 2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake xdg-utils | ||
|
||
DESCRIPTION="System Information and Benchmark for Linux Systems" | ||
HOMEPAGE="https://www.hardinfo2.org" | ||
SRC_URI="https://github.com/hardinfo2/hardinfo2/archive/refs/tags/release-${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
S="${WORKDIR}/${PN}-release-${PV}" | ||
|
||
LICENSE="GPL-2+ GPL-3+ LGPL-2.1+" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
IUSE="benchmark fwupd +gtk3" | ||
|
||
DEPEND=" | ||
gtk3? ( x11-libs/gtk+:3 ) !gtk3? ( x11-libs/gtk+:2 ) | ||
>=dev-libs/glib-2.24 | ||
sys-libs/zlib | ||
dev-libs/json-glib | ||
net-libs/libsoup:3.0 | ||
x11-libs/cairo | ||
x11-libs/gdk-pixbuf | ||
x11-libs/libX11 | ||
x11-libs/pango | ||
" | ||
RDEPEND=" | ||
${DEPEND} | ||
dev-util/vulkan-tools | ||
net-misc/iperf:3 | ||
sys-apps/dmidecode | ||
sys-apps/lm-sensors | ||
sys-fs/lsscsi | ||
sys-fs/udisks:2 | ||
x11-apps/mesa-progs | ||
x11-apps/xrandr | ||
x11-misc/xdg-utils | ||
benchmark? ( app-benchmarks/sysbench ) | ||
fwupd? ( sys-apps/fwupd ) | ||
" | ||
BDEPEND="virtual/pkgconfig" | ||
|
||
src_configure() { | ||
filter-flags -O* | ||
|
||
local mycmakeargs=( | ||
-DHARDINFO2_GTK3=$(usex gtk3) | ||
-DHARDINFO2_QT5=0 | ||
) | ||
cmake_src_configure | ||
} | ||
|
||
pkg_postinst() { | ||
xdg_icon_cache_update | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_icon_cache_update | ||
} |