blob: fbbdb13ef3731c049d474e07fbacda8e2926d73b (
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
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/elektra-0.7.1.ebuild,v 1.5 2012/06/23 04:36:18 ssuominen Exp $
EAPI=4
inherit autotools eutils
DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism"
HOMEPAGE="http://sourceforge.net/projects/elektra/"
SRC_URI="ftp://ftp.markus-raab.org/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="iconv static-libs test"
RDEPEND="dev-libs/libxml2"
DEPEND="${RDEPEND}
sys-devel/libtool
iconv? ( virtual/libiconv )
test? ( dev-libs/libxml2[static-libs] )"
src_prepare() {
einfo 'Removing bundled libltdl'
rm -rf libltdl || die
epatch "${FILESDIR}"/${P}-test.patch \
"${FILESDIR}"/${P}-ltdl.patch
sed -i -e 's:mkdir_p:MKDIR_P:' doc/Makefile.am || die #421589
touch config.rpath
eautoreconf
}
src_configure() {
# berkeleydb, daemon, fstab, gconf, python do not work
econf \
--enable-filesys \
--enable-hosts \
--enable-ini \
--enable-passwd \
--disable-berkeleydb \
--disable-fstab \
--disable-gconf \
--disable-daemon \
--enable-cpp \
--disable-python \
--enable-gcov \
$(use_enable iconv) \
$(use_enable static-libs static) \
--with-docdir=/usr/share/doc/${PF} \
--with-develdocdir=/usr/share/doc/${PF}
}
src_install() {
emake DESTDIR="${D}" install
if ! use static-libs; then
find "${D}" -name "*.a" -delete || die
fi
dodoc AUTHORS ChangeLog NEWS README TODO
}
|