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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jul 30 22:36:36 2014 UTC (4 years, 1 month ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop old versions

(Portage version: 2.2.10/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-r1.ebuild,v 1.2 2013/04/13 01:48:20 xmw Exp $
4
5 EAPI=5
6
7 inherit cmake-multilib 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 mycmakeargs=(
47 "-DPLUGINS=${my_plugins}"
48 "-DLATEX_COMPILER=OFF"
49 "-DTARGET_CMAKE_FOLDER=share/cmake/Modules"
50 $(cmake-utils_use doc BUILD_DOCUMENTATION)
51 $(cmake-utils_use examples BUILD_EXAMPLES)
52 $(cmake-utils_use static-libs BUILD_STATIC)
53 $(cmake-utils_use test BUILD_TESTING)
54 )
55
56 cmake-multilib_src_configure
57 }
58
59 src_compile() {
60 dodir /usr/share/man/man3
61 cmake-multilib_src_compile
62 }
63
64 src_install() {
65 cmake-multilib_src_install
66
67 dodoc doc/{AUTHORS,CHANGES,NEWS,README,todo/TODO}
68
69 if use doc ; then
70 rm -rf "${D}/usr/share/doc/${PF}/man" || die
71 pushd ${CMAKE_BUILD_DIR}/doc/man/man3
72 local my_f
73 for my_f in *.3 ; do
74 newman ${my_f} ${PN}-${my_f}
75 elog "installed /usr/share/man/man3/${my_f} as ${PN}-${my_f}"
76 done
77 popd
78 fi
79 }

  ViewVC Help
Powered by ViewVC 1.1.20