app-misc/fastfetch: Add USE chafa for upcoming release

Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com>
This commit is contained in:
Viorel Munteanu
2022-04-29 09:03:33 +03:00
parent 5bc48c5d30
commit 90639e9f90
2 changed files with 5 additions and 1 deletions

View File

@@ -16,12 +16,13 @@ fi
LICENSE="MIT"
SLOT="0"
IUSE="X gnome imagemagick pci vulkan wayland xcb xfce xrandr"
IUSE="X chafa gnome imagemagick pci vulkan wayland xcb xfce xrandr"
# note - qa-vdb will always report errors because fastfetch loads the libs dynamically
RDEPEND="
sys-libs/zlib
X? ( x11-libs/libX11 )
chafa? ( media-gfx/chafa )
gnome? (
dev-libs/glib
gnome-base/dconf
@@ -42,6 +43,7 @@ REQUIRED_USE="xrandr? ( X )"
src_configure() {
local mycmakeargs=(
-DENABLE_RPM=no
-DENABLE_LIBPCI=$(usex pci)
-DENABLE_VULKAN=$(usex vulkan)
-DENABLE_WAYLAND=$(usex wayland)
-DENABLE_XCB_RANDR=$(usex xcb)
@@ -54,6 +56,7 @@ src_configure() {
-DENABLE_IMAGEMAGICK7=$(use imagemagick && has_version '>=media-gfx/imagemagick-7.0.0' && echo yes || echo no)
-DENABLE_IMAGEMAGICK6=$(use imagemagick && has_version '<media-gfx/imagemagick-7.0.0' && echo yes || echo no)
-DENABLE_ZLIB=yes
-DENABLE_CHAFA=$(usex chafa)
)
cmake_src_configure

View File

@@ -9,6 +9,7 @@
<remote-id type="github">LinusDierheimer/fastfetch</remote-id>
</upstream>
<use>
<flag name="chafa">Enables text/graphics renderer with <pkg>media-gfx/chafa</pkg></flag>
<flag name="pci">Enables reading GPU via <pkg>sys-apps/pciutils</pkg></flag>
<flag name="vulkan">Enables reading GPU via <pkg>media-libs/vulkan-loader</pkg></flag>
<flag name="xfce">Enables support for XFCE config</flag>