From 05b892377056412293b1dc70e8436e0ce2278a8c Mon Sep 17 00:00:00 2001 From: Tyler Hall Date: Thu, 25 Jun 2015 09:52:59 -0400 Subject: [PATCH] Add liblibc crate --- recipes-core/libc/libc-rs_0.1.8.bb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 recipes-core/libc/libc-rs_0.1.8.bb diff --git a/recipes-core/libc/libc-rs_0.1.8.bb b/recipes-core/libc/libc-rs_0.1.8.bb new file mode 100644 index 0000000..b9c808f --- /dev/null +++ b/recipes-core/libc/libc-rs_0.1.8.bb @@ -0,0 +1,24 @@ +DESCRIPTION = "A Rust library with native bindings to the types and functions commonly found on various systems, including libc." +HOMEPAGE = "https://github.com/rust-lang/libc" +LICENSE = "MIT | Apache-2.0" +LIC_FILES_CHKSUM = "\ + file://LICENSE-MIT;md5=615cc94ba6f721c4ed3d6988605e85ca \ + file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \ +" + +inherit rust-bin + +# SRC_URI = "git://git@github.com:rust-lang/libc.git;protocol=https" +# libc lives in rust-lang/rust which is a submodule of rust-lang/libc +SRC_URI = "gitsm://github.com/rust-lang/rust.git;protocol=https" +SRCREV = "8b7c17db2235a2a3f2c71242b11fc429a8d05a90" + +S = "${WORKDIR}/git" + +do_compile () { + oe_runrustc ${S}/src/liblibc/lib.rs --cfg feature='"cargo-build"' +} + +do_install () { + install -D -m 644 liblibc.rlib ${D}/${rustlibdir}/liblibc.rlib +}