* [gentoo-commits] repo/gentoo:master commit in: media-gfx/viewnior/files/, media-gfx/viewnior/
@ 2018-12-22 11:43 Andreas Sturmlechner
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2018-12-22 11:43 UTC (permalink / raw
To: gentoo-commits
commit: 5451d4f23ca8838892763b30471a5d3a9479e6b2
Author: tastytea <tastytea <AT> tastytea <DOT> de>
AuthorDate: Sat Dec 15 15:55:05 2018 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec 22 11:43:25 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5451d4f2
media-gfx/viewnior: Bump to version 1.7-r1
Signed-off-by: Ronny Gutbrod <gentoo <AT> tastytea.de>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
....17-Replace-calls-to-getenv-with-g_getenv.patch | 28 +++++++++++
media-gfx/viewnior/metadata.xml | 1 +
media-gfx/viewnior/viewnior-1.7-r1.ebuild | 55 ++++++++++++++++++++++
3 files changed, 84 insertions(+)
diff --git a/media-gfx/viewnior/files/0.17-Replace-calls-to-getenv-with-g_getenv.patch b/media-gfx/viewnior/files/0.17-Replace-calls-to-getenv-with-g_getenv.patch
new file mode 100644
index 00000000000..fc7fc119359
--- /dev/null
+++ b/media-gfx/viewnior/files/0.17-Replace-calls-to-getenv-with-g_getenv.patch
@@ -0,0 +1,28 @@
+Using getenv() triggers compile errors in Open Build Service.
+Thanks to Axel Köllhofer for the patch.
+---
+ src/uni-utils.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/uni-utils.c b/src/uni-utils.c
+index 8152848..1b4992a 100755
+--- a/src/uni-utils.c
++++ b/src/uni-utils.c
+@@ -106,10 +106,10 @@ uni_detect_desktop_environment ()
+ {
+ VnrPrefsDesktop environment = VNR_PREFS_DESKTOP_GNOME3;
+
+- gchar *xdg_current_desktop = g_ascii_strup(getenv("XDG_CURRENT_DESKTOP"), -1);
+- gchar *xdg_session_desktop = g_ascii_strup(getenv("XDG_SESSION_DESKTOP"), -1);
+- gchar *desktop_session = g_ascii_strdown(getenv("DESKTOP_SESSION"), -1);
+- gchar *gdmsession = g_ascii_strdown(getenv("GDMSESSION"), -1);
++ gchar *xdg_current_desktop = g_ascii_strup(g_getenv("XDG_CURRENT_DESKTOP"), -1);
++ gchar *xdg_session_desktop = g_ascii_strup(g_getenv("XDG_SESSION_DESKTOP"), -1);
++ gchar *desktop_session = g_ascii_strdown(g_getenv("DESKTOP_SESSION"), -1);
++ gchar *gdmsession = g_ascii_strdown(g_getenv("GDMSESSION"), -1);
+
+ if (!g_strcmp0(xdg_current_desktop, "GNOME") || !g_strcmp0(xdg_session_desktop, "GNOME"))
+ {
+--
+2.18.1
+
diff --git a/media-gfx/viewnior/metadata.xml b/media-gfx/viewnior/metadata.xml
index 441c94e6341..0b0a73b6d99 100644
--- a/media-gfx/viewnior/metadata.xml
+++ b/media-gfx/viewnior/metadata.xml
@@ -11,5 +11,6 @@
</maintainer>
<upstream>
<remote-id type="github">hellosiyan/Viewnior</remote-id>
+ <changelog>https://siyanpanayotov.com/project/viewnior/news</changelog>
</upstream>
</pkgmetadata>
diff --git a/media-gfx/viewnior/viewnior-1.7-r1.ebuild b/media-gfx/viewnior/viewnior-1.7-r1.ebuild
new file mode 100644
index 00000000000..2ef58426b49
--- /dev/null
+++ b/media-gfx/viewnior/viewnior-1.7-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2-utils meson xdg-utils
+
+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=""
+
+RDEPEND="media-gfx/exiv2:0=
+ dev-libs/glib:2
+ x11-libs/gtk+:2"
+
+DEPEND="${RDEPEND}
+ dev-util/glib-utils
+ virtual/pkgconfig
+ x11-misc/shared-mime-info
+"
+
+S="${WORKDIR}/${MY_PN}-${P}"
+
+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 || die 'Failed to remove post-install-script invocation from meson.build'
+ # Don't let meson compress the manpage
+ sed -i "s/subdir('man')//" meson.build || die 'Failed to remove manpage compression from meson.build'
+}
+
+src_install() {
+ meson_src_install
+ doman man/viewnior.1
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/viewnior/files/, media-gfx/viewnior/
@ 2020-06-16 6:03 Joonas Niilola
0 siblings, 0 replies; 2+ messages in thread
From: Joonas Niilola @ 2020-06-16 6:03 UTC (permalink / raw
To: gentoo-commits
commit: 28b1318d4915d68e7e081e5b96a46d73beccf062
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Thu May 21 18:52:43 2020 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Jun 16 06:02:51 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28b1318d
media-gfx/viewnior: Update metainfo location; Revbump.
- Use xdg for icon cache update.
- EAPI 7.
Closes: https://bugs.gentoo.org/724402
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
Closes: https://github.com/gentoo/gentoo/pull/15905
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
.../viewnior-0.17-update_metadata_location.patch | 42 +++++++++++++++++
media-gfx/viewnior/viewnior-1.7-r2.ebuild | 52 ++++++++++++++++++++++
2 files changed, 94 insertions(+)
diff --git a/media-gfx/viewnior/files/viewnior-0.17-update_metadata_location.patch b/media-gfx/viewnior/files/viewnior-0.17-update_metadata_location.patch
new file mode 100644
index 00000000000..492186059d9
--- /dev/null
+++ b/media-gfx/viewnior/files/viewnior-0.17-update_metadata_location.patch
@@ -0,0 +1,42 @@
+From f338c37881a860952aa10cc437bc72fa0b49a823 Mon Sep 17 00:00:00 2001
+From: tastytea <tastytea@tastytea.de>
+Date: Thu, 21 May 2020 20:07:45 +0200
+Subject: [PATCH] Rename appdata.xml to metainfo.xml and change install dir.
+
+The new name is used since AppStream 0.9.8 (2016-08-10) and the new
+location is used since AppStream 0.9.4 (2016-04-18).
+---
+ data/meson.build | 6 +++---
+ data/{viewnior.appdata.xml => viewnior.metainfo.xml} | 0
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+ rename data/{viewnior.appdata.xml => viewnior.metainfo.xml} (100%)
+
+diff --git a/data/meson.build b/data/meson.build
+index 55070fc..05d734e 100644
+--- a/data/meson.build
++++ b/data/meson.build
+@@ -17,8 +17,8 @@ install_data(
+ )
+
+ install_data(
+- 'viewnior.appdata.xml',
+- install_dir: join_paths(datadir, 'appdata')
++ 'viewnior.metainfo.xml',
++ install_dir: join_paths(datadir, 'metainfo')
+ )
+
+ desktop = i18n.merge_file(
+@@ -39,4 +39,4 @@ if desktop_file_validate.found()
+ desktop.full_path()
+ ]
+ )
+-endif
+\ No newline at end of file
++endif
+diff --git a/data/viewnior.appdata.xml b/data/viewnior.metainfo.xml
+similarity index 100%
+rename from data/viewnior.appdata.xml
+rename to data/viewnior.metainfo.xml
+--
+2.26.2
+
diff --git a/media-gfx/viewnior/viewnior-1.7-r2.ebuild b/media-gfx/viewnior/viewnior-1.7-r2.ebuild
new file mode 100644
index 00000000000..60e6b46a431
--- /dev/null
+++ b/media-gfx/viewnior/viewnior-1.7-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson xdg
+
+DESCRIPTION="Fast and simple image viewer"
+HOMEPAGE="
+ https://siyanpanayotov.com/project/viewnior/
+ https://github.com/hellosiyan/Viewnior
+"
+SRC_URI="https://github.com/hellosiyan/${PN^}/archive/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/glib:2
+ media-gfx/exiv2:0=
+ x11-libs/gtk+:2
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-util/glib-utils
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${PN^}-${P}"
+
+PATCHES=(
+ "${FILESDIR}/0.17-Replace-calls-to-getenv-with-g_getenv.patch"
+ "${FILESDIR}/viewnior-0.17-update_metadata_location.patch"
+)
+
+src_prepare() {
+ xdg_src_prepare
+
+ # That script would update icon cache and desktop database.
+ sed -i "s/meson.add_install_script('meson_post_install.py')//" meson.build \
+ || die 'Failed to remove post-install-script invocation from meson.build'
+ # Don't let meson compress the manpage.
+ sed -i "s/subdir('man')//" meson.build \
+ || die 'Failed to remove manpage compression from meson.build'
+}
+
+src_install() {
+ meson_src_install
+ doman man/viewnior.1
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-16 6:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-16 6:03 [gentoo-commits] repo/gentoo:master commit in: media-gfx/viewnior/files/, media-gfx/viewnior/ Joonas Niilola
-- strict thread matches above, loose matches on Subject: below --
2018-12-22 11:43 Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox