# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="AVR simulator" HOMEPAGE="http://www.nongnu.org/simulavr/" SRC_URI="http://savannah.nongnu.org/download/simulavr/${P}.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="dev-lang/swig sys-devel/gcc" RDEPEND="" src_unpack() { unpack ${A} } src_compile() { local BFD_PATH_ROOT which avr-ld || die "avr binutils not installed" BFD_PATH_ROOT=/usr/lib/binutils/avr/`avr-ld -v | cut -d" " -f4` econf --with-bfd-path=$BFD_PATH_ROOT || die "configure failed" emake || die "make failed" } src_install() { emake install DESTDIR=${D} || die "install failed" }