/[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.4 - (show annotations) (download)
Mon Apr 22 10:50:07 2013 UTC (6 years, 9 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Drop old

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

1 # Copyright 1999-2013 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.3 2013/04/13 01:48:20 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_compile() {
59 dodir /usr/share/man/man3
60 cmake-utils_src_compile
61 }
62
63 src_install() {
64 cmake-utils_src_install
65
66 dodoc doc/{AUTHORS,CHANGES,NEWS,README,todo/TODO}
67
68 if use doc ; then
69 rm -rf "${D}/usr/share/doc/${PF}/man" || die
70 pushd ${CMAKE_BUILD_DIR}/doc/man/man3
71 local my_f
72 for my_f in *.3 ; do
73 newman ${my_f} ${PN}-${my_f}
74 elog "installed /usr/share/man/man3/${my_f} as ${PN}-${my_f}"
75 done
76 popd
77 fi
78 }

  ViewVC Help
Powered by ViewVC 1.1.20