blob: b6fb79fda282672a2a46729d679be5d5befe62b2 [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
CROS_WORKON_COMMIT="7d9288a0745aa50dbcb0bb692241f0eee679254b"
CROS_WORKON_TREE="82eb157a8b0c1194363d30a8d746f1b68edafda6"
CROS_WORKON_PROJECT="chromiumos/third_party/rootdev"
CROS_WORKON_OUTOFTREE_BUILD="1"
inherit toolchain-funcs cros-workon
DESCRIPTION="Chrome OS root block device tool/library"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="-asan -clang"
REQUIRED_USE="asan? ( clang )"
src_configure() {
clang-setup-env
cros-workon_src_configure
tc-export CC
}
src_compile() {
emake OUT="${WORKDIR}"
}
src_install() {
cd "${WORKDIR}"
dobin rootdev
dolib.so librootdev.so*
insinto /usr/include/rootdev
doins "${S}"/rootdev.h
}