diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2024-05-21 07:38:03 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2024-05-21 07:38:03 +0300 |
commit | 4fa4f7713dc583b4cd30a1b8599c5e29daf69254 (patch) | |
tree | ea82da915351fa62356807f0bbc12cd07be54f0b /app-misc | |
parent | dev-python/sabctools: Bump to 8.2.3 (diff) | |
download | gentoo-4fa4f7713dc583b4cd30a1b8599c5e29daf69254.tar.gz gentoo-4fa4f7713dc583b4cd30a1b8599c5e29daf69254.tar.bz2 gentoo-4fa4f7713dc583b4cd30a1b8599c5e29daf69254.zip |
app-misc/fastfetch: add 2.13.1
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/fastfetch/Manifest | 1 | ||||
-rw-r--r-- | app-misc/fastfetch/fastfetch-2.13.1.ebuild | 116 |
2 files changed, 117 insertions, 0 deletions
diff --git a/app-misc/fastfetch/Manifest b/app-misc/fastfetch/Manifest index 82c89ad90971..b2f570c67adf 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.13.0.tar.gz 1340017 BLAKE2B be6180f47b1ac3432a10c0d0909a66e649b1882ceb06d261f892cbaec8d588b1f125369906053ffa5475a0153c46e3a39bb2527cbaa1c8d86876224499af8c06 SHA512 d2605fac446894fe2f8fa75e2705d16e48bfe17cd69c997c1d9b9d43d2d38c7dc991ba2cb0f5883d9e9c4b91e16b568382979243e0550e832e6aca2cab230462 +DIST fastfetch-2.13.1.tar.gz 1339621 BLAKE2B d1218c7481f387fceccd8cd20941f9eee1f4783f8f017f7cd62636382734eca02e878da33fa7667ec0fc5eb5c68e04ede5dd1582e28b5d3d0165cbfd8d28a7cd SHA512 3e8a067d8df85f9d28d159e934e92fff4186f6bb48a83155815dfa0fea895bd558d99dc6c365a62c5e9f35cb1f02390f56c6811821f62aae9d85ed235d475ef5 DIST fastfetch-2.9.2.tar.gz 1294912 BLAKE2B 858c474d117903e990ecce4f1b9a7422da082beb79a360378ddefac1248224344a431218bb1d84b343f1ee96b044548f842ba4a04285f6e6aaaf442a92f8818b SHA512 be907b3080ff252e6c235798a6e3cb993b178a9ad02b9fd900816df560cff4f0351f212d0f00af31b671430115e5f635226bce004bb5efb7651a76f5e913a946 diff --git a/app-misc/fastfetch/fastfetch-2.13.1.ebuild b/app-misc/fastfetch/fastfetch-2.13.1.ebuild new file mode 100644 index 000000000000..c3888b1ec46e --- /dev/null +++ b/app-misc/fastfetch/fastfetch-2.13.1.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 +} |