blob: a75fa16bbd481d60b381dc851d2c4d4d252e0527 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/libdrizzle/libdrizzle-0.6.ebuild,v 1.2 2009/12/23 18:19:22 flameeyes Exp $
EAPI=2
DESCRIPTION="a C client and protocol library for the Drizzle project"
HOMEPAGE="http://launchpad.net/libdrizzle"
SRC_URI="http://launchpad.net/libdrizzle/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug tcmalloc +sqlite static-libs"
RDEPEND="tcmalloc? ( dev-util/google-perftools )
sqlite? ( dev-db/sqlite:3 )"
DEPEND="${RDEPEND}"
src_configure() {
# Don't ever use --enable-assert since configure.ac is broken, and
# only does --disable-assert correctly.
if use debug; then
# Since --with-debug would turn off optimisations as well as
# enabling debug, we just enable debug through the
# preprocessor then.
append-flags -DDEBUG
# Right now disabling asserts break the code, so never disable
# them as it is.
#else
# myconf="${myconf} --disable-assert"
fi
econf \
--disable-static \
--disable-dependency-tracking \
--disable-mtmalloc \
$(use_enable tcmalloc) \
$(use_enable libsqlite3)
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
dodoc AUTHORS ChangeLog NEWS PROTOCOL README || die
find "${D}" -name '*.la' -delete || die
}
|