cargo: convert recipe to cargo-bitbake
Generate the Cargo recipe with cargo-bitbake instead of having a handcrafted recipe. This should make future version bumps easier. Three known issues: - license checksum of the Apache license is a generateme value due to the license file having a difference name then what's in Cargo.toml. - branch= value was wrong for tags. Pointed to HEAD instead of the branch that the underlying tag commit came from. - Use https protocol when the repo is publicly accessible.
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
inherit cargo
|
||||
inherit patch
|
||||
require cargo-snapshot.inc
|
||||
|
||||
SUMMARY = "Cargo downloads your Rust project's dependencies and builds your project"
|
||||
HOMEPAGE = "http://crates.io"
|
||||
SECTION = "devel"
|
||||
LICENSE = "MIT | Apache-2.0"
|
||||
|
||||
DEPENDS = "openssl zlib libgit2 curl ca-certificates libssh2"
|
||||
|
||||
SRC_URI = "\
|
||||
SRC_URI += "\
|
||||
http://static-rust-lang-org.s3.amazonaws.com/cargo-dist/${CARGO_SNAPSHOT} \
|
||||
"
|
||||
|
||||
LIC_FILES_CHKSUM += " \
|
||||
file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \
|
||||
file://LICENSE-THIRD-PARTY;md5=892ea68b169e69cfe75097fc38a15b56 \
|
||||
"
|
||||
|
||||
# Used in libgit2-sys's build.rs, needed for pkg-config to be used
|
||||
export LIBGIT2_SYS_USE_PKG_CONFIG = "1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user