diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-libs/leveldb/leveldb-1.15.0-r1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/leveldb/leveldb-1.15.0-r1.ebuild')
-rw-r--r-- | dev-libs/leveldb/leveldb-1.15.0-r1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-libs/leveldb/leveldb-1.15.0-r1.ebuild b/dev-libs/leveldb/leveldb-1.15.0-r1.ebuild new file mode 100644 index 000000000000..f2ea73b72f90 --- /dev/null +++ b/dev-libs/leveldb/leveldb-1.15.0-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="a fast key-value storage library written at Google" +HOMEPAGE="https://github.com/google/leveldb" +SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="+snappy static-libs +tcmalloc" + +DEPEND="tcmalloc? ( dev-util/google-perftools ) + snappy? ( + app-arch/snappy + static-libs? ( app-arch/snappy[static-libs] ) + )" +RDEPEND="${DEPEND}" + +src_prepare() { + cp "${FILESDIR}/${PN}-1.9.0-memenv-so.patch" "${S}/patch" + sed -i 's/\(^ SHARED_MINOR =\).*/\1 15/' "${S}/patch" + epatch "${S}/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 libmemenv.SHARED +} + +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 + dolib.so libmemenv*$(get_libname)* +} |