mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 15:59:00 -04:00
gui-wm/hyprland-contrib: add 9999
* add me as Proxy Mantainer Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
parent
03093741cb
commit
9d70430aee
@ -7,11 +7,17 @@ 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"
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://github.com/hyprwm/contrib.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/hyprwm/contrib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/contrib-${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+grimblast +hyprprop +scratchpad +shellevents +swap"
|
||||
|
||||
RDEPEND="
|
||||
|
92
gui-wm/hyprland-contrib/hyprland-contrib-9999.ebuild
Normal file
92
gui-wm/hyprland-contrib/hyprland-contrib-9999.ebuild
Normal file
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit optfeature
|
||||
|
||||
DESCRIPTION="Community-maintained extensions for hyprland"
|
||||
HOMEPAGE="https://hyprland.org/"
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://github.com/hyprwm/contrib.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/hyprwm/contrib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/contrib-${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="+grimblast +hyprprop +hdrop +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
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
grimblast? (
|
||||
app-text/scdoc
|
||||
)
|
||||
hyprprop? (
|
||||
app-text/scdoc
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
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 hdrop; then
|
||||
pushd hdrop || die
|
||||
PREFIX="${D}/usr" emake hdrop.1 #PR:80 will fix this
|
||||
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 hdrop || use scratchpad || use swap; then
|
||||
optfeature "GUI notifications during dependency checks" x11-libs/libnotify
|
||||
fi
|
||||
}
|
@ -8,6 +8,7 @@
|
||||
<use>
|
||||
<flag name="grimblast">Install grimblast, a hyprland version of grimshot</flag>
|
||||
<flag name="hyprprop">Install hyprprop, a xprop replacement for hyprland</flag>
|
||||
<flag name="hdrop">Install hdrop, a tdrop replacement for Hyprland</flag>
|
||||
<flag name="scratchpad">Install scratchpad script</flag>
|
||||
<flag name="shellevents">Install shellevents, invoke hell functions in response to Hyprland socket events</flag>
|
||||
<flag name="swap">Install try_swap_workspace, a script to emulate monitor-workspace agnostic behavior of other window managers</flag>
|
||||
|
Loading…
x
Reference in New Issue
Block a user