summaryrefslogtreecommitdiff
path: root/sys-devel/ct-ng/ct-ng-1.23.0-r1.ebuild
blob: ae22277a41305772a922f9a8dcbb7c4f3559baa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

inherit bash-completion-r1

DESCRIPTION="crosstool-ng is a tool to build cross-compiling toolchains"
HOMEPAGE="https://crosstool-ng.github.io/"
MY_P=${P/ct/crosstool}
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"

S="${WORKDIR}/crosstool-ng-${PV}"

src_configure() {
	./bootstrap
	autotools-utils_src_configure
}

src_install() {
	emake DESTDIR="${D%/}" install
	newbashcomp ${PN}.comp ${PN}
	use doc && mv "${D}"/usr/share/doc/crosstool-ng/crosstool-ng-${PVR} \
		"${D}"/usr/share/doc/
	rm -rf "${D}"/usr/share/doc/crosstool-ng
}