commit:     eb2203f6e2632e6ed8ea6deae7ff4425215fcadd
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 16 18:36:11 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Jul 16 18:37:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb2203f6

gui-apps/grim: add 1.5.0

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 gui-apps/grim/Manifest          |  1 +
 gui-apps/grim/grim-1.5.0.ebuild | 53 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/gui-apps/grim/Manifest b/gui-apps/grim/Manifest
index 4ccd770ba0bb..0bdbfdba17d9 100644
--- a/gui-apps/grim/Manifest
+++ b/gui-apps/grim/Manifest
@@ -1 +1,2 @@
 DIST grim-1.4.1.tar.gz 18372 BLAKE2B 
cfb432205c9ef47bc292e995c0095f2df492bf0eae63556baa3c1f8a845171f71c5b632c78394b7fad02ac6508d266ea43f912f9cbb75bb786df91c4d38df1e9
 SHA512 
e6f5e540a4e70467971b932c4a36bda88742de360925cf1bb1908823f76ac295c8ef5ec953fcdeb083c39b13a8cd24a01d4739ae4cc37e106b60956266eeef22
+DIST grim-v1.5.0.tar.bz2 18502 BLAKE2B 
4243c8288e76364463e20ce704bcb7a6bf5a76bba333c86b9d89494cc76604bc10c67d8eb0f8f6d575089dde2a6d1e0ffa518aad75cfdbbfddfecbef2faf90b8
 SHA512 
5eccc172a4d21be7e541f201a86909647d54533749c6dc679b8e68383a310a832f42cf8b5096ef61838c9c7b3213b32b4f54103a67b238ede718b4be834a0aed

diff --git a/gui-apps/grim/grim-1.5.0.ebuild b/gui-apps/grim/grim-1.5.0.ebuild
new file mode 100644
index 000000000000..9937fdbf1612
--- /dev/null
+++ b/gui-apps/grim/grim-1.5.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit shell-completion meson
+
+DESCRIPTION="Grab images from a Wayland compositor"
+HOMEPAGE="https://gitlab.freedesktop.org/emersion/grim";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://gitlab.freedesktop.org/emersion/grim.git";
+else
+       
SRC_URI="https://gitlab.freedesktop.org/emersion/grim/-/archive/v${PV}/grim-v${PV}.tar.bz2";
+       S="${WORKDIR}/${PN}-v${PV}"
+       KEYWORDS="~amd64 ~arm64 ~loong ~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="
+       dev-util/wayland-scanner
+       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
+       dofishcomp contrib/completions/fish/grim.fish
+}

Reply via email to