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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jun 22 12:38:39 2014 UTC (5 years, 7 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Backport multilib support as =0.7* is needed by media-libs/oyranos.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2014 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-r4.ebuild,v 1.1 2013/04/22 14:17:35 xmw Exp $
4
5 EAPI=5
6
7 inherit autotools autotools-multilib eutils multilib
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[${MULTILIB_USEDEP}]"
19 DEPEND="${RDEPEND}
20 sys-devel/libtool[${MULTILIB_USEDEP}]
21 iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )"
22
23 src_prepare() {
24 einfo 'Removing bundled libltdl'
25 rm -rf libltdl || die
26
27 epatch \
28 "${FILESDIR}"/${P}-test.patch \
29 "${FILESDIR}"/${P}-ltdl.patch \
30 "${FILESDIR}"/${P}-automake-1.12.patch \
31 "${FILESDIR}"/${P}-remove-ddefault-link.patch
32
33 touch config.rpath
34 eautoreconf
35 }
36
37 src_configure() {
38 # berkeleydb, daemon, fstab, gconf, python do not work
39 # avoid collision with kerberos (bug 403025, 447246)
40 local myeconfargs=(
41 --enable-filesys
42 --enable-hosts
43 --enable-ini
44 --enable-passwd
45 --disable-berkeleydb
46 --disable-fstab
47 --disable-gconf
48 --disable-daemon
49 --enable-cpp
50 --disable-python
51 $(use_enable gcov)
52 $(use_enable iconv)
53 $(use_enable static-libs static)
54 --with-docdir=/usr/share/doc/${PF}
55 --with-develdocdir=/usr/share/doc/${PF}a
56 --includedir=/usr/include/${PN}
57 )
58 autotools-multilib_src_configure
59 dodir /usr/share/man/man3
60 }
61
62 src_compile() {
63 autotools-multilib_src_compile LIBLTDL=-lltdl
64 }
65
66 src_install() {
67 autotools-multilib_src_install
68
69 #avoid collision with allegro (bug 409305)
70 local my_f=""
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