app-misc/fastfetch: add 1.11.1

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu 2023-05-27 20:12:15 +03:00
parent 5a598bfbb8
commit c779fee9f9
No known key found for this signature in database
GPG Key ID: 0CE5A97D9310DAB0
3 changed files with 128 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST fastfetch-1.11.1.tar.gz 532047 BLAKE2B f05d1d83f2f77b6387ff35c704f7680ccd9a5bb6eb140a058eb48e3be5da4fbde80b1932256282ed9e79d5020c7de41cba2386754322f52a898f6e6bdafc9015 SHA512 51bb0e59cc6a67e63d1ca67a7862cf39a5fc76a154cf1aa083ef60059821fd77d3f12b8722ba2d2b5057e769f7740674bfd051f1390e155b18faf5fbb503bd48

View File

@ -0,0 +1,102 @@
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake flag-o-matic
DESCRIPTION="Fast system information tool"
HOMEPAGE="https://github.com/LinusDierheimer/fastfetch"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/LinusDierheimer/fastfetch.git"
[[ ${PV} == *0.1.9999 ]] && EGIT_BRANCH=master
[[ ${PV} == *0.2.9999 ]] && EGIT_BRANCH=dev
[[ "${EGIT_BRANCH}" == "" ]] && die "Please set a git branch"
else
SRC_URI="https://github.com/LinusDierheimer/fastfetch/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
IUSE="X chafa dbus gnome imagemagick networkmanager opencl opengl osmesa pci pulseaudio sqlite 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 )
dbus? ( sys-apps/dbus )
gnome? (
dev-libs/glib
gnome-base/dconf
)
imagemagick? ( media-gfx/imagemagick:= )
networkmanager? ( net-misc/networkmanager )
opencl? ( virtual/opencl )
opengl? ( media-libs/libglvnd[X] )
osmesa? ( media-libs/mesa[osmesa] )
pci? ( sys-apps/pciutils )
pulseaudio? ( media-libs/libpulse )
sqlite? ( dev-db/sqlite:3 )
vulkan? ( media-libs/vulkan-loader )
wayland? ( dev-libs/wayland )
xcb? ( x11-libs/libxcb )
xfce? ( xfce-base/xfconf )
xrandr? ( x11-libs/libXrandr )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
REQUIRED_USE="
xrandr? ( X )
chafa? ( imagemagick )
"
src_configure() {
local fastfetch_enable_imagemagick7=no
local fastfetch_enable_imagemagick6=no
if use imagemagick; then
fastfetch_enable_imagemagick7=$(has_version '>=media-gfx/imagemagick-7.0.0' && echo yes || echo no)
fastfetch_enable_imagemagick6=$(has_version '<media-gfx/imagemagick-7.0.0' && echo yes || echo no)
fi
local mycmakeargs=(
-DENABLE_LIBCJSON=no
-DENABLE_RPM=no
-DENABLE_ZLIB=yes
-DENABLE_CHAFA=$(usex chafa)
-DENABLE_DBUS=$(usex dbus)
-DENABLE_DCONF=$(usex gnome)
-DENABLE_EGL=$(usex opengl)
-DENABLE_GIO=$(usex gnome)
-DENABLE_GLX=$(usex opengl)
-DENABLE_IMAGEMAGICK6=${fastfetch_enable_imagemagick6}
-DENABLE_IMAGEMAGICK7=${fastfetch_enable_imagemagick7}
-DENABLE_LIBNM=$(usex networkmanager)
-DENABLE_LIBPCI=$(usex pci)
-DENABLE_OPENCL=$(usex opencl)
-DENABLE_OSMESA=$(usex osmesa)
-DENABLE_PULSE=$(usex pulseaudio)
-DENABLE_SQLITE3=$(usex sqlite)
-DENABLE_VULKAN=$(usex vulkan)
-DENABLE_WAYLAND=$(usex wayland)
-DENABLE_X11=$(usex X)
-DENABLE_XCB=$(usex xcb)
-DENABLE_XCB_RANDR=$(usex xcb)
-DENABLE_XFCONF=$(usex xfce)
-DENABLE_XRANDR=$(usex xrandr)
)
append-cppflags -DNDEBUG
cmake_src_configure
}
src_install() {
cmake_src_install
rm -r "${ED}"/usr/share/licenses || die
}

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ceamac@gentoo.org</email>
<description>Primary maintainer</description>
</maintainer>
<upstream>
<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="opencl">Enables OpenCL support</flag>
<flag name="osmesa">Enables offscreen rendering support from <pkg>media-libs/mesa</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>
<flag name="xrandr">Enables support for Xrandr</flag>
</use>
<longdescription>
fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way.
It is written in c to achieve much better performance.
</longdescription>
</pkgmetadata>