summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2006-07-04 17:03:09 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2006-07-04 17:03:09 +0000
commita0ff6b66853be2f079ef187bf81860c6e62662c8 (patch)
tree64043491a41077c9c0e26d2dcdfb1e59e264d71f /dev-embedded
parentupdated for ruby support and cleaned up old version (diff)
downloadgentoo-2-a0ff6b66853be2f079ef187bf81860c6e62662c8.tar.gz
gentoo-2-a0ff6b66853be2f079ef187bf81860c6e62662c8.tar.bz2
gentoo-2-a0ff6b66853be2f079ef187bf81860c6e62662c8.zip
Added check for avr-gcc, bug #134738.
(Portage version: 2.1-r1)
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/avr-libc/ChangeLog5
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.4.4.ebuild18
2 files changed, 21 insertions, 2 deletions
diff --git a/dev-embedded/avr-libc/ChangeLog b/dev-embedded/avr-libc/ChangeLog
index d6196f3eb907..bfffc9957b95 100644
--- a/dev-embedded/avr-libc/ChangeLog
+++ b/dev-embedded/avr-libc/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-embedded/avr-libc
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avr-libc/ChangeLog,v 1.34 2006/06/25 10:52:59 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avr-libc/ChangeLog,v 1.35 2006/07/04 17:03:09 brix Exp $
+
+ 04 Jul 2006; Henrik Brix Andersen <brix@gentoo.org> avr-libc-1.4.4.ebuild:
+ Added check for avr-gcc, bug #134738.
25 Jun 2006; Henrik Brix Andersen <brix@gentoo.org>
-avr-libc-1.4.3.ebuild:
diff --git a/dev-embedded/avr-libc/avr-libc-1.4.4.ebuild b/dev-embedded/avr-libc/avr-libc-1.4.4.ebuild
index 23e64cd9f88a..6e1e945f5647 100644
--- a/dev-embedded/avr-libc/avr-libc-1.4.4.ebuild
+++ b/dev-embedded/avr-libc/avr-libc-1.4.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 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.4.4.ebuild,v 1.3 2006/06/09 12:06:55 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avr-libc/avr-libc-1.4.4.ebuild,v 1.4 2006/07/04 17:03:09 brix Exp $
inherit flag-o-matic
@@ -20,6 +20,22 @@ DEPEND=">=sys-devel/crossdev-0.9.1"
&& RDEPEND="!dev-embedded/avr-libc" \
|| RDEPEND=""
+pkg_setup() {
+ # check for avr-gcc, bug #134738
+ ebegin "Checking for avr-gcc"
+ if command -v avr-gcc > /dev/null 2>&1; then
+ eend 0
+ else
+ eend 1
+
+ eerror
+ eerror "Failed to locate 'avr-gcc' in \$PATH. You can install an AVR toolchain using:"
+ eerror " $ crossdev -t avr"
+ eerror
+ die "AVR toolchain not found"
+ fi
+}
+
src_compile() {
export AS=avr-as AR=avr-ar RANLIB=avr-ranlib CC=avr-gcc ABI=retarded