diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-07-29 15:52:40 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-07-29 15:52:40 +0000 |
commit | 9cdc4f5e0ca1b540251e18181bdb1092033d19f1 (patch) | |
tree | edb04fdd4c3f7b2a12872592dcfa000e60755558 /dev-libs/leveldb/leveldb-1.15.0-r1.ebuild | |
parent | Version bump, remove older alpha (diff) | |
download | gentoo-2-9cdc4f5e0ca1b540251e18181bdb1092033d19f1.tar.gz gentoo-2-9cdc4f5e0ca1b540251e18181bdb1092033d19f1.tar.bz2 gentoo-2-9cdc4f5e0ca1b540251e18181bdb1092033d19f1.zip |
Add patch for libmemenv.a with PIC, bug #505320
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
Diffstat (limited to 'dev-libs/leveldb/leveldb-1.15.0-r1.ebuild')
-rw-r--r-- | dev-libs/leveldb/leveldb-1.15.0-r1.ebuild | 60 |
1 files changed, 60 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..87a968f47ca7 --- /dev/null +++ b/dev-libs/leveldb/leveldb-1.15.0-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/leveldb/leveldb-1.15.0-r1.ebuild,v 1.1 2014/07/29 15:52:40 blueness 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 ~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)* +} |