# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit cvs eutils flag-o-matic ECVS_SERVER="savannah.nongnu.org:/cvsroot/avr-libc" ECVS_MODULE="avr-libc" ECVS_USER="anoncvs" ECVS_AUTH="ext" DESCRIPTION="Libc for the AVR microcontroller architecture" HOMEPAGE="http://www.nongnu.org/avr-libc/" SRC_URI="" IUSE="nls doc" SLOT="0" KEYWORDS="~amd64 ~x86" LICENSE="GPL-2" DEPEND=">=sys-devel/crossdev-0.9.1 doc? media-gfx/transfig" [[ ${CATEGORY/cross-} != ${CATEGORY} ]] \ && RDEPEND="!dev-embedded/avr-libc" \ || RDEPEND="" S="${WORKDIR}/${ECVS_MODULE}" src_unpack(){ cvs_src_unpack || die cd ${S} chmod u+x bootstrap chmod u+x devtools/gen-avr-lib-tree.sh } src_compile() { cd ${S} ./bootstrap export CC=avr-gcc ABI=retarded strip-flags strip-unsupported-flags ./configure \ --target=avr \ --host=avr \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $(use_enable nls) \ || die "./configure failed" emake || die if use doc; then make -C doc || die fi } src_install() { dodoc AUTHORS ChangeLog* NEWS README make DESTDIR="${D}" install || die if use doc; then make DESTDIR="${D}" -C doc install || die fi }