summaryrefslogtreecommitdiff
blob: 1e9d6f4f17753d887276386368433afeb29f9819 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

EGIT_REPO_URI="git://git.samba.org/ctdb.git"
inherit autotools eutils git-2 multilib-minimal

DESCRIPTION="A cluster implementation of the TDB database used to store temporary data"
HOMEPAGE="http://ctdb.samba.org/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND=">=dev-libs/popt-1.16-r2[${MULTILIB_USEDEP}]"
RDEPEND="${DEPEND}"

src_prepare() {
	AT_M4DIR="-I libreplace -I lib/replace -I ../libreplace -I ../replace"
	AT_M4DIR+=" -I lib/talloc -I talloc -I ../talloc"
	AT_M4DIR+=" -I lib/tdb -I tdb -I ../tdb"
	AT_M4DIR+=" -I lib/popt -I popt -I ../popt"
	AT_M4DIR+=" -I lib/tevent"

	rm -rf autom4te.cache
	rm -f configure config.h.in

	autotools_run_tool autoheader ${AT_M4DIR} || die "running autoheader failed"
	eautoconf ${AT_M4DIR}
}

src_prepare() {
	epatch "${PATCHES[@]}"
	epatch_user

	# custom, broken Makefile
	multilib_copy_sources
}

multilib_src_configure() {
	econf \
		--docdir="${EPREFIX}/usr/share/doc/${PF}" \
		--localstatedir="${EPREFIX}/var/lib" \
		--with-logdir="${EPREFIX}/var/log/${PN}"
}

multilib_src_install_all() {
	einstalldocs
	dohtml web/* doc/*.html
}