diff options
author | Pascal Jäger <pascal.jaeger@leimstift.de> | 2023-05-02 19:14:30 +0200 |
---|---|---|
committer | Pascal Jäger <pascal.jaeger@leimstift.de> | 2023-05-02 19:15:10 +0200 |
commit | 50ec94daa96109fb5346f5f864b23c242ded2934 (patch) | |
tree | 1b2a91f80412f39bb47b2bc2d7502c4feaf1385e /gui-wm | |
parent | profiles: mask dev-python/promise (diff) | |
download | guru-50ec94daa96109fb5346f5f864b23c242ded2934.tar.gz guru-50ec94daa96109fb5346f5f864b23c242ded2934.tar.bz2 guru-50ec94daa96109fb5346f5f864b23c242ded2934.zip |
gui-wm/hyprland-contrib: add USE flags
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Diffstat (limited to 'gui-wm')
-rw-r--r-- | gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild | 77 |
1 files 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 } |