summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavoz@gentoo.org>2005-05-31 20:00:51 +0000
committerGustavo Zacarias <gustavoz@gentoo.org>2005-05-31 20:00:51 +0000
commit5d72fa84f540dd5a846e60b0adab2a5c11f026f8 (patch)
tree8a7d61f8073650d4858dc20b5884350acd2900ed /dev-embedded
parentStable on hppa (diff)
downloadgentoo-2-5d72fa84f540dd5a846e60b0adab2a5c11f026f8.tar.gz
gentoo-2-5d72fa84f540dd5a846e60b0adab2a5c11f026f8.tar.bz2
gentoo-2-5d72fa84f540dd5a846e60b0adab2a5c11f026f8.zip
Compile fix wrt #94660
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/avr-libc/ChangeLog6
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.2.3.ebuild9
-rw-r--r--dev-embedded/avr-libc/files/avr-libc-macros.patch18
3 files changed, 31 insertions, 2 deletions
diff --git a/dev-embedded/avr-libc/ChangeLog b/dev-embedded/avr-libc/ChangeLog
index 52cea741db33..1618353736eb 100644
--- a/dev-embedded/avr-libc/ChangeLog
+++ b/dev-embedded/avr-libc/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-embedded/avr-libc
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avr-libc/ChangeLog,v 1.9 2005/05/25 10:20:55 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avr-libc/ChangeLog,v 1.10 2005/05/31 20:00:51 gustavoz Exp $
+
+ 31 May 2005; Gustavo Zacarias <gustavoz@gentoo.org>
+ +files/avr-libc-macros.patch, avr-libc-1.2.3.ebuild:
+ Compile fix wrt #94660
25 May 2005; Markus Rothe <corsair@gentoo.org> avr-libc-1.2.3.ebuild:
Added ~ppc64 to KEYWORDS
diff --git a/dev-embedded/avr-libc/avr-libc-1.2.3.ebuild b/dev-embedded/avr-libc/avr-libc-1.2.3.ebuild
index 0fa30a0b36a4..c563af6f819c 100644
--- a/dev-embedded/avr-libc/avr-libc-1.2.3.ebuild
+++ b/dev-embedded/avr-libc/avr-libc-1.2.3.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avr-libc/avr-libc-1.2.3.ebuild,v 1.3 2005/05/25 10:20:55 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avr-libc/avr-libc-1.2.3.ebuild,v 1.4 2005/05/31 20:00:51 gustavoz Exp $
+
+inherit eutils
DESCRIPTION="Libc for the AVR microcontroller architecture"
HOMEPAGE="http://www.nongnu.org/avr-libc/"
@@ -16,6 +18,11 @@ DEPEND=">=sys-devel/crossdev-0.9.1"
&& RDEPEND="!dev-embedded/avr-libc" \
|| RDEPEND=""
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${PN}-macros.patch
+}
+
src_compile() {
mkdir obj-avr
cd obj-avr
diff --git a/dev-embedded/avr-libc/files/avr-libc-macros.patch b/dev-embedded/avr-libc/files/avr-libc-macros.patch
new file mode 100644
index 000000000000..9c9e5efcaf88
--- /dev/null
+++ b/dev-embedded/avr-libc/files/avr-libc-macros.patch
@@ -0,0 +1,18 @@
+diff -Nura avr-libc-1.2.3/common/macros.inc avr-libc-1.2.3.crossdev/common/macros.inc
+--- avr-libc-1.2.3/common/macros.inc 2004-11-01 18:19:54.000000000 -0300
++++ avr-libc-1.2.3.crossdev/common/macros.inc 2005-05-31 16:11:36.000000000 -0300
+@@ -35,6 +35,9 @@
+ Created by Marek Michalkiewicz <marekm@linux.org.pl>
+ */
+
++#ifndef _MACROS_INC
++#define _MACROS_INC
++
+ #include <avr/io.h>
+
+ /* if not defined, assume old version with underscores */
+@@ -219,3 +222,4 @@
+ #endif
+ .endm
+
++#endif