# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit python DESCRIPTION="A simulator for the Atmel AVR family of microcontrollers" HOMEPAGE="http://www.nongnu.org/simulavr/" SRC_URI="http://savannah.nongnu.org/download/simulavr/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="sys-libs/ncurses" DEPEND="sys-apps/sed sys-devel/crossdev dev-lang/swig sys-apps/texinfo >=dev-lang/python-2.1.1 ${RDEPEND}" pkg_setup() { if ! has_version cross-avr/gcc; then eerror eerror "${PN} requires avr-gcc to be installed. You can install" eerror "it by running:" eerror " # crossdev -t avr" eerror die "Missing avr-gcc" fi } src_unpack() { unpack ${A} python_version sed -i -e "s:python2.3:python${PYVER}:" ${S}/src/Makefile.in sed -i -e "s:/usr/binutils/avr/:/usr/lib/binutils/avr/:" ${S}/configure } src_compile() { econf || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog README }