diff --git a/app-misc/fastfetch/fastfetch-1.7.5.ebuild b/app-misc/fastfetch/fastfetch-1.7.5.ebuild index 8fa754c752..c9038f0156 100644 --- a/app-misc/fastfetch/fastfetch-1.7.5.ebuild +++ b/app-misc/fastfetch/fastfetch-1.7.5.ebuild @@ -7,16 +7,19 @@ inherit cmake DESCRIPTION="Fast system information tool" HOMEPAGE="https://github.com/LinusDierheimer/fastfetch" -if [[ ${PV} == *9999 ]]; then +if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/LinusDierheimer/fastfetch.git" + [[ ${PV} == *9999 ]] && EGIT_BRANCH=master + [[ ${PV} == *d ]] && EGIT_BRANCH=dev + [[ "${EGIT_BRANCH}" == "" ]] && die "Please set a git branch" else SRC_URI="https://github.com/LinusDierheimer/fastfetch/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" 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 diff --git a/app-misc/fastfetch/fastfetch-9999.ebuild b/app-misc/fastfetch/fastfetch-9999.ebuild index b2b17703e9..c9038f0156 100644 --- a/app-misc/fastfetch/fastfetch-9999.ebuild +++ b/app-misc/fastfetch/fastfetch-9999.ebuild @@ -7,11 +7,15 @@ inherit cmake DESCRIPTION="Fast system information tool" HOMEPAGE="https://github.com/LinusDierheimer/fastfetch" -if [[ ${PV} == *9999 ]]; then +if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/LinusDierheimer/fastfetch.git" + [[ ${PV} == *9999 ]] && EGIT_BRANCH=master + [[ ${PV} == *d ]] && EGIT_BRANCH=dev + [[ "${EGIT_BRANCH}" == "" ]] && die "Please set a git branch" else SRC_URI="https://github.com/LinusDierheimer/fastfetch/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" fi LICENSE="MIT" diff --git a/app-misc/fastfetch/fastfetch-9999d.ebuild b/app-misc/fastfetch/fastfetch-9999d.ebuild new file mode 100644 index 0000000000..c9038f0156 --- /dev/null +++ b/app-misc/fastfetch/fastfetch-9999d.ebuild @@ -0,0 +1,89 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Fast system information tool" +HOMEPAGE="https://github.com/LinusDierheimer/fastfetch" +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/LinusDierheimer/fastfetch.git" + [[ ${PV} == *9999 ]] && EGIT_BRANCH=master + [[ ${PV} == *d ]] && EGIT_BRANCH=dev + [[ "${EGIT_BRANCH}" == "" ]] && die "Please set a git branch" +else + SRC_URI="https://github.com/LinusDierheimer/fastfetch/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" +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 ) + 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 '