summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-sound/erec/ChangeLog7
-rw-r--r--media-sound/erec/erec-2.2.0.1.ebuild7
-rw-r--r--media-sound/erec/files/erec-2.2.0.1-gcc43.patch11
3 files changed, 22 insertions, 3 deletions
diff --git a/media-sound/erec/ChangeLog b/media-sound/erec/ChangeLog
index 70fbfe1f66d3..9125dcf38c2d 100644
--- a/media-sound/erec/ChangeLog
+++ b/media-sound/erec/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/erec
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/erec/ChangeLog,v 1.10 2008/01/18 02:06:45 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/erec/ChangeLog,v 1.11 2008/12/19 12:09:51 aballier Exp $
+
+ 19 Dec 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/erec-2.2.0.1-gcc43.patch, erec-2.2.0.1.ebuild:
+ Fix build with gcc 4.3 by Yaroslav Gorbunov, bug #251220, honour CC/CXX,
+ CFLAGS/CXXFLAGS/LDFLAGS
18 Jan 2008; Michael Sterrett <mr_bones_@gentoo.org> erec-2.2.0.1.ebuild:
quoting for $S; error check dobin; skip using hard-coded portage directory for
diff --git a/media-sound/erec/erec-2.2.0.1.ebuild b/media-sound/erec/erec-2.2.0.1.ebuild
index 7705b59f7305..5688e36c3657 100644
--- a/media-sound/erec/erec-2.2.0.1.ebuild
+++ b/media-sound/erec/erec-2.2.0.1.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-sound/erec/erec-2.2.0.1.ebuild,v 1.10 2008/01/18 02:06:45 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/erec/erec-2.2.0.1.ebuild,v 1.11 2008/12/19 12:09:51 aballier Exp $
+
+inherit eutils toolchain-funcs
DESCRIPTION="A shared audio recording server"
HOMEPAGE="http://bisqwit.iki.fi/source/erec.html"
@@ -32,10 +34,11 @@ src_unpack() {
echo "" > .depend
echo "" > argh/.depend
+ epatch "${FILESDIR}/${P}-gcc43.patch"
}
src_compile() {
- emake -j1 || die
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -j1 || die
}
src_install() {
diff --git a/media-sound/erec/files/erec-2.2.0.1-gcc43.patch b/media-sound/erec/files/erec-2.2.0.1-gcc43.patch
new file mode 100644
index 000000000000..9e6fdcb7182c
--- /dev/null
+++ b/media-sound/erec/files/erec-2.2.0.1-gcc43.patch
@@ -0,0 +1,11 @@
+diff -Nurpa erec-2.2.0.1.orig/argh/argh.cc erec-2.2.0.1/argh/argh.cc
+--- erec-2.2.0.1.orig/argh/argh.cc 2008-12-17 03:48:35.000000000 +0300
++++ erec-2.2.0.1/argh/argh.cc 2008-12-17 03:49:19.000000000 +0300
+@@ -1,6 +1,7 @@
+ #include <map>
+ #include <cstdio>
+ #include <cstring>
++#include <cstdlib>
+
+ using std::strchr;
+ using std::sprintf;