summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2024-03-02 13:39:07 +0200
committerViorel Munteanu <ceamac@gentoo.org>2024-03-02 13:39:46 +0200
commitfba0e28ee763b38da3bd3140f309e04dc9014f46 (patch)
treebb18b80072bd76cbbb61fb5bc21fac4fc26b932d /app-misc
parentxfce-base/libxfce4util: Stabilize 4.18.2 arm, #924791 (diff)
downloadgentoo-fba0e28ee763b38da3bd3140f309e04dc9014f46.tar.gz
gentoo-fba0e28ee763b38da3bd3140f309e04dc9014f46.tar.bz2
gentoo-fba0e28ee763b38da3bd3140f309e04dc9014f46.zip
app-misc/fastfetch: add 2.8.7
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/fastfetch/Manifest1
-rw-r--r--app-misc/fastfetch/fastfetch-2.8.7.ebuild115
2 files changed, 116 insertions, 0 deletions
diff --git a/app-misc/fastfetch/Manifest b/app-misc/fastfetch/Manifest
index e234955b6321..0b0aa05ebe44 100644
--- a/app-misc/fastfetch/Manifest
+++ b/app-misc/fastfetch/Manifest
@@ -1,2 +1,3 @@
DIST fastfetch-2.7.1.tar.gz 1000565 BLAKE2B 061d2175bdca879bb4ef1a2f29fd73b99a7325fb8de66f05eb1203008c34ef20ff122e57a785ee0a5abb0251004023958abb1d158bc49cd1b34f9e02f3d1c6bc SHA512 55d897af532141d429aa5b58ab1516347f14597bf249b70f0d5ab27d11e235911858143fc32356255bef201cb44cdd7698e8d49094fb7e61c2e425a6c8ac5fa1
DIST fastfetch-2.8.6.tar.gz 1013523 BLAKE2B b55d70f51000fe10ed04caf7c5c88d52618420b11522233c447f8b71c8ea53f38d46ab0669a6969c07bfbbfd8c9f1442a453f612578c1ae345d50a7e702b7ffb SHA512 3695401d379c1bb120512b0245de48c91ac197306dc73253e96a8e196ef428253943c333492f85b5f142fdb34beda9b6c0ec6e148df0fff4a5042ef1845e3f98
+DIST fastfetch-2.8.7.tar.gz 1013771 BLAKE2B 119d2b44b050c374d924023cbaad25bf9e6ee5817edcc7ff4934985508e86c3125a820370947ea64c41b8307f8bb07a50960f762df39cdbc20e09a3d1dd90a8d SHA512 efc06434de0821d5fdb6f539f281e7d139c078181f9473522f7765ac936cf128d614268d8e46ed46d6ba1832872e1ada75a3a61cacb5aa503d9f3619fe6265ee
diff --git a/app-misc/fastfetch/fastfetch-2.8.7.ebuild b/app-misc/fastfetch/fastfetch-2.8.7.ebuild
new file mode 100644
index 000000000000..97a256518745
--- /dev/null
+++ b/app-misc/fastfetch/fastfetch-2.8.7.ebuild
@@ -0,0 +1,115 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="Fast neofetch-like system information tool"
+HOMEPAGE="https://github.com/fastfetch-cli/fastfetch"
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/fastfetch-cli/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/fastfetch-cli/fastfetch/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+fi
+
+LICENSE="MIT nvidia-gpu? ( NVIDIA-NVLM )"
+SLOT="0"
+IUSE="X chafa dbus ddcutil drm gnome imagemagick networkmanager nvidia-gpu opencl opengl osmesa pulseaudio sqlite test vulkan wayland xcb xfce xrandr"
+RESTRICT="!test? ( test )"
+
+# note - qa-vdb will always report errors because fastfetch loads the libs dynamically
+# make sure to crank yyjson minimum version to match bundled version
+RDEPEND="
+ >=dev-libs/yyjson-0.8.0:=
+ sys-libs/zlib
+ X? ( x11-libs/libX11 )
+ chafa? ( media-gfx/chafa )
+ dbus? ( sys-apps/dbus )
+ ddcutil? ( app-misc/ddcutil:= )
+ drm? ( x11-libs/libdrm )
+ 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] )
+ pulseaudio? ( media-libs/libpulse )
+ sqlite? ( dev-db/sqlite:3 )
+ vulkan? (
+ media-libs/vulkan-loader
+ sys-apps/pciutils
+ )
+ wayland? ( dev-libs/wayland )
+ xcb? ( x11-libs/libxcb )
+ xfce? ( xfce-base/xfconf )
+ xrandr? ( x11-libs/libXrandr )
+"
+DEPEND="
+ ${RDEPEND}
+ vulkan? ( dev-util/vulkan-headers )
+"
+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_RPM=no
+ -DENABLE_ZLIB=yes
+ -DENABLE_SYSTEM_YYJSON=yes
+
+ -DENABLE_CHAFA=$(usex chafa)
+ -DENABLE_DBUS=$(usex dbus)
+ -DENABLE_DCONF=$(usex gnome)
+ -DENABLE_DDCUTIL=$(usex ddcutil)
+ -DENABLE_DRM=$(usex drm)
+ -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_PROPRIETARY_GPU_DRIVER_API=$(usex nvidia-gpu)
+ -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)
+ -DBUILD_TESTS=$(usex test)
+ )
+
+ append-cppflags -DNDEBUG
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ rm -r "${ED}"/usr/share/licenses || die
+}