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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/Attic/elektra-0.7.1-r3.ebuild,v 1.2 2013/04/13 01:48:20 xmw Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/Attic/elektra-0.7.1-r3.ebuild,v 1.3 2013/04/13 02:08:44 xmw Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7inherit autotools eutils 7inherit autotools eutils multilib
8 8
9DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" 9DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism"
10HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" 10HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra"
11SRC_URI="ftp://ftp.markus-raab.org/${PN}/${P}.tar.gz" 11SRC_URI="ftp://ftp.markus-raab.org/${PN}/${P}.tar.gz"
12 12
62 62
63src_install() { 63src_install() {
64 emake DESTDIR="${D}" install 64 emake DESTDIR="${D}" install
65 65
66 local my_f="" 66 local my_f=""
67 #avoid collision with kerberos (bug 403025) 67 #avoid collision with kerberos (bug 403025, 447246)
68 mkdir "${D}"/usr/include/elektra || die
68 for my_f in kdb kdbbackend.h kdbos.h kdbtools.h keyset kdb.h \ 69 for my_f in kdb kdbbackend.h kdbos.h kdbtools.h keyset kdb.h \
69 kdbloader.h kdbprivate.h key ; do 70 kdbloader.h kdbprivate.h key ; do
70 mv "${D}"/usr/include/{,elektra-}"${my_f}" || die 71 mv "${D}"/usr/include/{,elektra\/}"${my_f}" || die
71 elog "/usr/include/${my_f} installed as elektra-${my_f}" 72 elog "/usr/include/${my_f} installed as elektra/${my_f}"
72 done 73 done
73 sed -e '/^#include/s:kdbos.h:elektra-kdbos.h:' \ 74 sed -e '/^includedir/s/$/\/elektra/' \
74 -i "${D}"/usr/include/elektra-kdb.h || die 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
75 78
76 #avoid collision with allegro (bug 409305) 79 #avoid collision with allegro (bug 409305)
77 for my_f in $(find "${D}"/usr/share/man/man3 -name "key.3*") ; do 80 for my_f in $(find "${D}"/usr/share/man/man3 -name "key.3*") ; do
78 mv "${my_f}" "${my_f/key/elektra-key}" || die 81 mv "${my_f}" "${my_f/key/elektra-key}" || die
79 elog "/usr/share/man/man3/$(basename "${my_f}") installed as $(basename "${my_f/key/elektra-key}")" 82 elog "/usr/share/man/man3/$(basename "${my_f}") installed as $(basename "${my_f/key/elektra-key}")"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20