summaryrefslogtreecommitdiff
path: root/gui-wm
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2022-04-16 16:25:50 +0200
committerMatthew Thode <prometheanfire@gentoo.org>2022-07-08 10:29:10 -0500
commit5073f0faab8c73622ba39bf1b2e3d67cea6d315a (patch)
treee6e576ebf94183163e95d84cb1ed70599b735c6f /gui-wm
parentgui-wm/sway: bump for new grimshot utility (diff)
downloadgentoo-5073f0faab8c73622ba39bf1b2e3d67cea6d315a.tar.gz
gentoo-5073f0faab8c73622ba39bf1b2e3d67cea6d315a.tar.bz2
gentoo-5073f0faab8c73622ba39bf1b2e3d67cea6d315a.zip
gui-wm/sway: introduce grimshot: utility for taking screenshots
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'gui-wm')
-rw-r--r--gui-wm/sway/sway-1.7-r1.ebuild9
-rw-r--r--gui-wm/sway/sway-9999.ebuild19
2 files changed, 25 insertions, 3 deletions
diff --git a/gui-wm/sway/sway-1.7-r1.ebuild b/gui-wm/sway/sway-1.7-r1.ebuild
index ebf427818f84..7ad45789f21a 100644
--- a/gui-wm/sway/sway-1.7-r1.ebuild
+++ b/gui-wm/sway/sway-1.7-r1.ebuild
@@ -14,7 +14,7 @@ if [[ ${PV} == 9999 ]]; then
else
MY_PV=${PV/_rc/-rc}
SRC_URI="https://github.com/swaywm/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~arm64"
+ KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
S="${WORKDIR}/${PN}-${MY_PV}"
fi
@@ -37,6 +37,11 @@ DEPEND="
swaybg? ( gui-apps/swaybg )
swayidle? ( gui-apps/swayidle )
swaylock? ( gui-apps/swaylock )
+ tray? ( || (
+ sys-apps/systemd
+ sys-auth/elogind
+ sys-libs/basu
+ ) )
wallpapers? ( x11-libs/gdk-pixbuf:2[jpeg] )
X? ( x11-libs/libxcb:0= )
"
@@ -69,6 +74,7 @@ if [[ ${PV} == 9999 ]]; then
else
BDEPEND+="man? ( >=app-text/scdoc-1.9.3 )"
fi
+REQUIRED_USE="grimshot? ( swaymsg )"
src_configure() {
local emesonargs=(
@@ -82,7 +88,6 @@ src_configure() {
-Dfish-completions=true
-Dzsh-completions=true
-Dbash-completions=true
- -Dwerror=false
)
meson_src_configure
diff --git a/gui-wm/sway/sway-9999.ebuild b/gui-wm/sway/sway-9999.ebuild
index 3f38a9b21df9..3c0073c3c363 100644
--- a/gui-wm/sway/sway-9999.ebuild
+++ b/gui-wm/sway/sway-9999.ebuild
@@ -20,7 +20,7 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="+man +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag tray wallpapers X"
+IUSE="grimshot +man +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag tray wallpapers X"
DEPEND="
>=dev-libs/json-c-0.13:0=
@@ -55,6 +55,13 @@ else
fi
RDEPEND="
x11-misc/xkeyboard-config
+ grimshot? (
+ app-misc/jq
+ gui-apps/grim
+ gui-apps/slurp
+ gui-apps/wl-clipboard
+ x11-libs/libnotify
+ )
${DEPEND}
"
BDEPEND="
@@ -67,6 +74,7 @@ if [[ ${PV} == 9999 ]]; then
else
BDEPEND+="man? ( >=app-text/scdoc-1.9.3 )"
fi
+REQUIRED_USE="grimshot? ( swaymsg )"
src_configure() {
local emesonargs=(
@@ -84,3 +92,12 @@ src_configure() {
meson_src_configure
}
+
+src_install() {
+ meson_src_install
+
+ if use grimshot; then
+ doman contrib/grimshot.1
+ dobin contrib/grimshot
+ fi
+}