From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 72597158087 for ; Fri, 21 Jan 2022 09:14:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46AF32BC061; Fri, 21 Jan 2022 09:14:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC8922BC002 for ; Fri, 21 Jan 2022 09:14:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9C7BB343095 for ; Fri, 21 Jan 2022 09:14:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC94C275 for ; Fri, 21 Jan 2022 09:14:45 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1642712042.b793f72d72fcb9cc518b5580b12798a70787a15a.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/fastfetch/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-misc/fastfetch/Manifest app-misc/fastfetch/fastfetch-20220120.ebuild app-misc/fastfetch/metadata.xml X-VCS-Directories: app-misc/fastfetch/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: b793f72d72fcb9cc518b5580b12798a70787a15a X-VCS-Branch: master Date: Fri, 21 Jan 2022 09:14:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eeeb07f6-7037-4a0b-8bcb-a018067b6d1e X-Archives-Hash: c598b15a3686e24aa14c28d3261a5ff1 commit: b793f72d72fcb9cc518b5580b12798a70787a15a Author: Viorel Munteanu gmail com> AuthorDate: Thu Jan 20 20:53:11 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Jan 20 20:54:02 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b793f72d app-misc/fastfetch: initial import Signed-off-by: Viorel Munteanu gmail.com> app-misc/fastfetch/Manifest | 1 + app-misc/fastfetch/fastfetch-20220120.ebuild | 79 ++++++++++++++++++++++++++++ app-misc/fastfetch/metadata.xml | 17 ++++++ 3 files changed, 97 insertions(+) diff --git a/app-misc/fastfetch/Manifest b/app-misc/fastfetch/Manifest new file mode 100644 index 000000000..067d516a2 --- /dev/null +++ b/app-misc/fastfetch/Manifest @@ -0,0 +1 @@ +DIST fastfetch-20220120.tar.gz 177779 BLAKE2B 348b42b132c033db3830f74c2aab9ee40d88842c86ff395e14ba74863dbb353ad1f017ca9d8c136142e32c0492af193b735a6aab9bc973ace6d22162eb73d851 SHA512 1c4e8bd6ab4d21fec732007c3026ea690486ea5f3749115204235cff918e3e0479013ef19c65aeea6e38049a1d3fe0a05f1d1750cbae2b09e9caa64fe4945f2e diff --git a/app-misc/fastfetch/fastfetch-20220120.ebuild b/app-misc/fastfetch/fastfetch-20220120.ebuild new file mode 100644 index 000000000..8795bd438 --- /dev/null +++ b/app-misc/fastfetch/fastfetch-20220120.ebuild @@ -0,0 +1,79 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 cmake + +COMMIT="e30a64e97e0bf1c6bf68aa6f54a25c5995c2fdd2" +VERSION_MAJOR="554" +VERSION_MINOR="cd4739e" + +DESCRIPTION="Like neofetch but faster" +HOMEPAGE="https://github.com/LinusDierheimer/fastfetch" +SRC_URI="https://github.com/LinusDierheimer/fastfetch/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="X gnome pci vulkan wayland xcb xfce xrandr" + +# note - qa-vdb will always report errors because fastfetch loads the libs dynamically +RDEPEND=" + X? ( x11-libs/libX11 ) + gnome? ( + dev-libs/glib + gnome-base/dconf + ) + pci? ( sys-apps/pciutils ) + 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 )" + +S="${WORKDIR}/${PN}-${COMMIT}" + +# disable_check VAR lib +disable_check() { + sed -i -e " + /pkg_check_modules ($1 /d + /message.*$2/d" CMakeLists.txt || die "Cannot disable $1" +} + +src_configure() { + disable_check RPM librpm + + use X || disable_check X11 x11 + use gnome || (disable_check GIO gio- && disable_check DCONF dconf) + use pci || disable_check LIBPCI libpci + use vulkan || disable_check VULKAN vulkan + use wayland || disable_check WAYLAND wayland-client + use xcb || (disable_check XCB_RANDR xcb-randr && disable_check XCB xcb) + use xfce || disable_check XFCONF libxfconf + use xrandr || disable_check XRANDR xrandr + + # version comes from git, fake it + sed -i -e " + s/\(PROJECT_VERSION\) .*$/\1 "r${VERSION_MAJOR}.${VERSION_MINOR}")/ + s/\(PROJECT_VERSION_MAJOR\) .*$/\1 "${VERSION_MAJOR}")/" CMakeLists.txt || die "Cannot patch version" + + cmake_src_configure +} + +src_install() { + pushd "${BUILD_DIR}" || die + dobin fastfetch + popd + + newbashcomp completions/bash fastfetch + insinto /usr/share/${PN}/presets + doins presets/* + + einstalldocs +} diff --git a/app-misc/fastfetch/metadata.xml b/app-misc/fastfetch/metadata.xml new file mode 100644 index 000000000..d5e16ecbd --- /dev/null +++ b/app-misc/fastfetch/metadata.xml @@ -0,0 +1,17 @@ + + + + + ceamac.paragon@gmail.com + Primary maintainer + + + LinusDierheimer/fastfetch + + + Enables reading GPU via sys-apps/pciutils + Enables reading GPU via media-libs/vulkan-loader + Enables support for XFCE config + Enables support for Xrandr + +