mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 12:08:43 -04:00
media-gfx/nsxiv: update 9999, add v33
Signed-off-by: NRK <nrk@disroot.org>
This commit is contained in:
parent
f9df7a1414
commit
7debaf9cc0
@ -1,2 +1,4 @@
|
||||
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-f7d1efe3495949e2e88fdfef37aed5a40400acea.comp.zsh 2413 BLAKE2B 0749b55bd9f7d48922d6ac673c1d65e7625bb53c4df524123c9a579edf8aa8c3fba15f4382b5102e812acddaf99d3ec24797703340edd013758ae51a0944758f SHA512 e26af7bdfce2bd1aa1b3d31fee88370b58fbc624c8855d70133ba96a94713e7bdfbfbe6ead650822dbba0f04a5c2ab6cd9dd35a94d46a2455f3a5051554c43f2
|
||||
|
91
media-gfx/nsxiv/nsxiv-33.ebuild
Normal file
91
media-gfx/nsxiv/nsxiv-33.ebuild
Normal file
@ -0,0 +1,91 @@
|
||||
# Copyright 2021-2025 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_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.8.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_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")" \
|
||||
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-2024 Gentoo Authors
|
||||
# Copyright 2021-2025 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="f7d1efe3495949e2e88fdfef37aed5a40400acea"
|
||||
ZSH_COMP_COMMIT="24384847326ad44ac98b7ee7e6fbfa02548ca9c0"
|
||||
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
|
||||
@ -55,9 +55,8 @@ src_configure() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local dbg=""
|
||||
use debug && dbg="-UNDEBUG -DDEBUG"
|
||||
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${dbg}" \
|
||||
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)" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user