[dev-db/lmdb] sync with tree
This commit is contained in:
parent
b2cc597a14
commit
4671033ebc
@ -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
|
||||
# $Id$
|
||||
|
||||
@ -18,7 +18,7 @@ DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store"
|
||||
HOMEPAGE="http://symas.com/mdb/"
|
||||
|
||||
LICENSE="OPENLDAP"
|
||||
SLOT="0"
|
||||
SLOT="0/0.9.18"
|
||||
IUSE="static-libs"
|
||||
|
||||
DEPEND=""
|
||||
@ -28,10 +28,12 @@ RDEPEND="!=net-nds/openldap-2.4.40"
|
||||
S="${WORKDIR}/${P}/libraries/liblmdb"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s/^CC.*/CC = $(tc-getCC)/" \
|
||||
-e "s/^CFLAGS.*/CFLAGS = ${CFLAGS}/" \
|
||||
-e "s/^AR.*/AR = $(tc-getAR)/" \
|
||||
-e "s:shared:shared -Wl,-soname,liblmdb.so.0:" \
|
||||
sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \
|
||||
-e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \
|
||||
-e "s!^AR.*!AR = $(tc-getAR)!" \
|
||||
-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
|
||||
}
|
||||
|
||||
@ -40,14 +42,14 @@ src_configure() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake LDLIBS+=" -pthread" || die
|
||||
emake LDLIBS+=" -pthread"
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user