summaryrefslogtreecommitdiff
path: root/media-gfx/gimageview
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/gimageview
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/gimageview')
-rw-r--r--media-gfx/gimageview/Manifest10
-rw-r--r--media-gfx/gimageview/files/gimageview-0.2.27-gtk12_fix.diff11
-rw-r--r--media-gfx/gimageview/files/gimageview-0.2.27-gtk2.patch24
-rw-r--r--media-gfx/gimageview/files/gimageview-0.2.27-libpng15.patch24
-rw-r--r--media-gfx/gimageview/files/gimageview-0.2.27-sort_fix.diff30
-rw-r--r--media-gfx/gimageview/gimageview-0.2.27-r3.ebuild67
-rw-r--r--media-gfx/gimageview/gimageview-0.2.27-r4.ebuild76
-rw-r--r--media-gfx/gimageview/metadata.xml11
8 files changed, 253 insertions, 0 deletions
diff --git a/media-gfx/gimageview/Manifest b/media-gfx/gimageview/Manifest
new file mode 100644
index 000000000000..b8176498e6ed
--- /dev/null
+++ b/media-gfx/gimageview/Manifest
@@ -0,0 +1,10 @@
+AUX gimageview-0.2.27-gtk12_fix.diff 272 SHA256 4aae464b117de3f86d4280a9dc25c24dfb987e08cbe7bc59fb16c5c1d37abd71 SHA512 97816136a63d7e1e08ff7368e8349879e723327979deb1ff11d5d87ea58ea01d9ffdc2da52a1e7425f486b1d40029699d498d548234e11f54066c67ff46de1d6 WHIRLPOOL af0495f924254bed29416315c5777bad3b3f0d501f5c9290e2fdda3586b87e816d4f0bff7b3e2f21bdac2dcb01bab0ef02b0a9dd28847942e98913992e7bd5dd
+AUX gimageview-0.2.27-gtk2.patch 624 SHA256 db861067fd6a67ce47f1065fe99ed0ebf8ad0d10742bbd4ff2322fadc5d53991 SHA512 3122a5eea7b3eaba5d896ae4258e7b608c4812db9374653eb2aa2776478b01d1edb82e5f322588e1476775e65dd719c1687b31a6981aebaad48483b9957b0c4e WHIRLPOOL 33d49fa18bdb4cf3bd546921b8a61b8b812bf974959943bf72de5b9c03957db8ff1f72b63b45f8a1a58ae9c3e4d89f3d6dbc86219183b53110eec5e5ef3769fd
+AUX gimageview-0.2.27-libpng15.patch 601 SHA256 04b468f51bb6b806a2d46860a2bc53eda7bcb49590d918482498ccbde8b9461f SHA512 390bf474bbf300cbd9c18ec3475769185f16226dfdb9389f62cd6e60bf33529009de68ee8bf387f690fc6a9e87f315f022f4f0b2fb6ef6ebfcdf49d96b5c49f9 WHIRLPOOL 1bbf3132e389f269cac5fa8f6263abcbba59c9f3f35f152a66732886d20397adf5511bfc38b32a876a69e700da0544813dd7472596f465cb61eb202212fbc51c
+AUX gimageview-0.2.27-sort_fix.diff 714 SHA256 fbb4e239b49daad78d27d5cd6b029ab1f68813fe4ca07be090a45206a1c72100 SHA512 ab3ce0f2bb9b4c1d52d05c78db4d42fa2e77e7a5d7655b82a036279c9049de609dedebdea8422596ebf91080e91ac6ce42babb4aaf22877ec3dc808cfc37a3ea WHIRLPOOL 50dc28ccd9236b46800b839b117079ca1d42ab9cda72ccc5f1c80182f1e9673c7cda2de200d3bd2b27cd7424dbabd99df334cc048dcdb471d84b28d2b59922c7
+DIST gimageview-0.2.27.tar.gz 1348286 SHA256 4bc899d734e9833478c1ae8fc6d9db0971d812aeefe6f1295b5edbd4e4639060 SHA512 36ac16f4fffcde34b608da35aa089d40225129a2f9dcd70cb024713738842600c7231522093b3d0bf5a7c4c4dcb7ba4b14d550e417e8b52030d43d4b51145220 WHIRLPOOL 61b53e811058447d74970666cb80830aeaa3da5f0d9298512bb34e5b4802101f00858ed6526b9b50a98f8528875fe9cbefc1b53500eaca7933c190e11f224e67
+EBUILD gimageview-0.2.27-r3.ebuild 1623 SHA256 6433d38de39735e54853130f11b6d0cb621d2c6c92a52a187a4d839653157c9d SHA512 5d7701d23df20be20c0d244e478f3a12b989cf37231c75fef18484a21306c1aa96a1263ef93eda451ce82f67d9dec20690526072948cf99527e546a95b58dde3 WHIRLPOOL 81c0ed94131dba96f7ccb8afa2a40d979cd1e687a3ad98b68f9523defb745d296d12d9b7734d9492300da5920e11acad147a4c03c5669d64d970963a27e9900f
+EBUILD gimageview-0.2.27-r4.ebuild 1736 SHA256 1e276cd93f4e46432f71e308e65102da58982799ff1caafc5e9180993b12f0ef SHA512 616223d1fdf7d96d40ec50c60cefc4dedefc775facbda6e1691b6b3cd9c5268c2853032045b87a3d878d4135e9ca842b2fbc3f962f67336b97e85e6882663c3a WHIRLPOOL 97be14cf1cb5cd9528700f4a5d666a5f36d28b356ed4e8cc6763d42236aa1b56d7e9961a9970ba5ae4d9f31fc75896ac7f2ae5cbe5465dde9f2f174abbb8fa8c
+MISC ChangeLog 2612 SHA256 a213db52e45337b80d17e6def70c368294caa1d2d4cecf0f062847cf554ac24b SHA512 1a2dd9468cba840f804d1a0492e46d998d9ce071c06007294c0afc870e5f42acedbd65b482f1b8413d39fd92f8f1f2948d0734ca07ab18aeef30232c1a23a03e WHIRLPOOL 960bdd556ae6b6d1d3341ff44ddcabb98770569361d9abfc67e2545f3d3db4e5ad00f15014f3f3e3538419e3c18770b45301d53c7de9c20cd2c7f1675af3d652
+MISC ChangeLog-2015 4622 SHA256 9208a36749c851a35bcbfcf704842f4aad60d9338b032dbefcf235ed5cde968f SHA512 2f08060debb174419dacabdbd93dc6f5f5f90aae517f18d7b219167f9c5d3249351f8cdd39d05659f6a0737569c61b3cda6bef34a6f397ca0fea0cace5ed230f WHIRLPOOL 9301f85011fb8d191aaccf4f3fd86e65b993d5e55bff282ead7979bc10327af9da1f008bdbdf39de60d14f7b90528394067db5ae84c1b200a9b4116c716de1a1
+MISC metadata.xml 340 SHA256 1abd0259f3ef917c5a8fb7cc5856ee51d31659fb3bda751f2a826a424df87491 SHA512 74355232aa8f1b9102de0ef61115dc39ac98890ddc93d9c0a595338bc2d23eb455c2db8fffa150c548ed5e8caa73817c046463c6190bce46761b7e17e66d594f WHIRLPOOL bf28fd722a89d4e1dc2249e8cb024e6307cb4972e5f0c8fcf2c4755475bc84f94b3a72a538c197c1c4b49633e6f5dc4a71909982d92aa173b72f657115de2bad
diff --git a/media-gfx/gimageview/files/gimageview-0.2.27-gtk12_fix.diff b/media-gfx/gimageview/files/gimageview-0.2.27-gtk12_fix.diff
new file mode 100644
index 000000000000..9b82d2f6479e
--- /dev/null
+++ b/media-gfx/gimageview/files/gimageview-0.2.27-gtk12_fix.diff
@@ -0,0 +1,11 @@
+--- src/gimv_thumb_win.c
++++ src/gimv_thumb_win.c
+@@ -2542,7 +2542,7 @@
+ {
+ if (tw && tw->priv)
+ tw->priv->slideshow_selected_only
+- = gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (widget));
++ = GTK_CHECK_MENU_ITEM (widget)->active;
+ }
+
+
diff --git a/media-gfx/gimageview/files/gimageview-0.2.27-gtk2.patch b/media-gfx/gimageview/files/gimageview-0.2.27-gtk2.patch
new file mode 100644
index 000000000000..7ab7ebb03212
--- /dev/null
+++ b/media-gfx/gimageview/files/gimageview-0.2.27-gtk2.patch
@@ -0,0 +1,24 @@
+--- src/gimv_cell_pixmap.c
++++ src/gimv_cell_pixmap.c
+@@ -25,10 +25,6 @@
+ * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
+ */
+
+-#ifndef GTK_DISABLE_DEPRECATED
+-# define GTK_DISABLE_DEPRECATED
+-#endif /* GTK_DISABLE_DEPRECATED */
+-
+ #include "gimv_cell_pixmap.h"
+
+ #if (GTK_MAJOR_VERSION >= 2)
+--- src/gimv_image.c
++++ src/gimv_image.c
+@@ -35,7 +35,7 @@
+ #include "gimv_io.h"
+ #include "gimv_image_saver.h"
+
+-#if defined (HAVE_GDK_PIXBUF)
++#if defined (HAVE_GDK_PIXBUF) || defined (USE_GTK2)
+ # include <gdk-pixbuf/gdk-pixbuf.h>
+ # include "pixbuf_utils.h"
+ typedef GdkPixbuf GimvRawImage;
diff --git a/media-gfx/gimageview/files/gimageview-0.2.27-libpng15.patch b/media-gfx/gimageview/files/gimageview-0.2.27-libpng15.patch
new file mode 100644
index 000000000000..2df9712869e1
--- /dev/null
+++ b/media-gfx/gimageview/files/gimageview-0.2.27-libpng15.patch
@@ -0,0 +1,24 @@
+http://bugs.gentoo.org/361941
+
+--- plugins/image_loader/png_loader.c
++++ plugins/image_loader/png_loader.c
+@@ -255,7 +255,7 @@
+ return NULL;
+ }
+
+- if (setjmp (png_ptr->jmpbuf)) goto ERROR;
++ if (setjmp (png_jmpbuf(png_ptr))) goto ERROR;
+
+ context.gio = gio;
+ context.bytes_read = 0;
+--- plugins/image_saver/png_saver.c
++++ plugins/image_saver/png_saver.c
+@@ -130,7 +130,7 @@
+ return FALSE;
+ }
+
+- if (setjmp (png_ptr->jmpbuf)) {
++ if (setjmp (png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct (&png_ptr, &info_ptr);
+ fclose (handle);
+ return FALSE;
diff --git a/media-gfx/gimageview/files/gimageview-0.2.27-sort_fix.diff b/media-gfx/gimageview/files/gimageview-0.2.27-sort_fix.diff
new file mode 100644
index 000000000000..d65b3a07ad56
--- /dev/null
+++ b/media-gfx/gimageview/files/gimageview-0.2.27-sort_fix.diff
@@ -0,0 +1,30 @@
+--- src/gimv_thumb_view.c
++++ src/gimv_thumb_view.c
+@@ -1533,9 +1533,13 @@
+
+ gimv_thumb_view_sort_data (tv);
+
++#if 0
+ for (node = new_thumb_list; node; node = g_list_next (node))
+ tv->vfuncs->insert_thumb (tv, node->data, tv->summary_mode);
+ g_list_free(new_thumb_list);
++#endif
++
++ gimv_thumb_view_set_widget (tv, tv->tw, tv->container, tv->summary_mode);
+ }
+
+
+@@ -1577,9 +1581,13 @@
+
+ gimv_thumb_view_sort_data (tv);
+
++#if 0
+ for (node = new_thumb_list; node; node = g_list_next (node))
+ tv->vfuncs->insert_thumb (tv, node->data, tv->summary_mode);
+ g_list_free(new_thumb_list);
++#endif
++
++ gimv_thumb_view_set_widget (tv, tv->tw, tv->container, tv->summary_mode);
+ }
+
+
diff --git a/media-gfx/gimageview/gimageview-0.2.27-r3.ebuild b/media-gfx/gimageview/gimageview-0.2.27-r3.ebuild
new file mode 100644
index 000000000000..9e95bf3243a7
--- /dev/null
+++ b/media-gfx/gimageview/gimageview-0.2.27-r3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: USE xine could be restored if support for xine-lib-1.2.x
+# is patched in wrt #397639
+
+EAPI=4
+inherit eutils libtool
+
+DESCRIPTION="Powerful GTK+ based image & movie viewer"
+HOMEPAGE="http://gtkmmviewer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gtkmmviewer/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ppc ppc64 x86"
+IUSE="mng nls mplayer svg wmf" #xine
+
+RDEPEND="app-arch/bzip2
+ x11-libs/gtk+:2
+ >=media-libs/libpng-1.2:0
+ x11-libs/libXinerama
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ mng? ( media-libs/libmng )
+ svg? ( gnome-base/librsvg )
+ mplayer? ( media-video/mplayer )"
+#xine? ( media-libs/xine-lib )
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+src_prepare() {
+ # link gimv executable against -lm for floor() and pow()
+ sed -i -e 's/$(gimv_LDADD)/& -lm/' src/Makefile.in || die #417995
+
+ epatch \
+ "${FILESDIR}"/${P}-sort_fix.diff \
+ "${FILESDIR}"/${P}-gtk12_fix.diff \
+ "${FILESDIR}"/${P}-gtk2.patch \
+ "${FILESDIR}"/${P}-libpng15.patch
+
+ # desktop-file-validate
+ sed -i -e '/^Term/s:0:false:' -e '/^Icon/s:.png::' etc/${PN}.desktop.in || die
+
+ elibtoolize
+}
+
+src_configure() {
+ econf \
+ --disable-imlib \
+ $(use_enable nls) \
+ --enable-splash \
+ $(use_enable mplayer) \
+ --with-gtk2 \
+ $(use_with mng libmng) \
+ $(use_with svg librsvg) \
+ $(use_with wmf libwmf) \
+ --without-xine
+}
+
+src_install() {
+ einstall \
+ desktopdir="${D}"usr/share/applications \
+ gimv_docdir="${D}"usr/share/doc/${PF}
+
+ find "${ED}"usr -name '*.la' -exec rm -f {} +
+}
diff --git a/media-gfx/gimageview/gimageview-0.2.27-r4.ebuild b/media-gfx/gimageview/gimageview-0.2.27-r4.ebuild
new file mode 100644
index 000000000000..58855443767f
--- /dev/null
+++ b/media-gfx/gimageview/gimageview-0.2.27-r4.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: USE xine could be restored if support for xine-lib-1.2.x
+# is patched in wrt #397639
+
+EAPI=6
+
+inherit eutils libtool
+
+DESCRIPTION="Powerful GTK+ based image & movie viewer"
+HOMEPAGE="http://gtkmmviewer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gtkmmviewer/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ppc ppc64 ~x86"
+IUSE="mng nls mplayer svg wmf" #xine
+
+RDEPEND="app-arch/bzip2
+ x11-libs/gtk+:2
+ >=media-libs/libpng-1.2:0=
+ x11-libs/libXinerama
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ mng? ( media-libs/libmng:= )
+ svg? ( gnome-base/librsvg )
+ mplayer? ( media-video/mplayer )"
+#xine? ( media-libs/xine-lib )
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+src_prepare() {
+ # link gimv executable against -lm for floor() and pow()
+ sed -i -e 's/$(gimv_LDADD)/& -lm/' src/Makefile.in || die #417995
+
+ epatch \
+ "${FILESDIR}"/${P}-sort_fix.diff \
+ "${FILESDIR}"/${P}-gtk12_fix.diff \
+ "${FILESDIR}"/${P}-gtk2.patch \
+ "${FILESDIR}"/${P}-libpng15.patch
+
+ # desktop-file-validate
+ sed -i \
+ -e '/^Term/s:0:false:' \
+ -e '/^Icon/s:.png::' \
+ etc/${PN}.desktop.in || die
+
+ eapply_user
+ elibtoolize
+}
+
+src_configure() {
+ econf \
+ --disable-imlib \
+ $(use_enable nls) \
+ --enable-splash \
+ $(use_enable mplayer) \
+ --with-gtk2 \
+ $(use_with mng libmng) \
+ $(use_with svg librsvg) \
+ $(use_with wmf libwmf) \
+ --without-xine
+}
+
+src_install() {
+ emake \
+ bindir="${ED}usr/bin" \
+ datadir="${ED}usr/share" \
+ desktopdir="${ED}usr/share/applications" \
+ gimv_docdir="${ED}usr/share/doc/${PF}" \
+ libdir="${ED}usr/$(get_libdir)" \
+ install
+
+ prune_libtool_files --all
+}
diff --git a/media-gfx/gimageview/metadata.xml b/media-gfx/gimageview/metadata.xml
new file mode 100644
index 000000000000..9e89a41837a8
--- /dev/null
+++ b/media-gfx/gimageview/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gtkmmviewer</remote-id>
+ </upstream>
+</pkgmetadata>