gui-apps/grim: add 1.5.0

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-07-16 21:36:11 +03:00
parent 48135ba887
commit eb2203f6e2
2 changed files with 54 additions and 0 deletions

View File

@@ -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

View File

@@ -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
}