/[gentoo-x86]/dev-db/lmdb/lmdb-0.9.10.ebuild
Gentoo

Contents of /dev-db/lmdb/lmdb-0.9.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jan 18 13:47:38 2014 UTC (7 months ago) by eras
Branch: MAIN
Changes since 1.1: +3 -3 lines
Fix whitespace

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)

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

  ViewVC Help
Powered by ViewVC 1.1.20