commit: 50ec94daa96109fb5346f5f864b23c242ded2934 Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> AuthorDate: Tue May 2 17:14:30 2023 +0000 Commit: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> CommitDate: Tue May 2 17:15:10 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=50ec94da
gui-wm/hyprland-contrib: add USE flags Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de> .../hyprland-contrib/hyprland-contrib-0.1.ebuild | 77 +++++++++++++++++----- 1 file changed, 60 insertions(+), 17 deletions(-) diff --git a/gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild b/gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild index 3769f05a6..3f381d5a7 100644 --- a/gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild +++ b/gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit optfeature + DESCRIPTION="Community-maintained extensions for hyprland" HOMEPAGE="https://hyprland.org/" SRC_URI="https://github.com/hyprwm/contrib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" @@ -10,29 +12,70 @@ SRC_URI="https://github.com/hyprwm/contrib/archive/refs/tags/v${PV}.tar.gz -> ${ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="" +IUSE="+grimblast +hyprprop +scratchpad +shellevents +swap" RDEPEND=" app-shells/bash + gui-wm/hyprland + grimblast? ( + gui-apps/wl-clipboard + gui-apps/grim + app-misc/jq + gui-apps/slurp + app-misc/jq + ) + hyprprop? ( + app-misc/jq + gui-apps/slurp + ) + scratchpad? ( + sys-apps/sed + app-misc/jq + gui-apps/slurp + app-misc/jq + ) " -DEPEND="${RDEPEND} +BDEPEND=" + grimblast? ( + app-text/scdoc + ) + hyprprop? ( + app-text/scdoc + ) " +DEPEND="${RDEPEND}" S="${WORKDIR}/contrib-${PV}" src_install() { - pushd grimblast || die - PREFIX="${D}/usr" emake install - popd || die - pushd hyprprop || die - PREFIX="${D}/usr" emake install - popd || die - pushd scratchpad || die - PREFIX="${D}/usr" emake install - popd || die - pushd shellevents || die - PREFIX="${D}/usr" emake install - popd || die - pushd try_swap_workspace || die - PREFIX="${D}/usr" emake install - popd || die + if use grimblast; then + pushd grimblast || die + PREFIX="${D}/usr" emake install + popd || die + fi + if use hyprprop; then + pushd hyprprop || die + PREFIX="${D}/usr" emake install + popd || die + fi + if use scratchpad; then + pushd scratchpad || die + PREFIX="${D}/usr" emake install + popd || die + fi + if use shellevents; then + pushd shellevents || die + PREFIX="${D}/usr" emake install + popd || die + fi + if use swap; then + pushd try_swap_workspace || die + PREFIX="${D}/usr" emake install + popd || die + fi +} + +pkg_postinst() { + if use grimblast || use hyprprop || use scratchpad || use swap; then + optfeature "GUI notifications during dependency checks" x11-libs/libnotify + fi }
