[dev-db/lmdb] sync with tree

This commit is contained in:
Robert Förster 2016-11-12 17:23:40 +01:00
parent b2cc597a14
commit 4671033ebc

View File

@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation # Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Id$ # $Id$
@ -18,7 +18,7 @@ DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store"
HOMEPAGE="http://symas.com/mdb/" HOMEPAGE="http://symas.com/mdb/"
LICENSE="OPENLDAP" LICENSE="OPENLDAP"
SLOT="0" SLOT="0/0.9.18"
IUSE="static-libs" IUSE="static-libs"
DEPEND="" DEPEND=""
@ -28,10 +28,12 @@ RDEPEND="!=net-nds/openldap-2.4.40"
S="${WORKDIR}/${P}/libraries/liblmdb" S="${WORKDIR}/${P}/libraries/liblmdb"
src_prepare() { src_prepare() {
sed -i -e "s/^CC.*/CC = $(tc-getCC)/" \ sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \
-e "s/^CFLAGS.*/CFLAGS = ${CFLAGS}/" \ -e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \
-e "s/^AR.*/AR = $(tc-getAR)/" \ -e "s!^AR.*!AR = $(tc-getAR)!" \
-e "s:shared:shared -Wl,-soname,liblmdb.so.0:" \ -e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \
-e "/^libdir/s!lib\$!$(get_libdir)!" \
-e "s!shared!shared -Wl,-soname,liblmdb.so.0!" \
"${S}/Makefile" || die "${S}/Makefile" || die
} }
@ -40,14 +42,14 @@ src_configure() {
} }
src_compile() { src_compile() {
emake LDLIBS+=" -pthread" || die emake LDLIBS+=" -pthread"
} }
src_install() { src_install() {
emake DESTDIR="${ED}" prefix="${EROOT}usr" libdir="${EROOT}usr/$(get_libdir)" install || die emake DESTDIR="${D}" install
mv "${ED}"usr/$(get_libdir)/liblmdb.so{,.0} || die mv "${ED}"usr/$(get_libdir)/liblmdb.so{,.0} || die
dosym liblmdb.so.0 "${EROOT}"usr/$(get_libdir)/liblmdb.so dosym liblmdb.so.0 /usr/$(get_libdir)/liblmdb.so
use static-libs || rm "${ED}"usr/$(get_libdir)/liblmdb.a || die use static-libs || rm "${ED}"usr/$(get_libdir)/liblmdb.a || die
} }