summaryrefslogtreecommitdiff
path: root/sys-devel/ct-ng/ct-ng-220209.ebuild
blob: b211c8f850123b06a90893a740a04eac93655033 (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
EAPI="7"

DESCRIPTION="crosstool-ng is a tool to build cross-compiling toolchains"
HOMEPAGE="https://crosstool-ng.github.io/"
HASH="ba680a3e5b8c62a7c1554e71f6d09903dac95a2f"
SRC_URI="https://github.com/crosstool-ng/crosstool-ng/archive/${HASH}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/crosstool-ng-${HASH}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

RDEPEND="net-misc/curl
	dev-util/gperf
	dev-vcs/cvs
	dev-vcs/subversion"

src_configure() {
	./bootstrap
	econf
}

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