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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Jul 30 22:36:36 2014 UTC (5 years, 6 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop old versions

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

1 xmw 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 xmw 1.2 # $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 xmw 1.1
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="!amd64? ( dev-libs/libxml2 )
19     amd64? (
20     abi_x86_64? ( dev-libs/libxml2 )
21     abi_x86_32? ( app-emulation/emul-linux-x86-baselibs ) )"
22     DEPEND="${RDEPEND}
23     !amd64? ( sys-devel/libtool )
24     amd64? ( abi_x86_64? ( sys-devel/libtool ) )
25     iconv? ( virtual/libiconv )
26     !amd64? ( test? ( dev-libs/libxml2[static-libs] ) )"
27    
28     src_prepare() {
29     einfo 'Removing bundled libltdl'
30     rm -rf libltdl || die
31    
32     epatch \
33     "${FILESDIR}"/${P}-test.patch \
34     "${FILESDIR}"/${P}-ltdl.patch \
35     "${FILESDIR}"/${P}-automake-1.12.patch \
36     "${FILESDIR}"/${P}-remove-ddefault-link.patch
37    
38     touch config.rpath
39     eautoreconf
40     }
41    
42     src_configure() {
43     # berkeleydb, daemon, fstab, gconf, python do not work
44     # avoid collision with kerberos (bug 403025, 447246)
45     local myeconfargs=(
46     --enable-filesys
47     --enable-hosts
48     --enable-ini
49     --enable-passwd
50     --disable-berkeleydb
51     --disable-fstab
52     --disable-gconf
53     --disable-daemon
54     --enable-cpp
55     --disable-python
56     $(use_enable gcov)
57     $(use_enable iconv)
58     $(use_enable static-libs static)
59     --with-docdir=/usr/share/doc/${PF}
60     --with-develdocdir=/usr/share/doc/${PF}a
61     --includedir=/usr/include/${PN}
62     )
63     autotools-multilib_src_configure
64     dodir /usr/share/man/man3
65     }
66    
67     src_install() {
68     autotools-multilib_src_install
69    
70     #avoid collision with allegro (bug 409305)
71     local my_f=""
72     for my_f in $(find "${D}"/usr/share/man/man3 -name "key.3*") ; do
73     mv "${my_f}" "${my_f/key/elektra-key}" || die
74     elog "/usr/share/man/man3/$(basename "${my_f}") installed as $(basename "${my_f/key/elektra-key}")"
75     done
76    
77     if ! use static-libs; then
78     find "${D}" -name "*.a" -delete || die
79     fi
80    
81     dodoc AUTHORS ChangeLog NEWS README TODO
82     }

  ViewVC Help
Powered by ViewVC 1.1.20