You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-devel/ct-ng/ct-ng-1.21.0.ebuild

45 lines
1.0 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit autotools bash-completion-r1 eutils
DESCRIPTION="crosstool-ng is a tool to build cross-compiling toolchains"
HOMEPAGE="http://crosstool-ng.org"
MY_P=${P/ct/crosstool}
S=${WORKDIR}
SRC_URI="http://ymorin.is-a-geek.org/download/crosstool-ng/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND="net-misc/curl
dev-util/gperf
dev-vcs/cvs
dev-vcs/subversion"
src_prepare() {
epatch "${FILESDIR}"/${PN}-kconfig-respect-flags.patch
#Upstream provides ${S}/bootstrap which runs autoconf -Wall --force
#We'll use eautoconf to be portage friendly
eautoconf -Wall --force
}
src_configure () {
econf --with-install="/usr/bin/install"
}
src_install() {
emake DESTDIR="${D%/}" install
newbashcomp ${PN}.comp ${PN}
dodoc README TODO
use doc && mv "${D}"/usr/share/doc/crosstool-ng/"${PN}.${PVR}"/* \
"${D}"/usr/share/doc/"${PF}"
rm -rf "${D}"/usr/share/doc/crosstool-ng
}