From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 21B1F158012 for ; Fri, 24 Sep 2021 08:28:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64BC4E08D3; Fri, 24 Sep 2021 08:28:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A423E08D3 for ; Fri, 24 Sep 2021 08:28:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3AAB4342CFF for ; Fri, 24 Sep 2021 08:28:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C1A1D90 for ; Fri, 24 Sep 2021 08:28:50 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1632379592.f3206dd137fa5caa52756078819bf5a194aab502.arthurzam@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-gfx/nsxiv/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-gfx/nsxiv/nsxiv-27.1.ebuild X-VCS-Directories: media-gfx/nsxiv/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: f3206dd137fa5caa52756078819bf5a194aab502 X-VCS-Branch: master Date: Fri, 24 Sep 2021 08:28:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 56b0a35e-1972-4598-b1a8-9c227b90ef02 X-Archives-Hash: 8cc14fcd206f4a6959c4b67a49fce710 commit: f3206dd137fa5caa52756078819bf5a194aab502 Author: Nickolas Raymond Kaczynski disroot org> AuthorDate: Thu Sep 23 06:44:42 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Sep 23 06:46:32 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f3206dd1 media-gfx/nsxiv: add inotify, deafult enable gif Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Nickolas Raymond Kaczynski disroot.org> media-gfx/nsxiv/nsxiv-27.1.ebuild | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/media-gfx/nsxiv/nsxiv-27.1.ebuild b/media-gfx/nsxiv/nsxiv-27.1.ebuild index d6b554f39..f53c57016 100644 --- a/media-gfx/nsxiv/nsxiv-27.1.ebuild +++ b/media-gfx/nsxiv/nsxiv-27.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit desktop xdg-utils savedconfig toolchain-funcs +inherit desktop xdg-utils savedconfig toolchain-funcs linux-info if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://github.com/nsxiv/nsxiv.git" @@ -18,7 +18,7 @@ HOMEPAGE="https://github.com/nsxiv/nsxiv" LICENSE="GPL-2" SLOT="0" -IUSE="exif gif +jpeg +png webp tiff" +IUSE="exif +gif +jpeg +png webp tiff +inotify" RDEPEND=" exif? ( media-libs/libexif ) @@ -29,6 +29,17 @@ RDEPEND=" " DEPEND="${RDEPEND}" +pkg_setup() { + if use inotify; then + nsxiv_autoreload="inotify" + CONFIG_CHECK+=" ~INOTIFY_USER" + ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." + linux-info_pkg_setup + else + nsxiv_autoreload="nop" + fi +} + src_prepare() { default @@ -44,7 +55,10 @@ src_configure() { } src_compile() { - emake CC="$(tc-getCC)" HAVE_LIBEXIF=$(usex exif 1 0) HAVE_LIBGIF=$(usex gif 1 0) + emake CC="$(tc-getCC)" \ + HAVE_LIBEXIF=$(usex exif 1 0) \ + HAVE_LIBGIF=$(usex gif 1 0) \ + AUTORELOAD="${nsxiv_autoreload}" } src_install() {