From a78433c46ebd3497a12096ae4a54d0121c7ac143 Mon Sep 17 00:00:00 2001 From: Aisha Tammy Date: Fri, 24 Feb 2023 21:05:46 -0500 Subject: gui-apps/grim: move wayland-protocols to DEPEND Signed-off-by: Aisha Tammy Signed-off-by: Arthur Zamarin --- gui-apps/grim/grim-1.4.0-r2.ebuild | 50 ++++++++++++++++++++++++++++++++++++++ gui-apps/grim/grim-9999.ebuild | 9 ++++--- 2 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 gui-apps/grim/grim-1.4.0-r2.ebuild (limited to 'gui-apps/grim') diff --git a/gui-apps/grim/grim-1.4.0-r2.ebuild b/gui-apps/grim/grim-1.4.0-r2.ebuild new file mode 100644 index 000000000000..055ea22ded2b --- /dev/null +++ b/gui-apps/grim/grim-1.4.0-r2.ebuild @@ -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 +} diff --git a/gui-apps/grim/grim-9999.ebuild b/gui-apps/grim/grim-9999.ebuild index d4e0f640652a..055ea22ded2b 100644 --- a/gui-apps/grim/grim-9999.ebuild +++ b/gui-apps/grim/grim-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -20,14 +20,15 @@ LICENSE="MIT" SLOT="0" IUSE="+man jpeg" -DEPEND=" +RDEPEND=" dev-libs/wayland - >=dev-libs/wayland-protocols-1.14 media-libs/libpng x11-libs/pixman jpeg? ( media-libs/libjpeg-turbo ) " -RDEPEND="${DEPEND}" +DEPEND="${RDEPEND} + >=dev-libs/wayland-protocols-1.14 +" BDEPEND="man? ( app-text/scdoc )" src_configure() { -- cgit v1.2.3-65-gdbad