diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2024-05-14 19:14:00 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2024-05-14 19:22:52 +0300 |
commit | 45e02961fd3bea057f3a18175fe7cfd22fb10336 (patch) | |
tree | 9a0a01a0855a0da67bd2d3bc4b1cd8fb78e41301 /app-misc/fastfetch | |
parent | dev-python/flit_scm: Add BDEPEND (diff) | |
download | gentoo-45e02961fd3bea057f3a18175fe7cfd22fb10336.tar.gz gentoo-45e02961fd3bea057f3a18175fe7cfd22fb10336.tar.bz2 gentoo-45e02961fd3bea057f3a18175fe7cfd22fb10336.zip |
app-misc/fastfetch: add 2.12.0
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-misc/fastfetch')
-rw-r--r-- | app-misc/fastfetch/Manifest | 1 | ||||
-rw-r--r-- | app-misc/fastfetch/fastfetch-2.12.0.ebuild | 116 |
2 files changed, 117 insertions, 0 deletions
diff --git a/app-misc/fastfetch/Manifest b/app-misc/fastfetch/Manifest index 91c3b4ea5fc4..db566f5e0ba2 100644 --- a/app-misc/fastfetch/Manifest +++ b/app-misc/fastfetch/Manifest @@ -1,3 +1,4 @@ DIST fastfetch-2.11.5.tar.gz 1321195 BLAKE2B 1e7fa7c92275ae8d3458ead537003fe48595e3dfbe87c52f49fd48ab88154b824e590ab75b0c5b738304c929edbaa034a1d05df3100ffe4a9e0306e3254a8457 SHA512 d599b863259dcfaae77f1f47827814d6ca311a0cbfb2e5dfe38be144a23327db80eb646ee70e41b6872336afdb6e2754e692f393263d31e9901f588311df1059 +DIST fastfetch-2.12.0.tar.gz 1329978 BLAKE2B 3eff3830d08b9c3dc79abbf9807febdec8d29566a02d52fe6c7e9fad7f72c83effcd1fbef373b7a3759168350a4217d4599bfdc1255f37b58360a2f4b8c9b04a SHA512 ec249afb49066eb70138503062779612c4c45dfbb44429fdfea8b5bb5f310cd5bfadde7e0f21cba5a343007ab4dee0d7e3ddf7bac84791dc0c48be57ff645d9a DIST fastfetch-2.8.10.tar.gz 1290142 BLAKE2B 7a7ad65891850d96cc12d37b5e89359889afcdba6ccd30d834afd332ed072e00a719378ee3664a32b6e238fdca2fa1dc665768b078701b77837fefdacdce5027 SHA512 6b548c22239307f6dfcd90a4f995cbc77904adfd6f7ac809c7cd4c337a6783d768e2fd88d48e12c9b2c576893b74869d0a022f7129ccf37d853695ac3f5d488d DIST fastfetch-2.9.2.tar.gz 1294912 BLAKE2B 858c474d117903e990ecce4f1b9a7422da082beb79a360378ddefac1248224344a431218bb1d84b343f1ee96b044548f842ba4a04285f6e6aaaf442a92f8818b SHA512 be907b3080ff252e6c235798a6e3cb993b178a9ad02b9fd900816df560cff4f0351f212d0f00af31b671430115e5f635226bce004bb5efb7651a76f5e913a946 diff --git a/app-misc/fastfetch/fastfetch-2.12.0.ebuild b/app-misc/fastfetch/fastfetch-2.12.0.ebuild new file mode 100644 index 000000000000..c3888b1ec46e --- /dev/null +++ b/app-misc/fastfetch/fastfetch-2.12.0.ebuild @@ -0,0 +1,116 @@ +# 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.9.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 + -DIS_MUSL=$(usex elibc_musl) + + -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 +} |