Gentoo Archives: gentoo-commits

From: Viorel Munteanu <ceamac.paragon@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/fastfetch/
Date: Fri, 29 Apr 2022 06:04:09
Message-Id: 1651212213.90639e9f90528ffab930e19eda56a7fbd69de763.viorel_munteanu@gentoo
1 commit: 90639e9f90528ffab930e19eda56a7fbd69de763
2 Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 29 06:03:33 2022 +0000
4 Commit: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com>
5 CommitDate: Fri Apr 29 06:03:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=90639e9f
7
8 app-misc/fastfetch: Add USE chafa for upcoming release
9
10 Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com>
11
12 app-misc/fastfetch/fastfetch-9999.ebuild | 5 ++++-
13 app-misc/fastfetch/metadata.xml | 1 +
14 2 files changed, 5 insertions(+), 1 deletion(-)
15
16 diff --git a/app-misc/fastfetch/fastfetch-9999.ebuild b/app-misc/fastfetch/fastfetch-9999.ebuild
17 index e7a1378dd..2b3681930 100644
18 --- a/app-misc/fastfetch/fastfetch-9999.ebuild
19 +++ b/app-misc/fastfetch/fastfetch-9999.ebuild
20 @@ -16,12 +16,13 @@ fi
21
22 LICENSE="MIT"
23 SLOT="0"
24 -IUSE="X gnome imagemagick pci vulkan wayland xcb xfce xrandr"
25 +IUSE="X chafa gnome imagemagick pci vulkan wayland xcb xfce xrandr"
26
27 # note - qa-vdb will always report errors because fastfetch loads the libs dynamically
28 RDEPEND="
29 sys-libs/zlib
30 X? ( x11-libs/libX11 )
31 + chafa? ( media-gfx/chafa )
32 gnome? (
33 dev-libs/glib
34 gnome-base/dconf
35 @@ -42,6 +43,7 @@ REQUIRED_USE="xrandr? ( X )"
36 src_configure() {
37 local mycmakeargs=(
38 -DENABLE_RPM=no
39 + -DENABLE_LIBPCI=$(usex pci)
40 -DENABLE_VULKAN=$(usex vulkan)
41 -DENABLE_WAYLAND=$(usex wayland)
42 -DENABLE_XCB_RANDR=$(usex xcb)
43 @@ -54,6 +56,7 @@ src_configure() {
44 -DENABLE_IMAGEMAGICK7=$(use imagemagick && has_version '>=media-gfx/imagemagick-7.0.0' && echo yes || echo no)
45 -DENABLE_IMAGEMAGICK6=$(use imagemagick && has_version '<media-gfx/imagemagick-7.0.0' && echo yes || echo no)
46 -DENABLE_ZLIB=yes
47 + -DENABLE_CHAFA=$(usex chafa)
48 )
49
50 cmake_src_configure
51
52 diff --git a/app-misc/fastfetch/metadata.xml b/app-misc/fastfetch/metadata.xml
53 index d5e16ecbd..755fc0bac 100644
54 --- a/app-misc/fastfetch/metadata.xml
55 +++ b/app-misc/fastfetch/metadata.xml
56 @@ -9,6 +9,7 @@
57 <remote-id type="github">LinusDierheimer/fastfetch</remote-id>
58 </upstream>
59 <use>
60 + <flag name="chafa">Enables text/graphics renderer with <pkg>media-gfx/chafa</pkg></flag>
61 <flag name="pci">Enables reading GPU via <pkg>sys-apps/pciutils</pkg></flag>
62 <flag name="vulkan">Enables reading GPU via <pkg>media-libs/vulkan-loader</pkg></flag>
63 <flag name="xfce">Enables support for XFCE config</flag>