1 |
# Copyright 1999-2014 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/ct-ng/ct-ng-1.20.0.ebuild,v 1.1 2014/09/09 09:27:46 blueness Exp $ |
4 |
|
5 |
EAPI="5" |
6 |
|
7 |
inherit autotools bash-completion-r1 eutils |
8 |
|
9 |
DESCRIPTION="crosstool-ng is a tool to build cross-compiling toolchains" |
10 |
HOMEPAGE="http://crosstool-ng.org" |
11 |
MY_P=${P/ct/crosstool} |
12 |
S=${WORKDIR}/${MY_P} |
13 |
SRC_URI="http://ymorin.is-a-geek.org/download/crosstool-ng/${MY_P}.tar.bz2" |
14 |
|
15 |
LICENSE="GPL-2" |
16 |
SLOT="0" |
17 |
KEYWORDS="~amd64 ~x86" |
18 |
IUSE="doc" |
19 |
|
20 |
RDEPEND="net-misc/curl |
21 |
dev-util/gperf |
22 |
dev-vcs/cvs |
23 |
dev-vcs/subversion" |
24 |
|
25 |
src_prepare() { |
26 |
epatch "${FILESDIR}"/${PN}-kconfig-respect-flags.patch |
27 |
|
28 |
#Upstream provides ${S}/bootstrap which runs autoconf -Wall --force |
29 |
#We'll use eautoconf to be portage friendly |
30 |
eautoconf -Wall --force |
31 |
} |
32 |
|
33 |
src_install() { |
34 |
emake DESTDIR="${D%/}" install |
35 |
newbashcomp ${PN}.comp ${PN} |
36 |
dodoc README TODO |
37 |
use doc && mv "${D}"/usr/share/doc/crosstool-ng/"${PN}.${PVR}"/* \ |
38 |
"${D}"/usr/share/doc/"${PF}" |
39 |
rm -rf "${D}"/usr/share/doc/crosstool-ng |
40 |
} |