# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils DESCRIPTION="A tool to build cross compiling tool chains" HOMEPAGE="http://ymorin.is-a-geek.org/projects/crosstool" SRC_URI="http://ymorin.is-a-geek.org/download/crosstool-ng/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="net-misc/curl dev-util/cvs" src_prepare() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${PN}-fix-configure.patch } src_configure() { econf } src_compile() { emake || die "build failed" } src_install() { MY_D=$( echo ${D} | sed -e 's/\/$//') emake DESTDIR="${MY_D}" install || die "install failed" dodoc docs/CREDITS README TODO docs/known-issues.txt docs/overview.txt }