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

Contents of /app-admin/elektra/elektra-0.8.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Nov 4 12:01:55 2012 UTC (21 months, 3 weeks ago) by xmw
Branch: MAIN
Changes since 1.1: +2 -2 lines
Update HOMEPAGE

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

1 # Copyright 1999-2012 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.8.3.ebuild,v 1.1 2012/11/04 10:40:57 xmw Exp $
4
5 EAPI=4
6
7 inherit cmake-utils 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}/releases/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="dbus doc examples iconv inifile simpleini static-libs syslog tcl test xml yajl"
17
18 RDEPEND="dev-libs/libxml2"
19 DEPEND="${RDEPEND}
20 sys-devel/libtool
21 doc? ( app-doc/doxygen )
22 iconv? ( virtual/libiconv )
23 test? ( dev-libs/libxml2[static-libs] )
24 yajl? ( <dev-libs/yajl-2 )"
25
26 src_configure() {
27 local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation"
28
29 #fix QA issues with upstream patches
30 epatch "${FILESDIR}/${P}-introduce-attributes.patch"
31 epatch "${FILESDIR}/${P}-fix-yajl-if-user-config.patch"
32
33 #move doc files to correct location
34 sed -e "s/elektra-api/${PF}/" \
35 -i cmake/ElektraCache.cmake || die
36
37 use dbus && my_plugins+=";dbus"
38 use doc && my_plugins+=";doc"
39 use iconv && my_plugins+=";iconv"
40 use inifile && my_plugins+=";simpleini"
41 use syslog && my_plugins+=";syslog"
42 use tcl && my_plugins+=";tcl"
43 use xml && my_plugins+=";xmltool"
44 use yajl && my_plugins+=";yajl"
45
46 local mycmakeargs=(
47 "-DPLUGINS=${my_plugins}"
48 "-DLATEX_COMPILER=OFF"
49 $(cmake-utils_use doc BUILD_DOCUMENTATION)
50 $(cmake-utils_use examples BUILD_EXAMPLES)
51 $(cmake-utils_use static-libs BUILD_STATIC)
52 $(cmake-utils_use test BUILD_TESTING)
53 )
54
55 cmake-utils_src_configure
56 }
57
58 src_install() {
59 cmake-utils_src_install
60
61 dodoc doc/{AUTHORS,CHANGES,NEWS,README,todo/TODO}
62
63 if use doc ; then
64 rm -rf "${D}/usr/share/doc/${PF}/man" || die
65 pushd ${CMAKE_BUILD_DIR}/doc/man/man3
66 local my_f
67 for my_f in *.3 ; do
68 newman ${my_f} ${PN}-${my_f}
69 elog "installed /usr/share/man/man3/${my_f} as ${PN}-${my_f}"
70 done
71 popd
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20