media-gfx/viewnior: New package
the build was successful Details

Package-Manager: Portage-2.3.51, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
This commit is contained in:
tastytea 2018-11-19 13:39:13 +01:00
parent 44a5593fcd
commit fe57a537ca
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
4 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,14 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX fix-implicit-declaration.patch 221 BLAKE2B 0b594dd4a812fa8f2d57b85a26840d39f4f7fa91dfffcf4d62f92240239f6a18a1be84c31fd69a91684b80b93c5464abf6c161414542ebdfbf068d410b99d102 SHA512 16203f3b6f310cb0e914b35ed162f8d931b4a172c371cb84934cbd0c0a83b58da6b4808eb10d51a77c5cedb45866a566254f09fe8affe57a49f3d03605d0b38c
DIST viewnior-1.7.tar.gz 165719 BLAKE2B 906ab0b632fcc102ac62dd77d6742c2121c46cd92adc0dfe9ba772bf697eff356519dbb6219016a6470903c855aa4c9081f0d61ca1607d8d1b6d8e03236a19bc SHA512 5ba17d7b5ceeffa65b04213f179c1439b09ac44e412e0750dde159b118a714f28d3a290509a402b234e4e7ba5b185fc73eef65d418598f344911e4e2c1373fe5
EBUILD viewnior-1.7.ebuild 1141 BLAKE2B ef335bad6bb0b1a28f96677084d399ae19052dfb4de35877d6eb79c0be62a021f6240c2452ede8c33b06db1a385ac01d2f61cac6763fdad28b5fdede0e3eeb0c SHA512 88d7aa9a55f1b65f3c35e332b704f516f5d160ecaab7a6b6d288ff23ab8c2f523a8f5728a87c97d921082e433a63dc968583bf283348d3ef6e0f35d79b76034e
MISC metadata.xml 484 BLAKE2B 454eb553fd9d16d073addfbade6168724e810a80e7076c7ca09bdd1c8faa0373af849c5888305c024d1195c77c7e1439b0f00fdd3356e51150a6ff85a51c08a5 SHA512 bd881514455153909cbf3bef207d325d619ee916b70fd6b2d0632972f00c9056e2f260407d033530945b73bf77989468616e20ae3db480671ecc619ef10f7b5d
-----BEGIN PGP SIGNATURE-----
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCW/Ku8QAKCRDPw5SX8bJu
B2CmAP9JpNu72W1e4SuRqkmRaL9LQs99ZK1h3OpcFxlHiq4NPQD/SR/Fepko9Ssx
WtIlZf7fMQZlploprgJePj418ytS2/4=
=1yjS
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,10 @@
--- a/src/uni-utils.c 2018-11-19 13:22:27.611236686 +0100
+++ b/src/uni-utils.c 2018-11-19 13:29:36.577474931 +0100
@@ -21,6 +21,7 @@
*/
#include "uni-utils.h"
+#include <stdlib.h>
/**
* uni_pixbuf_scale_blend:

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@tastytea.de</email>
<name>tastytea</name>
</maintainer>
<upstream>
<maintainer>
<name>Siyan Panayotov</name>
</maintainer>
<remote-id type="github">hellosiyan/Viewnior</remote-id>
<changelog>https://siyanpanayotov.com/project/viewnior/news</changelog>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,57 @@
# 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}/fix-implicit-declaration.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
}