summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/gimmage')
-rw-r--r--media-gfx/gimmage/Manifest1
-rw-r--r--media-gfx/gimmage/files/gimmage-0.2.3-as-needed.patch11
-rw-r--r--media-gfx/gimmage/files/gimmage-0.2.3-desktop-entry.patch16
-rw-r--r--media-gfx/gimmage/files/gimmage-0.2.3-gcc43.patch11
-rw-r--r--media-gfx/gimmage/files/gimmage-0.2.3-gcc47.patch19
-rw-r--r--media-gfx/gimmage/gimmage-0.2.3.ebuild43
-rw-r--r--media-gfx/gimmage/metadata.xml8
7 files changed, 109 insertions, 0 deletions
diff --git a/media-gfx/gimmage/Manifest b/media-gfx/gimmage/Manifest
new file mode 100644
index 00000000000..cf9a15cd31c
--- /dev/null
+++ b/media-gfx/gimmage/Manifest
@@ -0,0 +1 @@
+DIST gimmage-0.2.3.tar.gz 193777 SHA256 3d5ce3c3fd22efc9fd930e97e33e2c13a755e0a9cf099d12d5f7ecf92cab907b SHA512 ff8fdf860d4712502e6e8656a14e5327a5b89af49f312e54de5f0e80cd6e406214a61228c79ad643c2640268d5eacfd760c83acbebdc7fa9b6e7c094728be167 WHIRLPOOL 7d1a9485da568baec8c430dc5a9fc12eb7dd8943fa17e5fbdc00ea4334548f1f42cad1690c6f171ecb682853a86d79e0e8324e49472c5ccbd8831a800d863792
diff --git a/media-gfx/gimmage/files/gimmage-0.2.3-as-needed.patch b/media-gfx/gimmage/files/gimmage-0.2.3-as-needed.patch
new file mode 100644
index 00000000000..2e24078bd85
--- /dev/null
+++ b/media-gfx/gimmage/files/gimmage-0.2.3-as-needed.patch
@@ -0,0 +1,11 @@
+diff -ru gimmage-0.2.3.orig/src/Makefile.am gimmage-0.2.3/src/Makefile.am
+--- gimmage-0.2.3.orig/src/Makefile.am 2008-11-30 18:43:28.000000000 +0100
++++ gimmage-0.2.3/src/Makefile.am 2008-11-30 18:43:40.000000000 +0100
+@@ -7,5 +7,5 @@
+ SaveErrorDialog.cpp SaveErrorDialog.h \
+ main.cpp defines.h
+
+-AM_CXXFLAGS = @CXXFLAGS@ $(DEPS_CFLAGS) -lcurl -lmagic
+-LDADD = $(DEPS_LIBS)
++AM_CXXFLAGS = @CXXFLAGS@ $(DEPS_CFLAGS)
++LDADD = $(DEPS_LIBS) -lcurl -lmagic
diff --git a/media-gfx/gimmage/files/gimmage-0.2.3-desktop-entry.patch b/media-gfx/gimmage/files/gimmage-0.2.3-desktop-entry.patch
new file mode 100644
index 00000000000..c80b43d0b29
--- /dev/null
+++ b/media-gfx/gimmage/files/gimmage-0.2.3-desktop-entry.patch
@@ -0,0 +1,16 @@
+diff -ur gimmage-0.2.3.orig/gimmage.desktop.in gimmage-0.2.3/gimmage.desktop.in
+--- gimmage-0.2.3.orig/gimmage.desktop.in 2007-06-27 00:22:57.000000000 +0300
++++ gimmage-0.2.3/gimmage.desktop.in 2010-08-06 20:42:55.000000000 +0300
+@@ -1,8 +1,8 @@
+ [Desktop Entry]
+ Name=gimmage
+ Exec=@prefix@/bin/gimmage
+-Icon=gimmage.png
++Icon=gimmage
+ Type=Application
+-Categories=Application;Graphics;
++Categories=Graphics;
+ Comment=A simple image viewer.
+-MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/png;image/tiff;image/x-bmp;image/x-pcx;image/x-tga;image/x-portable-pixmap;image/x-portable-bitmap;image/x-targa;image/x-portable-greymap;application/pcx;image/svg+xml;image/svg-xml
+\ No newline at end of file
++MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/png;image/tiff;image/x-bmp;image/x-pcx;image/x-tga;image/x-portable-pixmap;image/x-portable-bitmap;image/x-targa;image/x-portable-greymap;application/pcx;image/svg+xml;image/svg-xml;
diff --git a/media-gfx/gimmage/files/gimmage-0.2.3-gcc43.patch b/media-gfx/gimmage/files/gimmage-0.2.3-gcc43.patch
new file mode 100644
index 00000000000..7dd6686c131
--- /dev/null
+++ b/media-gfx/gimmage/files/gimmage-0.2.3-gcc43.patch
@@ -0,0 +1,11 @@
+--- gimmage-0.2.3/src/FileManager.cpp~ 2007-06-26 15:51:15.000000000 +0200
++++ gimmage-0.2.3/src/FileManager.cpp 2008-02-16 13:58:34.000000000 +0100
+@@ -21,6 +21,8 @@
+
+ // we make extensive use of get_current_dir_name() from Glib
+
++#include <cstring>
++
+ #include "FileManager.h"
+ #include "defines.h"
+
diff --git a/media-gfx/gimmage/files/gimmage-0.2.3-gcc47.patch b/media-gfx/gimmage/files/gimmage-0.2.3-gcc47.patch
new file mode 100644
index 00000000000..bc39028cf16
--- /dev/null
+++ b/media-gfx/gimmage/files/gimmage-0.2.3-gcc47.patch
@@ -0,0 +1,19 @@
+https://bugs.gentoo.org/422453
+
+error: 'get_current_dir_name' was not declared in this scope
+
+
+ src/FileManager.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/src/FileManager.cpp
++++ b/src/FileManager.cpp
+@@ -30,7 +30,7 @@ Copyright 2006 Bartek Kostrzewa
+
+ extern "C" {
+ #include <libintl.h>
+-// #include <unistd.h>
++#include <unistd.h>
+ #include <sys/stat.h>
+ }
+
diff --git a/media-gfx/gimmage/gimmage-0.2.3.ebuild b/media-gfx/gimmage/gimmage-0.2.3.ebuild
new file mode 100644
index 00000000000..308e52822bb
--- /dev/null
+++ b/media-gfx/gimmage/gimmage-0.2.3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit autotools eutils
+
+DESCRIPTION="A slim GTK-based image browser"
+HOMEPAGE="http://gimmage.berlios.de/"
+SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="debug"
+
+RDEPEND="dev-cpp/cairomm
+ >=dev-cpp/gtkmm-2.6.2:2.4
+ net-misc/curl
+ sys-apps/file"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-as-needed.patch \
+ "${FILESDIR}"/${P}-desktop-entry.patch \
+ "${FILESDIR}"/${P}-gcc47.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ use debug && myconf="--enable-debug"
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO
+}
diff --git a/media-gfx/gimmage/metadata.xml b/media-gfx/gimmage/metadata.xml
new file mode 100644
index 00000000000..d44388b7a8e
--- /dev/null
+++ b/media-gfx/gimmage/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>
+ <longdescription lang="en">
+ gimmage: the gtkmm image viewer
+ </longdescription>
+</pkgmetadata>