summaryrefslogtreecommitdiff
path: root/gui-apps/grim
diff options
context:
space:
mode:
Diffstat (limited to 'gui-apps/grim')
-rw-r--r--gui-apps/grim/Manifest4
-rw-r--r--gui-apps/grim/grim-1.4.0-r1.ebuild50
-rw-r--r--gui-apps/grim/grim-9999.ebuild28
3 files changed, 70 insertions, 12 deletions
diff --git a/gui-apps/grim/Manifest b/gui-apps/grim/Manifest
index 2960350b3efe..baa9a23c1f0b 100644
--- a/gui-apps/grim/Manifest
+++ b/gui-apps/grim/Manifest
@@ -1,4 +1,6 @@
DIST grim-1.3.1.tar.gz 15778 BLAKE2B 7dc1f2fbc9e0f81c41d8ca535346d185a0f6c7a0ee28f0168a29864a36d1077be961278c1be3e647aa09165d9f3800e1bc7979f9fca95f8b39c339d621cd984d SHA512 07d04681ec589bf3e48b14c3bfcdc2a6012dfe5c5c2d7ee0cba95bc128187ca0de19ec04140dbe00907778f3d68844e6a90dc35365dafa489d65048b590fdf1b
+DIST grim-1.4.0.tar.gz 18287 BLAKE2B 72606de01624c98876fe1018877a3cf0b25b44ac4bd6a053f82c40ad1ea2c6c0e510cbb6a0bce988f14607ea162dda1d8350b9f30b0f2b9acd8f8e20ba50bc99 SHA512 d0b33528a00528b3ef7488a0984cde5034de4f5a211eb5c8d3299aea356d9348c5d02d08171802bc0315afb19d2446f5f132ea9dca0579ace803b7d5d90a89cc
EBUILD grim-1.3.1.ebuild 863 BLAKE2B 25197d8097d9bea56e79e392cc306d309d78b461157b8d1ab823e792b94441f6bbe3e45760cd5c62b160c90b627021f5b4dede3d1c4808f5c287b3d865c03923 SHA512 f9fc55938be271c1ee1c45ee256a7f79fb9c30ef28be3c4bf76ba1a29c8c96878fbcb6fc5cd57fe4a7c289e76bdd6da2dff44a4852cfc235d258d36550dea60f
-EBUILD grim-9999.ebuild 864 BLAKE2B fa9ac89e7e556155b4f088fb17cf3e9b55f682a115e6110adec1a03f022b2ce95965c44704a3f862b29272f7e6a4596dc32421e75bf63f96005c64984df35955 SHA512 382ee6bcb55911031940bc04ad5870196e3c7940add464d3f8ff5f0af0431b20d7f1e1b7e84623feb21b358f5455788a17d2bf43fdc8c9ef6023ca45ae059335
+EBUILD grim-1.4.0-r1.ebuild 1060 BLAKE2B 9d39b2cba5b3696bddbc35b50c637edb4b1d9f63b5ed4f8d67fc5b89aa53026827ebd41d627c7839fc4c95ea0a7766f62ab40dfaeb58853e34331c83b971b04d SHA512 cf6645e44d921f255cbecf5b37496dc01f5a1c947c124da380c414453c5d2da76f9c80bebb7247b128975dea94a973d2648abbab8d03b6920e267002201c0da6
+EBUILD grim-9999.ebuild 1055 BLAKE2B ca5eefb5da5ad020efa6ca8bc0231404056071db59bd9eabd4be715192f9c2ec39e63457fa6c7183cbb9c04244964e770ce8633391c1aff1ea4e8988b5c9b60a SHA512 55c4aee31a73d42ce649385974ce78572cd28e4668bd82d1ad21913728ac5a537e336d16aeac7dfa3e25b99b4493f7ec6afdfa883b1cb91c7a91b67ffc65ac0d
MISC metadata.xml 567 BLAKE2B d32a0402dd50cbc8bdb831468fd6dc538ad79e42ddbc2bc0078bdb015cafe3b63c970e224dc96a80446ecd977fd28d4331cc7aa5c43468222392d65bc36bba7e SHA512 87bec5b2634c5dbeb7838b0b34532a81050ad5469f483edef935b35ebf4c95d26ef946290b7e2aadb7b664baa132ce8ae9ce92bf3bde04101973438661133f8e
diff --git a/gui-apps/grim/grim-1.4.0-r1.ebuild b/gui-apps/grim/grim-1.4.0-r1.ebuild
new file mode 100644
index 000000000000..0883e35c818a
--- /dev/null
+++ b/gui-apps/grim/grim-1.4.0-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 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"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="+man jpeg"
+
+DEPEND="
+ >=dev-libs/wayland-protocols-1.14
+ dev-libs/wayland
+ media-libs/libpng
+ x11-libs/pixman
+ jpeg? ( virtual/jpeg )"
+
+RDEPEND="${DEPEND}"
+BDEPEND="man? ( app-text/scdoc )"
+
+src_configure() {
+ local emesonargs=(
+ $(meson_feature jpeg)
+ $(meson_feature man man-pages)
+ "-Dbash-completions=false"
+ "-Dfish-completions=false"
+ "-Dwerror=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/fish/grim.fish
+}
diff --git a/gui-apps/grim/grim-9999.ebuild b/gui-apps/grim/grim-9999.ebuild
index ca7406fc07a3..66522ea185c3 100644
--- a/gui-apps/grim/grim-9999.ebuild
+++ b/gui-apps/grim/grim-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-inherit meson
+inherit bash-completion-r1 meson
DESCRIPTION="Grab images from a Wayland compositor"
HOMEPAGE="https://github.com/emersion/grim"
@@ -23,22 +23,28 @@ IUSE="+man jpeg"
DEPEND="
>=dev-libs/wayland-protocols-1.14
dev-libs/wayland
- jpeg? ( virtual/jpeg )
- x11-libs/cairo"
+ media-libs/libpng
+ x11-libs/pixman
+ jpeg? ( virtual/jpeg )"
RDEPEND="${DEPEND}"
-
-if [[ ${PV} == 9999 ]]; then
- BDEPEND+="man? ( ~app-text/scdoc-9999 )"
-else
- BDEPEND+="man? ( app-text/scdoc )"
-fi
+BDEPEND="man? ( app-text/scdoc )"
src_configure() {
local emesonargs=(
$(meson_feature jpeg)
$(meson_feature man man-pages)
+ "-Dbash-completions=false"
+ "-Dfish-completions=false"
"-Dwerror=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
+}