/[gentoo-x86]/app-admin/elektra/elektra-0.7.1-r2.ebuild
Gentoo

Contents of /app-admin/elektra/elektra-0.7.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Nov 6 19:26:18 2012 UTC (3 years, 10 months ago) by mr_bones_
Branch: MAIN
Changes since 1.2: +2 -2 lines
whitespace

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/elektra-0.7.1-r2.ebuild,v 1.2 2012/11/04 12:01:55 xmw Exp $
4
5 EAPI=4
6
7 inherit autotools eutils
8
9 DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism"
10 HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra"
11 SRC_URI="ftp://ftp.markus-raab.org/${PN}/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="gcov iconv static-libs test"
17
18 RDEPEND="dev-libs/libxml2"
19 DEPEND="${RDEPEND}
20 sys-devel/libtool
21 iconv? ( virtual/libiconv )
22 test? ( dev-libs/libxml2[static-libs] )"
23
24 src_prepare() {
25 einfo 'Removing bundled libltdl'
26 rm -rf libltdl || die
27
28 epatch \
29 "${FILESDIR}"/${P}-test.patch \
30 "${FILESDIR}"/${P}-ltdl.patch \
31 "${FILESDIR}"/${P}-automake-1.12.patch
32
33 touch config.rpath
34 eautoreconf
35 }
36
37 src_configure() {
38 # berkeleydb, daemon, fstab, gconf, python do not work
39 econf \
40 --enable-filesys \
41 --enable-hosts \
42 --enable-ini \
43 --enable-passwd \
44 --disable-berkeleydb \
45 --disable-fstab \
46 --disable-gconf \
47 --disable-daemon \
48 --enable-cpp \
49 --disable-python \
50 $(use_enable gcov) \
51 $(use_enable iconv) \
52 $(use_enable static-libs static) \
53 --with-docdir=/usr/share/doc/${PF} \
54 --with-develdocdir=/usr/share/doc/${PF}
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" install
59
60 local my_f=""
61 #avoid collision with kerberos (bug 403025)
62 for my_f in kdb kdbbackend.h kdbos.h kdbtools.h keyset kdb.h \
63 kdbloader.h kdbprivate.h key ; do
64 mv "${D}"/usr/include/{,elektra-}"${my_f}" || die
65 elog "/usr/include/${my_f} installed as elektra-${my_f}"
66 done
67 sed -e '/^#include/s:kdbos.h:elektra-kdbos.h:' \
68 -i "${D}"/usr/include/elektra-kdb.h || die
69
70 #avoid collision with allegro (bug 409305)
71 for my_f in $(find "${D}"/usr/share/man/man3 -name "key.3*") ; do
72 mv "${my_f}" "${my_f/key/elektra-key}" || die
73 elog "/usr/share/man/man3/$(basename "${my_f}") installed as $(basename "${my_f/key/elektra-key}")"
74 done
75
76 if ! use static-libs; then
77 find "${D}" -name "*.a" -delete || die
78 fi
79
80 dodoc AUTHORS ChangeLog NEWS README TODO
81 }

  ViewVC Help
Powered by ViewVC 1.1.20