blob: 4748c4ca6364f66dec006c830e93cd9137a35d74 (
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
37
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils git-r3
DESCRIPTION="A binding generator for the rust language"
HOMEPAGE="https://github.com/servo/rust-bindgen"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""
EGIT_REPO_URI="https://github.com/servo/rust-bindgen.git"
DEPEND=">=virtual/rust-999
dev-util/cargo
>=sys-devel/clang-3.4.2-r100:*
"
RDEPEND="${DEPEND}"
src_configure() {
true
}
src_compile() {
cargo build --release
}
src_install() {
install -D -m 755 "${FILESDIR}/rust-bindgen" "${D}/usr/bin/rust-bindgen"
install -D -m 755 target/release/bindgen "${D}/usr/bin/rust-bindgen-9999"
install -D -t "${D}/usr/lib" target/release/libbindgen*
}
|