diff options
author | Aisha Tammy <aisha@bsd.ac> | 2023-02-24 21:05:46 -0500 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-02-25 07:42:42 +0200 |
commit | a78433c46ebd3497a12096ae4a54d0121c7ac143 (patch) | |
tree | 6fbe831c465e5f1404695cc47884abef93291000 /gui-apps | |
parent | sys-cluster/cilium-cli: add 0.13.0 (diff) | |
download | gentoo-a78433c46ebd3497a12096ae4a54d0121c7ac143.tar.gz gentoo-a78433c46ebd3497a12096ae4a54d0121c7ac143.tar.bz2 gentoo-a78433c46ebd3497a12096ae4a54d0121c7ac143.zip |
gui-apps/grim: move wayland-protocols to DEPEND
Signed-off-by: Aisha Tammy <aisha@bsd.ac>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'gui-apps')
-rw-r--r-- | gui-apps/grim/grim-1.4.0-r2.ebuild | 50 | ||||
-rw-r--r-- | gui-apps/grim/grim-9999.ebuild | 9 |
2 files changed, 55 insertions, 4 deletions
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() { |