blob: 018cb29e3d9ad9050e28952b75ac5562e4bf029d [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.
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="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="test"
src_configure() {
cros-workon_src_configure
}
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
}