commit: a00aa79377eb521ed1360895d6b9ab95e58b46af Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com> AuthorDate: Mon Aug 22 10:29:08 2022 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Mon Aug 22 10:29:08 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a00aa793
app-misc/fastfetch: add 1.6.5 Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com> app-misc/fastfetch/Manifest | 1 + app-misc/fastfetch/fastfetch-1.6.5.ebuild | 88 +++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/app-misc/fastfetch/Manifest b/app-misc/fastfetch/Manifest index 297e16ea5..750a015c7 100644 --- a/app-misc/fastfetch/Manifest +++ b/app-misc/fastfetch/Manifest @@ -1 +1,2 @@ DIST fastfetch-1.6.4.tar.gz 350947 BLAKE2B 4fd493c15f6997fbb4caa6ce3a4266addc2a8f1fcb6328cdbfbc24988ca7d778bcdd1d3f8ba21894436a0a6aca83ea3a8396de43016c5b66ec55bc9148062222 SHA512 7470ab66ef3a0a351f3455240625fdffc04f487fd9af6975fcbb4ba5803357bfab55156c7b6396faab3d12b26b883a0c0eb8722b23f08173250d51527949b30d +DIST fastfetch-1.6.5.tar.gz 350944 BLAKE2B 51ef09e23656af1368be49b88f83a80d7028184f2dedeec7a392dfd4c578cf9d50ca29d40bae7b6856e733dad4da30525c33aae5ec5e6ab9d7eaeb9d43f72697 SHA512 795d0a23ebe09162f22db985c67e9ffbc6772765ee8b052a6fa78fd61ec12651e45932ab17247876545065c40f57040d90f7117cb991c78f84271141c7bff3e5 diff --git a/app-misc/fastfetch/fastfetch-1.6.5.ebuild b/app-misc/fastfetch/fastfetch-1.6.5.ebuild new file mode 100644 index 000000000..8bb11194b --- /dev/null +++ b/app-misc/fastfetch/fastfetch-1.6.5.ebuild @@ -0,0 +1,88 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit 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 + SRC_URI="https://github.com/LinusDierheimer/fastfetch/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="X chafa dbus gnome imagemagick opencl opengl osmesa pci sqlite vulkan wayland xcb xfce xrandr" + +# note - qa-vdb will always report errors because fastfetch loads the libs dynamically +RDEPEND=" + sys-libs/zlib + X? ( x11-libs/libX11 ) + chafa? ( + media-gfx/chafa + media-gfx/imagemagick:= + ) + dbus? ( sys-apps/dbus ) + gnome? ( + dev-libs/glib + gnome-base/dconf + ) + imagemagick? ( media-gfx/imagemagick:= ) + opencl? ( virtual/opencl ) + opengl? ( media-libs/libglvnd[X] ) + osmesa? ( media-libs/mesa[osmesa] ) + pci? ( sys-apps/pciutils ) + sqlite? ( dev-db/sqlite:3 ) + 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 ) + 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_LIBPCI=$(usex pci) + -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) + -DENABLE_IMAGEMAGICK7=${fastfetch_enable_imagemagick7} + -DENABLE_IMAGEMAGICK6=${fastfetch_enable_imagemagick6} + -DENABLE_ZLIB=yes + -DENABLE_CHAFA=$(usex chafa) + -DENABLE_SQLITE3=$(usex sqlite) + -DENABLE_EGL=$(usex opengl) + -DENABLE_GLX=$(usex opengl) + -DENABLE_OSMESA=$(usex osmesa) + -DENABLE_OPENCL=$(usex opencl) + -DENABLE_DBUS=$(usex dbus) + ) + + cmake_src_configure +}