Gentoo Archives: gentoo-commits

From: Nickolas Raymond Kaczynski <nrk@×××××××.org>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/nsxiv/
Date: Thu, 23 Sep 2021 06:46:50
Message-Id: 1632379592.f3206dd137fa5caa52756078819bf5a194aab502.nrk@gentoo
1 commit: f3206dd137fa5caa52756078819bf5a194aab502
2 Author: Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
3 AuthorDate: Thu Sep 23 06:44:42 2021 +0000
4 Commit: Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
5 CommitDate: Thu Sep 23 06:46:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f3206dd1
7
8 media-gfx/nsxiv: add inotify, deafult enable gif
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 Signed-off-by: Nickolas Raymond Kaczynski <nrk <AT> disroot.org>
12
13 media-gfx/nsxiv/nsxiv-27.1.ebuild | 20 +++++++++++++++++---
14 1 file changed, 17 insertions(+), 3 deletions(-)
15
16 diff --git a/media-gfx/nsxiv/nsxiv-27.1.ebuild b/media-gfx/nsxiv/nsxiv-27.1.ebuild
17 index d6b554f39..f53c57016 100644
18 --- a/media-gfx/nsxiv/nsxiv-27.1.ebuild
19 +++ b/media-gfx/nsxiv/nsxiv-27.1.ebuild
20 @@ -3,7 +3,7 @@
21
22 EAPI=7
23
24 -inherit desktop xdg-utils savedconfig toolchain-funcs
25 +inherit desktop xdg-utils savedconfig toolchain-funcs linux-info
26
27 if [[ ${PV} == "9999" ]] ; then
28 EGIT_REPO_URI="https://github.com/nsxiv/nsxiv.git"
29 @@ -18,7 +18,7 @@ HOMEPAGE="https://github.com/nsxiv/nsxiv"
30
31 LICENSE="GPL-2"
32 SLOT="0"
33 -IUSE="exif gif +jpeg +png webp tiff"
34 +IUSE="exif +gif +jpeg +png webp tiff +inotify"
35
36 RDEPEND="
37 exif? ( media-libs/libexif )
38 @@ -29,6 +29,17 @@ RDEPEND="
39 "
40 DEPEND="${RDEPEND}"
41
42 +pkg_setup() {
43 + if use inotify; then
44 + nsxiv_autoreload="inotify"
45 + CONFIG_CHECK+=" ~INOTIFY_USER"
46 + ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
47 + linux-info_pkg_setup
48 + else
49 + nsxiv_autoreload="nop"
50 + fi
51 +}
52 +
53 src_prepare() {
54 default
55
56 @@ -44,7 +55,10 @@ src_configure() {
57 }
58
59 src_compile() {
60 - emake CC="$(tc-getCC)" HAVE_LIBEXIF=$(usex exif 1 0) HAVE_LIBGIF=$(usex gif 1 0)
61 + emake CC="$(tc-getCC)" \
62 + HAVE_LIBEXIF=$(usex exif 1 0) \
63 + HAVE_LIBGIF=$(usex gif 1 0) \
64 + AUTORELOAD="${nsxiv_autoreload}"
65 }
66
67 src_install() {