This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/media-gfx/viewnior/viewnior-1.7.ebuild
tastytea 46dcd3cce3
All checks were successful
the build was successful
media-gfx/viewnior: Replaced own patch with upstream fix
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
2018-11-19 14:08:02 +01:00

58 lines
1.1 KiB
Bash

# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit xdg-utils gnome2-utils meson
MY_PN=Viewnior
DESCRIPTION="Fast and simple image viewer"
HOMEPAGE="https://siyanpanayotov.com/project/viewnior/ https://github.com/hellosiyan/Viewnior"
SRC_URI="https://github.com/hellosiyan/${MY_PN}/archive/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-libs/glib:2
media-gfx/exiv2
x11-libs/gtk+:2
x11-misc/shared-mime-info
"
RDEPEND="${DEPEND}
dev-util/glib-utils
"
PATCHES=(
"${FILESDIR}/0.17-Replace-calls-to-getenv-with-g_getenv.patch"
)
src_prepare() {
default
# That script would update icon cache and desktop database
sed -i "s/meson.add_install_script('meson_post_install.py')//" meson.build
# Don't let meson compress the manpage
sed -i "s/subdir('man')//" meson.build
}
src_install() {
meson_src_install
doman man/viewnior.1
}
S="${WORKDIR}/${MY_PN}-${P}"
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
xdg_desktop_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
gnome2_icon_cache_update
}