# Copyright 2024-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 LAZARUS_WIDGET=qt6 inherit lazarus optfeature xdg MY_PV="${PV/_p/-}" DESCRIPTION="Graphical UI to help manage Linux overlays" HOMEPAGE="https://github.com/benjamimgois/goverlay" SRC_URI=" https://github.com/benjamimgois/goverlay/archive/refs/tags/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz " S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" # tests not applicable downstream FEATURES="test" DEPEND=" media-libs/libsdl2 media-libs/mesa virtual/zlib:= x11-libs/libX11 " # overzealous deps. Some could be optfeature's instead. RDEPEND=" ${DEPEND} !gui-apps/pascube app-shells/bash dev-vcs/git games-util/gamemode games-util/mangohud media-fonts/symbols-nerd-font net-misc/curl sys-apps/iproute2 || ( app-arch/7zip[symlinks(+)] app-arch/p7zip ) " QA_FLAGS_IGNORED=".*" src_prepare() { default # Disable stripping sed -i -e '//,/<\/Linking>/ { //,/<\/Debugging>/d }' goverlay.lpi || die } src_compile() { emake LAZBUILDOPTS="${LAZARUSARGS}" } src_install() { emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install einstalldocs } pkg_postinst() { xdg_pkg_postinst # https://github.com/benjamimgois/goverlay#optional--used-by-specific-features optfeature "Vulkan post-processing effects" media-gfx/vkBasalt media-gfx/vkSumi optfeature "Proton prefix management" app-emulation/protontricks }