diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2023-07-02 17:38:00 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2023-07-02 17:48:13 +0300 |
commit | 7d7e3b59530f43140286e5f240237d98d1215e41 (patch) | |
tree | 843ca17d8f713675b7c6d5a191277fd1239c00da /app-misc/fastfetch | |
parent | dev-util/sysdig: Stabilize 0.29.3-r1 x86, #909516 (diff) | |
download | gentoo-7d7e3b59530f43140286e5f240237d98d1215e41.tar.gz gentoo-7d7e3b59530f43140286e5f240237d98d1215e41.tar.bz2 gentoo-7d7e3b59530f43140286e5f240237d98d1215e41.zip |
app-misc/fastfetch: add 1.12.0
Add 1.12.0.
Upstream changed git project, update metadata.
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-misc/fastfetch')
-rw-r--r-- | app-misc/fastfetch/Manifest | 1 | ||||
-rw-r--r-- | app-misc/fastfetch/fastfetch-1.12.0.ebuild | 102 | ||||
-rw-r--r-- | app-misc/fastfetch/metadata.xml | 2 |
3 files changed, 104 insertions, 1 deletions
diff --git a/app-misc/fastfetch/Manifest b/app-misc/fastfetch/Manifest index 3286a20fb03e..d1ab8157584c 100644 --- a/app-misc/fastfetch/Manifest +++ b/app-misc/fastfetch/Manifest @@ -1 +1,2 @@ DIST fastfetch-1.11.3.tar.gz 536138 BLAKE2B fbdedcd513fe393a17d01f7d2fb02aa257dfd4a27a16916f981426228c4f607fd42b7210a2bc325297cd3972c6ae54bd559f699dc0c02b5bb5c1425b672e7173 SHA512 137952bfa7f218c87d1ebe41b5da684ff91fe025f0ef6d39d9bb5db5758033e065ed728667e4e30c225c24a0f6cf242f8b68ff93f260f08413ff98b503e6573a +DIST fastfetch-1.12.0.tar.gz 537924 BLAKE2B f7d815890193c1ad30cd1d714b9d9a751124dd34a838c9b81e7ac05392082d54e7c658ea93ce2d7ca44d4b8bff9d4cb55ea1e958731eccf1db14a53bc04072b2 SHA512 8a9b63b7eda6002771fe3c5852b31acb337c1a78d382bee8f1caa13c02e24cff1728506af2295c231f02d6ffba8b3bf9772d4a7f7f70938e83d256e74cc14de1 diff --git a/app-misc/fastfetch/fastfetch-1.12.0.ebuild b/app-misc/fastfetch/fastfetch-1.12.0.ebuild new file mode 100644 index 000000000000..7a1c4c649c9a --- /dev/null +++ b/app-misc/fastfetch/fastfetch-1.12.0.ebuild @@ -0,0 +1,102 @@ +# Copyright 2022-2023 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/fastfetch-cli/fastfetch" +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fastfetch-cli/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/fastfetch-cli/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 pulseaudio 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 ) + pulseaudio? ( media-libs/libpulse ) + 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_LIBCJSON=no + -DENABLE_RPM=no + -DENABLE_ZLIB=yes + + -DENABLE_CHAFA=$(usex chafa) + -DENABLE_DBUS=$(usex dbus) + -DENABLE_DCONF=$(usex gnome) + -DENABLE_EGL=$(usex opengl) + -DENABLE_GIO=$(usex gnome) + -DENABLE_GLX=$(usex opengl) + -DENABLE_IMAGEMAGICK6=${fastfetch_enable_imagemagick6} + -DENABLE_IMAGEMAGICK7=${fastfetch_enable_imagemagick7} + -DENABLE_LIBNM=$(usex networkmanager) + -DENABLE_LIBPCI=$(usex pci) + -DENABLE_OPENCL=$(usex opencl) + -DENABLE_OSMESA=$(usex osmesa) + -DENABLE_PULSE=$(usex pulseaudio) + -DENABLE_SQLITE3=$(usex sqlite) + -DENABLE_VULKAN=$(usex vulkan) + -DENABLE_WAYLAND=$(usex wayland) + -DENABLE_X11=$(usex X) + -DENABLE_XCB=$(usex xcb) + -DENABLE_XCB_RANDR=$(usex xcb) + -DENABLE_XFCONF=$(usex xfce) + -DENABLE_XRANDR=$(usex xrandr) + ) + + append-cppflags -DNDEBUG + + cmake_src_configure +} + +src_install() { + cmake_src_install + + rm -r "${ED}"/usr/share/licenses || die +} diff --git a/app-misc/fastfetch/metadata.xml b/app-misc/fastfetch/metadata.xml index e23d893c3265..1c1ff32e0ceb 100644 --- a/app-misc/fastfetch/metadata.xml +++ b/app-misc/fastfetch/metadata.xml @@ -6,7 +6,7 @@ <description>Primary maintainer</description> </maintainer> <upstream> - <remote-id type="github">LinusDierheimer/fastfetch</remote-id> + <remote-id type="github">fastfetch-cli/fastfetch</remote-id> </upstream> <use> <flag name="chafa">Enables text/graphics renderer with <pkg>media-gfx/chafa</pkg></flag> |