blob: e4040c747d11a928b0c2491ec5f1bba7e36691b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/lmdb/lmdb-0.9.10.ebuild,v 1.2 2014/01/18 13:47:38 eras Exp $
EAPI=5
inherit toolchain-funcs
OPENLDAP_VERSION="2.4.38"
DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store"
HOMEPAGE="http://symas.com/mdb/"
SRC_URI="mirror://openldap/openldap-release/openldap-${OPENLDAP_VERSION}.tgz"
LICENSE="OPENLDAP"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}/openldap-${OPENLDAP_VERSION}/libraries/liblmdb"
src_prepare() {
sed -i -e "s/^CC.*/CC = $(tc-getCC)/" \
-e "s/^CFLAGS.*/CFLAGS = ${CFLAGS}/" \
-e "s/ar rs/$(tc-getAR) rs/" \
-e "s:^prefix.*:prefix = /usr:" \
-e "s:/man/:/share/man/:" \
-e "/for f/s:lib:$(get_libdir):" \
-e "s:shared:shared -Wl,-soname,liblmdb.so.0:" \
"${S}/Makefile" || die
}
src_configure() {
:
}
src_compile() {
emake LDLIBS+=" -pthread"
}
src_install() {
mkdir -p "${D}"/usr/{bin,$(get_libdir),include,share/man/man1}
default
mv "${D}"/usr/$(get_libdir)/liblmdb.so{,.0} || die
dosym liblmdb.so.0 /usr/$(get_libdir)/liblmdb.so
use static-libs || rm -f "${D}"/usr/$(get_libdir)/liblmdb.a
}
|