mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 16:13:21 -04:00
app-misc/fastfetch: add 1.9.0
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST fastfetch-1.8.2.tar.gz 495971 BLAKE2B e490323b2a18c2cc6a17569955fde820584a4b1e547ad18162b1cbb6f72c61cf8e891c4d1ed56c89f78ac0bc3d5769603e1dfc61c32bad07985c0df27cdf5e10 SHA512 cad6e1f69fd9192e63a55478ee6abe1f0a72c1d4af645d2b8fc1e56fc90eda80f62b5da7a87744ba1a668e5f0b785aac0e49be90867d3b61c674cf455cf984c0
|
||||
DIST fastfetch-1.9.0.tar.gz 510212 BLAKE2B 1a716e3bdba946503b9fef810026965b02c2af2803bfb2b8bd6bbf826fdfcd566e11ab15b654e570d5a9526fa4a26be7127902a1204c0ee52c452c7310d1bc36 SHA512 6a8aa8260e3d32d1ac4e7788b89492d8377b1dd5e15a5e08d002d3945bc7360d47a4fe5805117d8386de487ac17020eca0b7fcd8333c194453874bd3517e73e4
|
||||
|
||||
99
app-misc/fastfetch/fastfetch-1.9.0.ebuild
Normal file
99
app-misc/fastfetch/fastfetch-1.9.0.ebuild
Normal file
@@ -0,0 +1,99 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake flag-o-matic
|
||||
|
||||
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} == *0.1.9999 ]] && EGIT_BRANCH=master
|
||||
[[ ${PV} == *0.2.9999 ]] && 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 networkmanager 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:= )
|
||||
networkmanager? ( net-misc/networkmanager )
|
||||
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)
|
||||
-DENABLE_LIBCJSON=no
|
||||
-DENABLE_LIBNM=$(usex networkmanager)
|
||||
)
|
||||
|
||||
append-cppflags -DNDEBUG
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
rm -r "${ED}"/usr/share/licenses || die
|
||||
}
|
||||
Reference in New Issue
Block a user