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 1AFCA158092 for ; Fri, 17 Sep 2021 01:57:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58185E081B; Fri, 17 Sep 2021 01:57:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 42E2AE081B for ; Fri, 17 Sep 2021 01:57:30 +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 4A0463431B6 for ; Fri, 17 Sep 2021 01:57:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EF4938E for ; Fri, 17 Sep 2021 01:57:27 +0000 (UTC) From: "Haelwenn Monnier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Haelwenn Monnier" Message-ID: <1631837829.d22db6606219ff0101fff0c0609d8de86eff95e0.lanodan@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/Manifest media-gfx/nsxiv/metadata.xml media-gfx/nsxiv/nsxiv-27.1.ebuild X-VCS-Directories: media-gfx/nsxiv/ X-VCS-Committer: lanodan X-VCS-Committer-Name: Haelwenn Monnier X-VCS-Revision: d22db6606219ff0101fff0c0609d8de86eff95e0 X-VCS-Branch: master Date: Fri, 17 Sep 2021 01:57:27 +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: 18a05c1d-ebbb-4a3b-b191-bd0a5902e9be X-Archives-Hash: cff33c3605d493a1ab6ba12b030e88a7 commit: d22db6606219ff0101fff0c0609d8de86eff95e0 Author: Nickolas Raymond Kaczynski disroot org> AuthorDate: Fri Sep 17 00:17:09 2021 +0000 Commit: Haelwenn Monnier hacktivis me> CommitDate: Fri Sep 17 00:17:09 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d22db660 media-gfx/nsxiv: add new package Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Nickolas Raymond Kaczynski disroot.org> media-gfx/nsxiv/Manifest | 1 + media-gfx/nsxiv/metadata.xml | 10 ++++++ media-gfx/nsxiv/nsxiv-27.1.ebuild | 67 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) diff --git a/media-gfx/nsxiv/Manifest b/media-gfx/nsxiv/Manifest new file mode 100644 index 000000000..6cc70600c --- /dev/null +++ b/media-gfx/nsxiv/Manifest @@ -0,0 +1 @@ +DIST nsxiv-27.1.tar.gz 54242 BLAKE2B baed35787874b02e0051e0b19b2cb9670a66ce01de1ca3446a8ca5f99fcebd785232a5b3715f0f3dd733314096e3a46a6ebcc8960417abfc1a6e5e09224f15d2 SHA512 08a250a43a92a08258e2a6e871d6d5f596206af344fe3896505c0e85bdf556d02f13b1dbc9b365ce7c597770425d0e3635878b3fceb37f324957674ccc1b1eb0 diff --git a/media-gfx/nsxiv/metadata.xml b/media-gfx/nsxiv/metadata.xml new file mode 100644 index 000000000..fb509378e --- /dev/null +++ b/media-gfx/nsxiv/metadata.xml @@ -0,0 +1,10 @@ + + + + + nrk@disroot.org + + + nsxiv/nsxiv + + diff --git a/media-gfx/nsxiv/nsxiv-27.1.ebuild b/media-gfx/nsxiv/nsxiv-27.1.ebuild new file mode 100644 index 000000000..d6b554f39 --- /dev/null +++ b/media-gfx/nsxiv/nsxiv-27.1.ebuild @@ -0,0 +1,67 @@ +# 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 + +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="exif gif +jpeg +png webp tiff" + +RDEPEND=" + exif? ( media-libs/libexif ) + gif? ( media-libs/giflib:0= ) + media-libs/imlib2[X,gif?,jpeg?,png?,webp?,tiff?] + x11-libs/libX11 + x11-libs/libXft +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + + restore_config config.h +} + +src_configure() { + sed -i \ + -e '/-include config.mk/d' \ + -e '/\$(OBJS): / s|config.mk||' \ + -e '/^install: / s|: all|:|' \ + Makefile || die "sed failed" +} + +src_compile() { + emake CC="$(tc-getCC)" HAVE_LIBEXIF=$(usex exif 1 0) HAVE_LIBGIF=$(usex gif 1 0) +} + +src_install() { + emake DESTDIR="${ED}" PREFIX=/usr install + emake -C icon DESTDIR="${ED}" PREFIX=/usr install + 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 +}