summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2008-04-19 13:00:58 +0000
committerSamuli Suominen <drac@gentoo.org>2008-04-19 13:00:58 +0000
commit6889a91720d8c5c891184189c3d32f1575cbd04d (patch)
tree54d712883ff69c80873ade96772d9602be061908 /media-sound/gtkguitune
parentversion bump, bug #218246 (diff)
downloadgentoo-2-6889a91720d8c5c891184189c3d32f1575cbd04d.tar.gz
gentoo-2-6889a91720d8c5c891184189c3d32f1575cbd04d.tar.bz2
gentoo-2-6889a91720d8c5c891184189c3d32f1575cbd04d.zip
Fix building with GCC 4.3, thanks to Peter Alfredsen.
(Portage version: 2.1.5_rc4)
Diffstat (limited to 'media-sound/gtkguitune')
-rw-r--r--media-sound/gtkguitune/ChangeLog6
-rw-r--r--media-sound/gtkguitune/files/gtkguitune-0.7-gcc43.patch12
-rw-r--r--media-sound/gtkguitune/gtkguitune-0.7-r1.ebuild10
3 files changed, 25 insertions, 3 deletions
diff --git a/media-sound/gtkguitune/ChangeLog b/media-sound/gtkguitune/ChangeLog
index fd5638243fea..0820aee79b18 100644
--- a/media-sound/gtkguitune/ChangeLog
+++ b/media-sound/gtkguitune/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-sound/gtkguitune
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/gtkguitune/ChangeLog,v 1.15 2008/02/29 20:08:44 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/gtkguitune/ChangeLog,v 1.16 2008/04/19 13:00:57 drac Exp $
+
+ 19 Apr 2008; Samuli Suominen <drac@gentoo.org>
+ +files/gtkguitune-0.7-gcc43.patch, gtkguitune-0.7-r1.ebuild:
+ Fix building with GCC 4.3, thanks to Peter Alfredsen.
29 Feb 2008; Carsten Lohrke <carlo@gentoo.org> gtkguitune-0.7-r1.ebuild:
Remove icon extension from desktop entry to match Icon Theme Specification.
diff --git a/media-sound/gtkguitune/files/gtkguitune-0.7-gcc43.patch b/media-sound/gtkguitune/files/gtkguitune-0.7-gcc43.patch
new file mode 100644
index 000000000000..85f1886bdef0
--- /dev/null
+++ b/media-sound/gtkguitune/files/gtkguitune-0.7-gcc43.patch
@@ -0,0 +1,12 @@
+diff -u gtkguitune-0.7/main.cc gtkguitune-0.7/main.cc
+--- gtkguitune-0.7/main.cc
++++ gtkguitune-0.7/main.cc
+@@ -19,6 +19,7 @@
+ // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ //
+ //
++#include <cstdlib>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+
diff --git a/media-sound/gtkguitune/gtkguitune-0.7-r1.ebuild b/media-sound/gtkguitune/gtkguitune-0.7-r1.ebuild
index aa58ee28f775..93dfada7e2a2 100644
--- a/media-sound/gtkguitune/gtkguitune-0.7-r1.ebuild
+++ b/media-sound/gtkguitune/gtkguitune-0.7-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/gtkguitune/gtkguitune-0.7-r1.ebuild,v 1.3 2008/02/29 20:08:44 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/gtkguitune/gtkguitune-0.7-r1.ebuild,v 1.4 2008/04/19 13:00:57 drac Exp $
inherit eutils
@@ -10,13 +10,19 @@ SRC_URI="http://www.geocities.com/harpin_floh/mysoft/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="x86 ~ppc sparc amd64"
+KEYWORDS="amd64 ~ppc sparc x86"
IUSE=""
RDEPEND="=x11-libs/gtk+-1.2*
=dev-cpp/gtkmm-1.2*"
DEPEND="${RDEPEND}"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+}
+
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
dodoc README AUTHORS