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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (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.3: +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.4 # $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/elektra-0.7.1-r3.ebuild,v 1.3 2013/04/13 02:08:44 xmw Exp $
4 xmw 1.1
5     EAPI=4
6    
7 xmw 1.3 inherit autotools eutils multilib
8 xmw 1.1
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     "${FILESDIR}"/${P}-remove-ddefault-link.patch
33    
34     touch config.rpath
35     eautoreconf
36     }
37    
38     src_configure() {
39     # berkeleydb, daemon, fstab, gconf, python do not work
40     econf \
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}
56     }
57    
58 xmw 1.2 src_compile() {
59     dodir /usr/share/man/man3
60     emake
61     }
62    
63 xmw 1.1 src_install() {
64     emake DESTDIR="${D}" install
65    
66     local my_f=""
67 xmw 1.3 #avoid collision with kerberos (bug 403025, 447246)
68     mkdir "${D}"/usr/include/elektra || die
69 xmw 1.1 for my_f in kdb kdbbackend.h kdbos.h kdbtools.h keyset kdb.h \
70     kdbloader.h kdbprivate.h key ; do
71 xmw 1.3 mv "${D}"/usr/include/{,elektra\/}"${my_f}" || die
72     elog "/usr/include/${my_f} installed as elektra/${my_f}"
73 xmw 1.1 done
74 xmw 1.3 sed -e '/^includedir/s/$/\/elektra/' \
75     -i "${D}"/usr/$(get_libdir)/pkgconfig/elektra*.pc || die
76     sed -e '/^Cflags/s/$/\/elektra/' \
77     -i "${D}"/usr/$(get_libdir)/pkgconfig/elektra*.pc || die
78 xmw 1.1
79     #avoid collision with allegro (bug 409305)
80     for my_f in $(find "${D}"/usr/share/man/man3 -name "key.3*") ; do
81     mv "${my_f}" "${my_f/key/elektra-key}" || die
82     elog "/usr/share/man/man3/$(basename "${my_f}") installed as $(basename "${my_f/key/elektra-key}")"
83     done
84    
85     if ! use static-libs; then
86     find "${D}" -name "*.a" -delete || die
87     fi
88    
89     dodoc AUTHORS ChangeLog NEWS README TODO
90     }

  ViewVC Help
Powered by ViewVC 1.1.20