rust: move versioned files into .inc

This way we can bump the versions without big diffs.
This commit is contained in:
Doug Goldstein
2017-01-30 09:45:55 -06:00
parent 97fcc5db56
commit 5d2e062a84
6 changed files with 114 additions and 112 deletions
+32
View File
@@ -0,0 +1,32 @@
SUMMARY = "Rust standard libaries"
HOMEPAGE = "http://www.rust-lang.org"
SECTION = "devel"
LICENSE = "MIT | Apache-2.0"
LIC_FILES_CHKSUM ="file://COPYRIGHT;md5=43e1f1fb9c0ee3af66693d8c4fecafa8"
S = "${WORKDIR}/rustc-${PV}"
SRC_URI += "\
crate://crates.io/gcc/0.3.27 \
"
DEPENDS += "compiler-rt (=${PV})"
RUSTLIB_DEP = ""
inherit cargo
# Needed so cargo can find libbacktrace
RUSTFLAGS += "-L ${STAGING_LIBDIR}"
S = "${WORKDIR}/rustc-${PV}"
do_compile_prepend () {
cd ${S}/src/rustc/std_shim
export CARGO_TARGET_DIR="${B}"
export RUSTC_BOOTSTRAP_KEY="${RS_KEY}"
}
do_install () {
mkdir -p ${D}${rustlibdir}
cp ${B}/${TARGET_SYS}/release/deps/* ${D}${rustlibdir}
}