mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
media-gfx/nsxiv: add new package
Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
This commit is contained in:
1
media-gfx/nsxiv/Manifest
Normal file
1
media-gfx/nsxiv/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST nsxiv-27.1.tar.gz 54242 BLAKE2B baed35787874b02e0051e0b19b2cb9670a66ce01de1ca3446a8ca5f99fcebd785232a5b3715f0f3dd733314096e3a46a6ebcc8960417abfc1a6e5e09224f15d2 SHA512 08a250a43a92a08258e2a6e871d6d5f596206af344fe3896505c0e85bdf556d02f13b1dbc9b365ce7c597770425d0e3635878b3fceb37f324957674ccc1b1eb0
|
||||
10
media-gfx/nsxiv/metadata.xml
Normal file
10
media-gfx/nsxiv/metadata.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>nrk@disroot.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">nsxiv/nsxiv</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
67
media-gfx/nsxiv/nsxiv-27.1.ebuild
Normal file
67
media-gfx/nsxiv/nsxiv-27.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user