blob: ab1cf6e9b97a951f701484062106f47f78062946 [file] [log] [blame]
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
CROS_RUST_REMOVE_DEV_DEPS=1
inherit cros-rust
DESCRIPTION='Binary crate to generate Rust code from XML introspection data'
HOMEPAGE='https://crates.io/crates/dbus-codegen'
SRC_URI="https://crates.io/api/v1/crates/${PN}/${PV}/download -> ${P}.crate"
LICENSE="|| ( Apache-2.0 MIT )"
SLOT="0/${PVR}"
KEYWORDS="*"
DEPEND="
>=dev-rust/clap-2.20.0:= <dev-rust/clap-3.0.0_alpha
=dev-rust/dbus-0.9*:=
=dev-rust/dbus-tree-0.9*:=
>=dev-rust/xml-rs-0.8.3:= <dev-rust/xml-rs-0.9.0_alpha
"
RDEPEND="${DEPEND}"
# This file was automatically generated by cargo2ebuild.py, but the slot was
# changed and the following was added:
src_compile() {
ecargo_build
}
src_install() {
dobin "$(cros-rust_get_build_dir)/dbus-codegen-rust"
}