From c890efd9585c2cf35567d26337346ac68cb2bb91 Mon Sep 17 00:00:00 2001 From: Tyler Hall Date: Thu, 25 Jun 2015 13:46:05 -0400 Subject: [PATCH] Add log crate --- recipes-core/log/env-logger-rs_0.3.1.bb | 6 ++++++ recipes-core/log/log-rs.bb | 4 ++++ recipes-core/log/log.inc | 22 ++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 recipes-core/log/env-logger-rs_0.3.1.bb create mode 100644 recipes-core/log/log-rs.bb create mode 100644 recipes-core/log/log.inc diff --git a/recipes-core/log/env-logger-rs_0.3.1.bb b/recipes-core/log/env-logger-rs_0.3.1.bb new file mode 100644 index 0000000..7b085ad --- /dev/null +++ b/recipes-core/log/env-logger-rs_0.3.1.bb @@ -0,0 +1,6 @@ +DESCRIPTION = "An logging implementation for `log` which is configured via an environment variable" +DEPENDS = "regex-rs log-rs" + +require log.inc + +LIB_SRC = "${S}/env/src/lib.rs" diff --git a/recipes-core/log/log-rs.bb b/recipes-core/log/log-rs.bb new file mode 100644 index 0000000..eee03e1 --- /dev/null +++ b/recipes-core/log/log-rs.bb @@ -0,0 +1,4 @@ +DESCRIPTION = "A Rust library providing a lightweight logging facade" +DEPENDS = "libc-rs" + +require log.inc diff --git a/recipes-core/log/log.inc b/recipes-core/log/log.inc new file mode 100644 index 0000000..f743dc8 --- /dev/null +++ b/recipes-core/log/log.inc @@ -0,0 +1,22 @@ +HOMEPAGE = "https://github.com/rust-lang/log" +LICENSE = "MIT | Apache-2.0" +LIC_FILES_CHKSUM = "\ + file://LICENSE-MIT;md5=362255802eb5aa87810d12ddf3cfedb4 \ + file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \ +" + +inherit rust-bin + +SRC_URI = "git://github.com/rust-lang/log.git;protocol=https" +SRCREV = "5453e16166ec451afc9738978ca01f162127ebbe" +PV = "0.3.1" + +S = "${WORKDIR}/git" + +do_compile () { + oe_compile_rust_lib +} + +do_install () { + oe_install_rust_lib +}