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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jan 31 16:24:25 2014 UTC (7 months, 2 weeks ago) by maekke
Branch: MAIN
Changes since 1.2: +2 -2 lines
add ~arm, bug #498466

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --include-arches="arm", signed Manifest commit with key 072AD062)

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.11.ebuild,v 1.2 2014/01/19 11:46:29 jer 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="https://gitorious.org/mdb/mdb/archive/aa3463ec7c5e979420b13c8f37caa377ed2c1cf1.tar.gz
13 -> lmtp-0.9.11.tar.gz"
14
15 LICENSE="OPENLDAP"
16 SLOT="0"
17 KEYWORDS="~amd64 ~arm ~hppa ~x86"
18 IUSE="static-libs"
19
20 DEPEND=""
21 RDEPEND="${DEPEND}"
22
23 S="${WORKDIR}/mdb-mdb/libraries/liblmdb"
24
25 src_prepare() {
26 sed -i -e "s/^CC.*/CC = $(tc-getCC)/" \
27 -e "s/^CFLAGS.*/CFLAGS = ${CFLAGS}/" \
28 -e "s/ar rs/$(tc-getAR) rs/" \
29 -e "s:^prefix.*:prefix = /usr:" \
30 -e "s:/man/:/share/man/:" \
31 -e "/for f/s:lib:$(get_libdir):" \
32 -e "s:shared:shared -Wl,-soname,liblmdb.so.0:" \
33 "${S}/Makefile" || die
34 }
35
36 src_configure() {
37 :
38 }
39
40 src_compile() {
41 emake LDLIBS+=" -pthread"
42 }
43
44 src_install() {
45 mkdir -p "${D}"/usr/{bin,$(get_libdir),include,share/man/man1}
46 default
47
48 mv "${D}"/usr/$(get_libdir)/liblmdb.so{,.0} || die
49 dosym liblmdb.so.0 /usr/$(get_libdir)/liblmdb.so
50
51 use static-libs || rm -f "${D}"/usr/$(get_libdir)/liblmdb.a
52 }

  ViewVC Help
Powered by ViewVC 1.1.20