summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-gfx/gimageview
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-gfx/gimageview')
-rw-r--r--media-gfx/gimageview/Manifest1
-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.ebuild68
-rw-r--r--media-gfx/gimageview/metadata.xml8
7 files changed, 166 insertions, 0 deletions
diff --git a/media-gfx/gimageview/Manifest b/media-gfx/gimageview/Manifest
new file mode 100644
index 00000000000..07cf11601b0
--- /dev/null
+++ b/media-gfx/gimageview/Manifest
@@ -0,0 +1 @@
+DIST gimageview-0.2.27.tar.gz 1348286 SHA256 4bc899d734e9833478c1ae8fc6d9db0971d812aeefe6f1295b5edbd4e4639060 SHA512 36ac16f4fffcde34b608da35aa089d40225129a2f9dcd70cb024713738842600c7231522093b3d0bf5a7c4c4dcb7ba4b14d550e417e8b52030d43d4b51145220 WHIRLPOOL 61b53e811058447d74970666cb80830aeaa3da5f0d9298512bb34e5b4802101f00858ed6526b9b50a98f8528875fe9cbefc1b53500eaca7933c190e11f224e67
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 00000000000..9b82d2f6479
--- /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 00000000000..7ab7ebb0321
--- /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 00000000000..2df9712869e
--- /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 00000000000..d65b3a07ad5
--- /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 00000000000..81442969d30
--- /dev/null
+++ b/media-gfx/gimageview/gimageview-0.2.27-r3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# 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/metadata.xml b/media-gfx/gimageview/metadata.xml
new file mode 100644
index 00000000000..930b43de954
--- /dev/null
+++ b/media-gfx/gimageview/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>graphics</herd>
+ <upstream>
+ <remote-id type="sourceforge">gtkmmviewer</remote-id>
+ </upstream>
+</pkgmetadata>