diff options
author | 2013-04-13 06:03:37 +0000 | |
---|---|---|
committer | 2013-04-13 06:03:37 +0000 | |
commit | f155b50a51e91ef87363e19c454d5a0507088fee (patch) | |
tree | cf848a8d4bf5049ae419e742678a3935fdce4be1 /dev-libs/leveldb/leveldb-1.9.0-r5.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-f155b50a51e91ef87363e19c454d5a0507088fee.tar.gz gentoo-2-f155b50a51e91ef87363e19c454d5a0507088fee.tar.bz2 gentoo-2-f155b50a51e91ef87363e19c454d5a0507088fee.zip |
Rewrite from scratch to fix innumerable errors.
(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'dev-libs/leveldb/leveldb-1.9.0-r5.ebuild')
-rw-r--r-- | dev-libs/leveldb/leveldb-1.9.0-r5.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-libs/leveldb/leveldb-1.9.0-r5.ebuild b/dev-libs/leveldb/leveldb-1.9.0-r5.ebuild new file mode 100644 index 000000000000..c8de6d8d1de2 --- /dev/null +++ b/dev-libs/leveldb/leveldb-1.9.0-r5.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/leveldb/leveldb-1.9.0-r5.ebuild,v 1.1 2013/04/13 06:03:36 vapier Exp $ + +EAPI=4 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="a fast key-value storage library written at Google" +HOMEPAGE="http://code.google.com/p/leveldb/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+snappy static-libs" + +DEPEND=" + snappy? ( + app-arch/snappy + static-libs? ( app-arch/snappy[static-libs] ) + )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.9.0-configure.patch +} + +src_configure() { + # These vars all get picked up by build_detect_platform + # which the Makefile runs for us automatically. + tc-export AR CC CXX + export OPT="-DNDEBUG ${CPPFLAGS}" + # Probably needs more filling out + export TARGET_OS + case ${CHOST} in + *) TARGET_OS="Linux";; + esac + export USE_SNAPPY=$(usex snappy) + export USE_TCMALLOC=no +} + +src_compile() { + emake $(usex static-libs '' 'LIBRARY=') all libmemenv.a +} + +src_test() { + emake check +} + +src_install() { + insinto /usr/include + doins -r include/* helpers/memenv/memenv.h + dolib.so libleveldb*$(get_libname)* + use static-libs && dolib.a libleveldb.a + dolib.a libmemenv.a +} |