blob: 1f8dfa50e77bee16218bf2fb12f5959bd8663d25 (
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
52
53
54
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/haildb/haildb-2.3.2.ebuild,v 1.3 2011/02/03 12:28:15 flameeyes Exp $
EAPI=2
inherit versionator flag-o-matic
DESCRIPTION="a relational database in shared library form"
HOMEPAGE="http://www.haildb.com/"
SRC_URI="http://launchpad.net/haildb/$(get_version_component_range 1-2)/cairo/+download/${P}.tar.gz"
LICENSE="GPL-2 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug tcmalloc zlib"
RDEPEND="tcmalloc? ( dev-util/google-perftools )
zlib? ( sys-libs/zlib )"
DEPEND="${RDEPEND}
sys-devel/bison"
src_configure() {
local myconf
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
else
myconf="${myconf} --disable-assert"
fi
# never allow it to find valgrind, easier this way
export ac_cv_header_valgrind_memcheck_h=no
econf \
--disable-static \
--disable-dependency-tracking \
--enable-fast-install \
--disable-silent-rules \
--disable-mtmalloc \
$(use_enable zlib compression) \
$(use_enable tcmalloc) \
${myconf} \
|| die "econf failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
dodoc ChangeLog README || die
find "${D}" -name '*.la' -delete || die
}
|