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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E2B3015808B for ; Thu, 17 Feb 2022 07:58:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B70AE08C4; Thu, 17 Feb 2022 07:58:10 +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 E72DDE08C4 for ; Thu, 17 Feb 2022 07:58:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 BB911342E8A for ; Thu, 17 Feb 2022 07:58:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1C5141F1 for ; Thu, 17 Feb 2022 07:58:07 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1645084641.49e3437cf4c5d2e3333106b85a70d49f57b3bbb8.viorel_munteanu@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/fastfetch/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-misc/fastfetch/Manifest app-misc/fastfetch/fastfetch-0.599.ebuild X-VCS-Directories: app-misc/fastfetch/ X-VCS-Committer: viorel_munteanu X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: 49e3437cf4c5d2e3333106b85a70d49f57b3bbb8 X-VCS-Branch: dev Date: Thu, 17 Feb 2022 07:58:07 +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: 6f275076-0c06-4b4d-8bfa-701dad8d387f X-Archives-Hash: 7106f47643304398d5559226d0ad6d3a commit: 49e3437cf4c5d2e3333106b85a70d49f57b3bbb8 Author: Viorel Munteanu gmail com> AuthorDate: Thu Feb 17 07:57:21 2022 +0000 Commit: Viorel Munteanu gmail com> CommitDate: Thu Feb 17 07:57:21 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=49e3437c app-misc/fastfetch: add 0.599 Signed-off-by: Viorel Munteanu gmail.com> app-misc/fastfetch/Manifest | 1 + app-misc/fastfetch/fastfetch-0.599.ebuild | 85 +++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/app-misc/fastfetch/Manifest b/app-misc/fastfetch/Manifest index 1e6111f73..34fddfa90 100644 --- a/app-misc/fastfetch/Manifest +++ b/app-misc/fastfetch/Manifest @@ -1 +1,2 @@ DIST fastfetch-0.583.tar.gz 321971 BLAKE2B 65565ecaa2a0d54d17fff98736c0c923371a848ab31ba403430d3dc76d6d412077a15761b951de907c82c87b879762c2b441a1baeebe179e7234308e5a988ec7 SHA512 81d1a54033517747349228c397ad4eda64bcf5946de25edcd3b7eb4bb90102e8b7bc886b5e7697f7de1f71f47e38fa75e33b6467b8a81421b6675384aebc24d2 +DIST fastfetch-0.599.tar.gz 323683 BLAKE2B 73dd5269fd37b6393f2f02fa93c1a398726101922cc6ec05862939f290edb02269131292cf1384dba3bd13996e06e861f62cd77cfa5c2dd2eaeee28c0eb97707 SHA512 90af0425d8a7746009028aeddb50970ead3d74506bc75defb8c4a179a9e51b8d2cd32186b25e9cc45c40c85567ee783edf581a79ee1fd5468d6936caf5ab4e2a diff --git a/app-misc/fastfetch/fastfetch-0.599.ebuild b/app-misc/fastfetch/fastfetch-0.599.ebuild new file mode 100644 index 000000000..45e0a85f0 --- /dev/null +++ b/app-misc/fastfetch/fastfetch-0.599.ebuild @@ -0,0 +1,85 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 cmake + +DESCRIPTION="Like neofetch but faster" +HOMEPAGE="https://github.com/LinusDierheimer/fastfetch" +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/LinusDierheimer/fastfetch.git" +else + COMMIT="ed63ef1a28d58f7f582b52c8a49495f27ae8885a" + VERSION_REV="ed63ef1" + SRC_URI="https://github.com/LinusDierheimer/fastfetch/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" +fi + +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 )" + +src_configure() { + local mycmakeargs=( + -DENABLE_RPM=no + -DENABLE_VULKAN=$(usex vulkan) + -DENABLE_WAYLAND=$(usex wayland) + -DENABLE_XCB_RANDR=$(usex xcb) + -DENABLE_XCB=$(usex xcb) + -DENABLE_XRANDR=$(usex xrandr) + -DENABLE_X11=$(usex X) + -DENABLE_GIO=$(usex gnome) + -DENABLE_DCONF=$(usex gnome) + -DENABLE_XFCONF=$(usex xfce) + ) + + if [[ ${PV} != *9999 ]]; then + # version comes from git, fake it + VERSION_MAJOR="$(ver_cut 2)" + sed -i -e " + s/\(PROJECT_VERSION\) .*$/\1 \"r${VERSION_MAJOR}.${VERSION_REV}\")/ + s/\(PROJECT_VERSION_MAJOR\) .*$/\1 \"${VERSION_MAJOR}\")/" CMakeLists.txt || die "Cannot patch version" + fi + + cmake_src_configure +} + +src_install() { + if [[ ${PV} == *9999 ]]; then + elog "REV=\"r$(git rev-list --count HEAD)\"" + elog "COMMIT=\"$(git rev-parse HEAD)\"" + elog "VERSION_REV=\"$(git rev-parse --short HEAD)\"" + fi + + pushd "${BUILD_DIR}" || die + dobin fastfetch + popd + + newbashcomp completions/bash fastfetch + insinto /usr/share/${PN}/presets + doins presets/* + + einstalldocs +}