blob: 2aff85d2ee9f37f0e40b8cfee23a03a8ef212667 [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_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="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
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
}