summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2008-10-08 18:55:16 +0000
committerMarkus Meier <maekke@gentoo.org>2008-10-08 18:55:16 +0000
commit67f9f3be8d64165bb57648215d36d044700fe7f2 (patch)
tree6fd61f39699ed297a093e0c4d98fa6015f23433d /media-gfx/gimmage
parentadd missing x11-libs/gtk+ dep, bug #239698 (diff)
downloadgentoo-2-67f9f3be8d64165bb57648215d36d044700fe7f2.tar.gz
gentoo-2-67f9f3be8d64165bb57648215d36d044700fe7f2.tar.bz2
gentoo-2-67f9f3be8d64165bb57648215d36d044700fe7f2.zip
fix building with gcc-4.3, bug #239758
(Portage version: 2.2_rc11/cvs/Linux 2.6.27-rc8 i686)
Diffstat (limited to 'media-gfx/gimmage')
-rw-r--r--media-gfx/gimmage/ChangeLog6
-rw-r--r--media-gfx/gimmage/files/gimmage-0.2.3-gcc43.patch11
-rw-r--r--media-gfx/gimmage/gimmage-0.2.3.ebuild10
3 files changed, 25 insertions, 2 deletions
diff --git a/media-gfx/gimmage/ChangeLog b/media-gfx/gimmage/ChangeLog
index f81293a33333..65fcd5389d7e 100644
--- a/media-gfx/gimmage/ChangeLog
+++ b/media-gfx/gimmage/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-gfx/gimmage
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimmage/ChangeLog,v 1.10 2008/05/02 16:10:42 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimmage/ChangeLog,v 1.11 2008/10/08 18:55:16 maekke Exp $
+
+ 08 Oct 2008; Markus Meier <maekke@gentoo.org>
+ +files/gimmage-0.2.3-gcc43.patch, gimmage-0.2.3.ebuild:
+ fix building with gcc-4.3, bug #239758
02 May 2008; Samuli Suominen <drac@gentoo.org> gimmage-0.2.3.ebuild:
Use berlios mirrors://
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 000000000000..7dd6686c1314
--- /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/gimmage-0.2.3.ebuild b/media-gfx/gimmage/gimmage-0.2.3.ebuild
index 3b63aa02bc25..2b843ab0c634 100644
--- a/media-gfx/gimmage/gimmage-0.2.3.ebuild
+++ b/media-gfx/gimmage/gimmage-0.2.3.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimmage/gimmage-0.2.3.ebuild,v 1.4 2008/05/02 16:10:42 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimmage/gimmage-0.2.3.ebuild,v 1.5 2008/10/08 18:55:16 maekke Exp $
+
+inherit eutils
DESCRIPTION="A slim GTK-based image browser"
HOMEPAGE="http://gimmage.berlios.de/"
@@ -19,6 +21,12 @@ DEPEND="${RDEPEND}
sys-devel/gettext
dev-util/pkgconfig"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+}
+
src_compile() {
econf $(use_enable debug) || die "econf failed"
emake || die "emake failed"