forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui-apps/grim: move wayland-protocols to DEPEND
Signed-off-by: Aisha Tammy <[email protected]> Signed-off-by: Arthur Zamarin <[email protected]>
- Loading branch information
Showing
2 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit bash-completion-r1 meson | ||
|
||
DESCRIPTION="Grab images from a Wayland compositor" | ||
HOMEPAGE="https://github.com/emersion/grim" | ||
|
||
if [[ ${PV} == 9999 ]]; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/emersion/${PN}.git" | ||
else | ||
SRC_URI="https://github.com/emersion/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" | ||
fi | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
IUSE="+man jpeg" | ||
|
||
RDEPEND=" | ||
dev-libs/wayland | ||
media-libs/libpng | ||
x11-libs/pixman | ||
jpeg? ( media-libs/libjpeg-turbo ) | ||
" | ||
DEPEND="${RDEPEND} | ||
>=dev-libs/wayland-protocols-1.14 | ||
" | ||
BDEPEND="man? ( app-text/scdoc )" | ||
|
||
src_configure() { | ||
local emesonargs=( | ||
$(meson_feature jpeg) | ||
$(meson_feature man man-pages) | ||
"-Dbash-completions=false" | ||
"-Dfish-completions=false" | ||
) | ||
meson_src_configure | ||
} | ||
|
||
src_install() { | ||
meson_src_install | ||
|
||
newbashcomp contrib/completions/bash/grim.bash grim | ||
insinto /usr/share/fish/vendor_completions.d/ | ||
doins contrib/completions/grim.fish | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters