blob: bbfc0526c62e3ea44f83ac870039495e2a98753e [file] [log] [blame]
# Copyright (C) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE.makefile file.
CROS_WORKON_COMMIT="fd1218ceec51a67b42921c2a0fe4da08bd7f1a90"
CROS_WORKON_TREE="cddf50f93e1fdd9ade5b86f46b4b7a7b79b4800e"
EAPI=4
CROS_WORKON_PROJECT="chromiumos/third_party/leveldb"
inherit toolchain-funcs cros-debug cros-workon
DESCRIPTION="A fast and lightweight key/value database library by Google."
HOMEPAGE="http://code.google.com/p/leveldb/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="test"
src_compile() {
tc-export CXX OBJCOPY PKG_CONFIG STRIP
cros-debug-add-NDEBUG
emake all libmemenv.a
}
src_install() {
insinto /usr/include/leveldb
doins include/leveldb/*.h helpers/memenv/memenv.h
dolib.a libleveldb.a libmemenv.a
}