commit: b793f72d72fcb9cc518b5580b12798a70787a15a Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com> AuthorDate: Thu Jan 20 20:53:11 2022 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> 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 <ceamac.paragon <AT> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>ceamac.para...@gmail.com</email> + <description>Primary maintainer</description> +</maintainer> +<upstream> + <remote-id type="github">LinusDierheimer/fastfetch</remote-id> +</upstream> +<use> + <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> +</pkgmetadata>