summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-09 12:04:02 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-09 12:04:02 +0000
commita2e393add58f15f8db366c78f16a6236ab26bb4b (patch)
tree873c75e78d49d9018e8712a6ddc9d32345d1b257 /sci-libs/indilib
parentBetter to save the ebuild after modifying it. (diff)
downloadgentoo-2-a2e393add58f15f8db366c78f16a6236ab26bb4b.tar.gz
gentoo-2-a2e393add58f15f8db366c78f16a6236ab26bb4b.tar.bz2
gentoo-2-a2e393add58f15f8db366c78f16a6236ab26bb4b.zip
Add patch to build with GCC 4.3. Thanks to Marek Miller in bug #223161.
(Portage version: 2.1.5.4)
Diffstat (limited to 'sci-libs/indilib')
-rw-r--r--sci-libs/indilib/ChangeLog6
-rw-r--r--sci-libs/indilib/files/indilib-0.5+gcc-4.3.patch10
-rw-r--r--sci-libs/indilib/indilib-0.5.ebuild11
3 files changed, 24 insertions, 3 deletions
diff --git a/sci-libs/indilib/ChangeLog b/sci-libs/indilib/ChangeLog
index 86247cc6d9bf..5bda64c62871 100644
--- a/sci-libs/indilib/ChangeLog
+++ b/sci-libs/indilib/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-libs/indilib
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/indilib/ChangeLog,v 1.1 2008/01/13 20:04:34 philantrop Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/indilib/ChangeLog,v 1.2 2008/06/09 12:04:02 flameeyes Exp $
+
+ 09 Jun 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +files/indilib-0.5+gcc-4.3.patch, indilib-0.5.ebuild:
+ Add patch to build with GCC 4.3. Thanks to Marek Miller in bug #223161.
*indilib-0.5 (13 Jan 2008)
diff --git a/sci-libs/indilib/files/indilib-0.5+gcc-4.3.patch b/sci-libs/indilib/files/indilib-0.5+gcc-4.3.patch
new file mode 100644
index 000000000000..30ee94eaec51
--- /dev/null
+++ b/sci-libs/indilib/files/indilib-0.5+gcc-4.3.patch
@@ -0,0 +1,10 @@
+--- src/sbigcam.h.orig 2008-06-07 22:18:07.000000000 +0200
++++ src/sbigcam.h 2008-06-07 22:18:35.000000000 +0200
+@@ -33,6 +33,7 @@
+ #include <math.h>
+ #include <time.h>
+ #include <string>
++#include <cstring>
+ #include "sbigudrv.h"
+
+ // Define INDI if INDI driver should be generated, otherwise only SbigCam class without
diff --git a/sci-libs/indilib/indilib-0.5.ebuild b/sci-libs/indilib/indilib-0.5.ebuild
index fc9b09e3f084..1e25e07a0004 100644
--- a/sci-libs/indilib/indilib-0.5.ebuild
+++ b/sci-libs/indilib/indilib-0.5.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/indilib/indilib-0.5.ebuild,v 1.1 2008/01/13 20:04:34 philantrop Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/indilib/indilib-0.5.ebuild,v 1.2 2008/06/09 12:04:02 flameeyes Exp $
-inherit multilib
+inherit multilib eutils
DESCRIPTION="INDI Astronomical Control Protocol library"
HOMEPAGE="http://indi.sourceforge.net/index.php/Main_Page"
@@ -21,6 +21,13 @@ DEPEND="${RDEPEND}"
S="${WORKDIR}/indi"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}+gcc-4.3.patch
+}
+
src_compile(){
myconf="${myconf} $(use_enable usb) $(use_enable v4l2)"