mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
media-gfx/nsxiv: add v34, update 9999
Signed-off-by: NRK <nrk@disroot.org>
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
DIST nsxiv-24384847326ad44ac98b7ee7e6fbfa02548ca9c0.comp.zsh 2626 BLAKE2B 3e91ec9c0f55792d8d5fc54d2accfdbe39d2742fc99fd639cd83bb5c8a27102cdc8bd05cd81f1f3563da54ec362f5ab537d08c2888a20c2a03db9f4e9ee7bffc SHA512 ca99be07fd2cd6f5ca36ddf44a054807c55c5cf91d702ca5b5ff5f53597cafc6c0cb9c9086c59dfe6b091e9d4fb3053bf9fbc58d8c68ba64a76c4800569b18a3
|
||||
DIST nsxiv-32.tar.gz 74345 BLAKE2B 92257a95095291068c982d91ed32a0ae358f89048057fa6f1cb356caccbba9cb1f9fdb6ca0e16faf4e6e411af942858182cf2bea3b5d19904f3ca686f7b372ed SHA512 e53de494f104440c87eb55606c322cb7ac9989176547131f59e02eb091d04a3a2de6c11c1c775cb25302ff1da5997bc499d753a822c1de4652aa77bf2858fa9a
|
||||
DIST nsxiv-33.tar.gz 77639 BLAKE2B 076355172313bb3f1498802b3344e91b53c43c84e271a7baf25f30d4a72f12df5daea14d0d64739802c0c98043321daeb8ceb49fc987df7d244ca60a776693c2 SHA512 005192a942582e81e811e4bc8739720b16ff2fd9214399e4796db76d99e1cb0cf52f338481459a40d156e5eb9d63246bda8ba2702aa2297b331aa12ff05fed45
|
||||
DIST nsxiv-34.tar.gz 78239 BLAKE2B 879b5c7e17f3beeb4d74bb14544326e9710675b6837b87248101740783c56783a677eafd8def5c95431a47d8088f6bf02857a2bed2642a6170d476e05f80cdef SHA512 b63542b4fd0014c17cd8e17d14d9eb4d2cafc5c3e3726b8183c3c268d252269ff5efd63380c122de683d105e5de3c9f527b9d9a5d7bd8578a0c9e33828b86515
|
||||
DIST nsxiv-aa5f73c46a21060bb084b308f3d032ace86753c0.comp.zsh 2839 BLAKE2B d6dc2a7874b3ba79b8d60a245f041e6f7fc1ce727ba64f55abeb1d0e971e6a5944db80e0741a33c64b36b1d5ca8e3d16d7c6956131faff33c60a5e4321b911b5 SHA512 df0ae2bc30c40be7fc51bf721e0f23badd165b40a34a84375e262b2352e35b243bdbde5b51e575d70f34476bd246ae9d2c3b91f55b8c1c1c7965f7b1254a1c48
|
||||
DIST nsxiv-f7d1efe3495949e2e88fdfef37aed5a40400acea.comp.zsh 2413 BLAKE2B 0749b55bd9f7d48922d6ac673c1d65e7625bb53c4df524123c9a579edf8aa8c3fba15f4382b5102e812acddaf99d3ec24797703340edd013758ae51a0944758f SHA512 e26af7bdfce2bd1aa1b3d31fee88370b58fbc624c8855d70133ba96a94713e7bdfbfbe6ead650822dbba0f04a5c2ab6cd9dd35a94d46a2455f3a5051554c43f2
|
||||
|
||||
86
media-gfx/nsxiv/nsxiv-34.ebuild
Normal file
86
media-gfx/nsxiv/nsxiv-34.ebuild
Normal file
@@ -0,0 +1,86 @@
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop xdg-utils savedconfig toolchain-funcs linux-info shell-completion
|
||||
|
||||
ZSH_COMP_COMMIT="aa5f73c46a21060bb084b308f3d032ace86753c0"
|
||||
ZSH_COMP_URI="https://codeberg.org/nsxiv/nsxiv-extra/raw/commit/${ZSH_COMP_COMMIT}/completion/zsh/_nsxiv"
|
||||
ZSH_COMP="${PN}-${ZSH_COMP_COMMIT}.comp.zsh"
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://codeberg.org/nsxiv/nsxiv.git"
|
||||
SRC_URI="${ZSH_COMP_URI} -> ${ZSH_COMP}"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="
|
||||
https://github.com/nsxiv/nsxiv/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${ZSH_COMP_URI} -> ${ZSH_COMP}
|
||||
"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer"
|
||||
HOMEPAGE="https://codeberg.org/nsxiv/nsxiv"
|
||||
|
||||
LICENSE="GPL-2+ public-domain"
|
||||
SLOT="0"
|
||||
IUSE="+statusbar +inotify exif debug"
|
||||
|
||||
RDEPEND="
|
||||
x11-libs/libX11
|
||||
>=media-libs/imlib2-1.11.0[X]
|
||||
statusbar? ( x11-libs/libXft media-libs/fontconfig )
|
||||
exif? ( media-libs/libexif )
|
||||
"
|
||||
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_compile() {
|
||||
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
|
||||
CPPFLAGS="${CPPFLAGS} $(usev debug "-UNDEBUG -DDEBUG")" \
|
||||
OPT_DEP_DEFAULT=0 \
|
||||
HAVE_INOTIFY="$(usex inotify 1 0)" \
|
||||
HAVE_LIBFONTS="$(usex statusbar 1 0)" \
|
||||
HAVE_LIBEXIF="$(usex exif 1 0)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
PREFIX="/usr" \
|
||||
EGPREFIX="/usr/share/doc/${P}/examples" \
|
||||
install install-icon
|
||||
dodoc README.md
|
||||
domenu etc/nsxiv.desktop
|
||||
newzshcomp "${DISTDIR}/${ZSH_COMP}" _nsxiv
|
||||
|
||||
save_config config.h
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
|
||||
einfo "${PN} uses media-libs/imlib2 for loading images."
|
||||
einfo "To enable/disable support for specific image formats,"
|
||||
einfo "toggle the necessary USE flag for media-libs/imlib2."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop xdg-utils savedconfig toolchain-funcs linux-info shell-completion
|
||||
|
||||
ZSH_COMP_COMMIT="24384847326ad44ac98b7ee7e6fbfa02548ca9c0"
|
||||
ZSH_COMP_COMMIT="aa5f73c46a21060bb084b308f3d032ace86753c0"
|
||||
ZSH_COMP_URI="https://codeberg.org/nsxiv/nsxiv-extra/raw/commit/${ZSH_COMP_COMMIT}/completion/zsh/_nsxiv"
|
||||
ZSH_COMP="${PN}-${ZSH_COMP_COMMIT}.comp.zsh"
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
@@ -49,11 +49,6 @@ src_prepare() {
|
||||
restore_config config.h
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# avoid rebuild on `make install`
|
||||
sed -i -e '/^install: / s|: all|:|' Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
|
||||
CPPFLAGS="${CPPFLAGS} $(usev debug "-UNDEBUG -DDEBUG")" \
|
||||
|
||||
Reference in New Issue
Block a user