From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-apps/grim/
Date: Wed, 23 Feb 2022 04:05:21 +0000 (UTC) [thread overview]
Message-ID: <1645588572.09978a4d6fbfd46071119b15a167db69edc541a8.sam@gentoo> (raw)
commit: 09978a4d6fbfd46071119b15a167db69edc541a8
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sat Feb 19 11:58:10 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 23 03:56:12 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09978a4d
gui-apps/grim: update dependencies and install completions manually
* Disable bash-completions switch and instead install bash completions
with bash-completion-r1 eclass.
* This serves to avoid the build system requiring
app-shells/bash-completion or having to go out of your way to remove
this requirement from the build system itself.
* Install fish completions manually with doins.
* These changes are included in a new revision of 1.4.0 and in 9999.
* Also update EAPI to 8 and update dependencies.
Closes: https://bugs.gentoo.org/833595
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24273
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../{grim-1.4.0.ebuild => grim-1.4.0-r1.ebuild} | 28 ++++++++++++----------
gui-apps/grim/grim-9999.ebuild | 28 +++++++++++++---------
2 files changed, 33 insertions(+), 23 deletions(-)
diff --git a/gui-apps/grim/grim-1.4.0.ebuild b/gui-apps/grim/grim-1.4.0-r1.ebuild
similarity index 65%
rename from gui-apps/grim/grim-1.4.0.ebuild
rename to gui-apps/grim/grim-1.4.0-r1.ebuild
index 3b5657ccc9d2..66522ea185c3 100644
--- a/gui-apps/grim/grim-1.4.0.ebuild
+++ b/gui-apps/grim/grim-1.4.0-r1.ebuild
@@ -1,9 +1,9 @@
# 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,24 +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"
- "-Dfish-completions=true"
- "-Dbash-completions=true"
)
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 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
+}
next reply other threads:[~2022-02-23 4:05 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-23 4:05 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-08-25 5:49 [gentoo-commits] repo/gentoo:master commit in: gui-apps/grim/ Arthur Zamarin
2023-08-23 20:05 Arthur Zamarin
2023-08-23 20:05 Arthur Zamarin
2023-08-23 20:05 Arthur Zamarin
2023-07-03 18:58 Arthur Zamarin
2023-07-03 18:42 Arthur Zamarin
2023-03-17 15:28 Arthur Zamarin
2023-03-17 15:27 Arthur Zamarin
2023-03-17 15:27 Arthur Zamarin
2023-03-17 15:27 Arthur Zamarin
2023-03-11 17:04 Sam James
2023-03-11 5:33 Arthur Zamarin
2023-02-27 12:45 WANG Xuerui
2023-02-27 12:45 WANG Xuerui
2023-02-25 18:13 Arthur Zamarin
2023-02-25 5:43 Arthur Zamarin
2023-01-25 20:46 Matthew Thode
2022-10-17 18:42 Arthur Zamarin
2022-08-16 18:51 Arthur Zamarin
2022-08-16 18:16 Arthur Zamarin
2022-08-16 17:34 Arthur Zamarin
2022-08-14 19:24 Arthur Zamarin
2022-08-14 19:24 Arthur Zamarin
2022-05-17 5:59 Sam James
2022-04-16 16:13 Matthew Thode
2022-02-23 13:31 Sam James
2022-02-18 3:06 Sam James
2020-09-04 18:03 Sam James
2020-08-17 16:32 Aaron Bauman
2020-08-17 16:31 Aaron Bauman
2020-07-16 14:50 Matthew Thode
2019-08-12 0:52 Aaron Bauman
2019-08-09 0:21 Aaron Bauman
2019-08-09 0:15 Aaron Bauman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1645588572.09978a4d6fbfd46071119b15a167db69edc541a8.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox