[dev-db/lmdb] temporary add to be in sync with openldap 2.4.43

This commit is contained in:
Robert Förster 2015-12-04 23:26:21 +01:00
parent d41b0b4249
commit aaabb830bb
2 changed files with 50 additions and 0 deletions

1
dev-db/lmdb/Manifest Normal file
View File

@ -0,0 +1 @@
DIST LMDB_0.9.17.tar.gz 135816 SHA256 80a08218e40f76a0485ec18c42de6f1e020b1ed0268f7cb34c69746e8d98c72c SHA512 2f6108364973e01f6379613c02b9fa11933d6c91eadc5ae0cad55818bc0205041d0663a5dd936d89ec651eb1de0257390d48d549d1bc24ef29d7ee57c9fcb941 WHIRLPOOL 9ed1ed2857cc1282e30fa5a6ecab710bbb00f88f973a90228004194f7f52fe21053e27692e9ec9d0dedd33c6e204bd9f66702fd63e60c8a8a23f655acfbda474

View File

@ -0,0 +1,49 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit toolchain-funcs
DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store"
HOMEPAGE="http://symas.com/mdb/"
SRC_URI="https://github.com/LMDB/lmdb/archive/LMDB_${PV}.tar.gz"
LICENSE="OPENLDAP"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
IUSE="static-libs"
DEPEND=""
# =net-nds/openldap-2.4.40 installs lmdb files.
RDEPEND="!=net-nds/openldap-2.4.40"
S="${WORKDIR}/${PN}-LMDB_${PV}/libraries/liblmdb"
src_prepare() {
sed -i -e "s/^CC.*/CC = $(tc-getCC)/" \
-e "s/^CFLAGS.*/CFLAGS = ${CFLAGS}/" \
-e "s/^AR.*/AR = $(tc-getAR)/" \
-e "/mkdir/s:lib:$(get_libdir):" \
-e "/for f/s:lib:$(get_libdir):" \
-e "s:man/man1:share/man/man1:" \
-e "s:shared:shared -Wl,-soname,liblmdb.so.0:" \
"${S}/Makefile" || die
}
src_configure() {
:
}
src_compile() {
emake LDLIBS+=" -pthread"
}
src_install() {
emake DESTDIR="${ED}" prefix="${EROOT}usr" mandir="${EROOT}usr/share" install
mv "${ED}"usr/$(get_libdir)/liblmdb.so{,.0} || die
dosym liblmdb.so.0 "${EROOT}"usr/$(get_libdir)/liblmdb.so
use static-libs || rm -f "${ED}"usr/$(get_libdir)/liblmdb.a
}