/[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.5 - (show annotations) (download)
Mon Apr 22 10:50:07 2013 UTC (6 years, 10 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2013 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.4 2013/04/13 01:48:20 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_compile() {
58 dodir /usr/share/man/man3
59 emake
60 }
61
62 src_install() {
63 emake DESTDIR="${D}" install
64
65 local my_f=""
66 #avoid collision with kerberos (bug 403025)
67 for my_f in kdb kdbbackend.h kdbos.h kdbtools.h keyset kdb.h \
68 kdbloader.h kdbprivate.h key ; do
69 mv "${D}"/usr/include/{,elektra-}"${my_f}" || die
70 elog "/usr/include/${my_f} installed as elektra-${my_f}"
71 done
72 sed -e '/^#include/s:kdbos.h:elektra-kdbos.h:' \
73 -i "${D}"/usr/include/elektra-kdb.h || die
74
75 #avoid collision with allegro (bug 409305)
76 for my_f in $(find "${D}"/usr/share/man/man3 -name "key.3*") ; do
77 mv "${my_f}" "${my_f/key/elektra-key}" || die
78 elog "/usr/share/man/man3/$(basename "${my_f}") installed as $(basename "${my_f/key/elektra-key}")"
79 done
80
81 if ! use static-libs; then
82 find "${D}" -name "*.a" -delete || die
83 fi
84
85 dodoc AUTHORS ChangeLog NEWS README TODO
86 }

  ViewVC Help
Powered by ViewVC 1.1.20