From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1348524-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 39B0A158086 for <garchives@archives.gentoo.org>; Sun, 12 Dec 2021 12:17:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43DC6E07D4; Sun, 12 Dec 2021 12:17:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E25E9E07D4 for <gentoo-commits@lists.gentoo.org>; Sun, 12 Dec 2021 12:17:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D60E3430A9 for <gentoo-commits@lists.gentoo.org>; Sun, 12 Dec 2021 12:17:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A203E177 for <gentoo-commits@lists.gentoo.org>; Sun, 12 Dec 2021 12:17:47 +0000 (UTC) From: "Nickolas Raymond Kaczynski" <nrk@disroot.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nickolas Raymond Kaczynski" <nrk@disroot.org> Message-ID: <1639311437.5990f574635d48cd312872806eacc82bb49f849d.nrk@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/nsxiv/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-gfx/nsxiv/Manifest media-gfx/nsxiv/nsxiv-28.ebuild X-VCS-Directories: media-gfx/nsxiv/ X-VCS-Committer: nrk X-VCS-Committer-Name: Nickolas Raymond Kaczynski X-VCS-Revision: 5990f574635d48cd312872806eacc82bb49f849d X-VCS-Branch: dev Date: Sun, 12 Dec 2021 12:17:47 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fbbc8950-01d6-4609-9709-5380f4113f9c X-Archives-Hash: 0144eaeb8c0a0f2a1339c561269929e6 commit: 5990f574635d48cd312872806eacc82bb49f849d Author: Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org> AuthorDate: Sun Dec 12 12:17:17 2021 +0000 Commit: Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org> CommitDate: Sun Dec 12 12:17:17 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5990f574 media-gfx/nsxiv: add v28 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Nickolas Raymond Kaczynski <nrk <AT> disroot.org> media-gfx/nsxiv/Manifest | 1 + media-gfx/nsxiv/nsxiv-28.ebuild | 83 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/media-gfx/nsxiv/Manifest b/media-gfx/nsxiv/Manifest index 6cc70600c..92958780b 100644 --- a/media-gfx/nsxiv/Manifest +++ b/media-gfx/nsxiv/Manifest @@ -1 +1,2 @@ DIST nsxiv-27.1.tar.gz 54242 BLAKE2B baed35787874b02e0051e0b19b2cb9670a66ce01de1ca3446a8ca5f99fcebd785232a5b3715f0f3dd733314096e3a46a6ebcc8960417abfc1a6e5e09224f15d2 SHA512 08a250a43a92a08258e2a6e871d6d5f596206af344fe3896505c0e85bdf556d02f13b1dbc9b365ce7c597770425d0e3635878b3fceb37f324957674ccc1b1eb0 +DIST nsxiv-28.tar.gz 60699 BLAKE2B d52d5933005492c55b0133b594a2b9613443324aca22ffe48dff90bdc62afc6cd48eac14ed578db9fcff5d147b5b6020edaf538335f9b26499232d0670935a3e SHA512 a1d61dc57f41e5b50225dd1e8120b8f1e31b042d43f7443ec27d2fc227e8eb98e96116357e8329011b7ca9aac10e7f0f2259bad3b57fbb1b2951a8fe4d8930bf diff --git a/media-gfx/nsxiv/nsxiv-28.ebuild b/media-gfx/nsxiv/nsxiv-28.ebuild new file mode 100644 index 000000000..6c5bd08ad --- /dev/null +++ b/media-gfx/nsxiv/nsxiv-28.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop xdg-utils savedconfig toolchain-funcs linux-info + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/nsxiv/nsxiv.git" + inherit git-r3 +else + SRC_URI="https://github.com/nsxiv/nsxiv/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer" +HOMEPAGE="https://github.com/nsxiv/nsxiv" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+statusbar exif +inotify +gif +jpeg +png webp tiff" + +RDEPEND=" + statusbar? ( x11-libs/libXft ) + exif? ( media-libs/libexif ) + gif? ( media-libs/giflib:0= ) + webp? ( media-libs/libwebp ) + media-libs/imlib2[X,gif?,jpeg?,png?,webp?,tiff?] + x11-libs/libX11 +" +DEPEND="${RDEPEND}" + +pkg_setup() { + if use inotify; then + CONFIG_CHECK+=" ~INOTIFY_USER" + ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." + linux-info_pkg_setup + fi +} + +src_prepare() { + default + + restore_config config.h +} + +src_configure() { + sed -i -e '/^install: / s|: all|:|' \ + -e 's|^CFLAGS ?=|CFLAGS +=|' \ + Makefile || die "sed failed" +} + +src_compile() { + emake CC="$(tc-getCC)" OPT_DEP_DEFAULT=0 \ + HAVE_INOTIFY="$(usex inotify 1 0)" \ + HAVE_LIBFONTS="$(usex statusbar 1 0)" \ + HAVE_LIBGIF="$(usex gif 1 0)" \ + HAVE_LIBWEBP="$(usex webp 1 0)" \ + HAVE_LIBEXIF="$(usex exif 1 0)" +} + +src_install() { + export DESTDIR="${ED}" + export PREFIX="/usr" + export EGPREFIX="${PREFIX}/share/doc/${P}/examples" + + emake install + emake install-icon + dodoc README.md + domenu nsxiv.desktop + + save_config config.h +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +}