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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Aug 5 12:03:06 2015 UTC (3 years ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Version bump, add live ebuild, https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/165 (thanks a17r).

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

1 # Copyright 1999-2015 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.7.ebuild,v 1.1 2015/06/09 16:45:41 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/${PV}"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="dbus doc examples iconv ini keytometa simpleini static-libs syslog tcl test +uname xml yajl"
17
18 RDEPEND=">=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}]
19 dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
20 iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
21 uname? ( sys-apps/coreutils )
22 yajl? (
23 <dev-libs/yajl-2[${MULTILIB_USEDEP}]
24 >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}]
25 )"
26 DEPEND="${RDEPEND}
27 sys-devel/libtool
28 doc? ( app-doc/doxygen )"
29
30 DOCS="README.md doc/AUTHORS doc/CHANGES doc/NEWS doc/todo/TODO"
31 # tries to write to user's home directory (and doesn't respect HOME)
32 RESTRICT="test"
33
34 src_prepare() {
35 epatch "${FILESDIR}/${P}-conditional-glob-tests.patch"
36
37 einfo remove bundled libs
38 # TODO: Remove bundled inih from src/plugins/ini (add to portage):
39 # https://code.google.com/p/inih/
40 rm -rf src/external || die
41
42 local tests="augeas fstab hosts ini yajl"
43 if ! use test ; then
44 einfo remove test data
45 for test in ${tests}; do
46 sed -e '/TARGET_TEST_DATA_FOLDER/ s/^#*/#/' \
47 -i src/plugins/${test}/CMakeLists.txt || die
48 done
49 fi
50
51 #move doc files to correct location
52 sed -e "s/elektra-api/${PF}/" \
53 -i cmake/ElektraCache.cmake || die
54
55 cmake-utils_src_prepare
56 }
57
58 multilib_src_configure() {
59 local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation"
60
61 use dbus && my_plugins+=";dbus"
62 use iconv && my_plugins+=";iconv"
63 use ini && my_plugins+=";ini" #bundles inih
64 use keytometa && my_plugins+=";keytometa"
65 use simpleini && my_plugins+=";simpleini"
66 use syslog && my_plugins+=";syslog"
67 use tcl && my_plugins+=";tcl"
68 use uname && my_plugins+=";uname"
69 use xml && my_plugins+=";xmltool"
70 use yajl && my_plugins+=";yajl"
71
72 mycmakeargs=(
73 "-DPLUGINS=${my_plugins}"
74 "-DLATEX_COMPILER=OFF"
75 "-DTARGET_CMAKE_FOLDER=share/cmake/Modules"
76 $(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \
77 || echo -DBUILD_DOCUMENTATION=OFF)
78 $(multilib_is_native_abi && cmake-utils_use examples BUILD_EXAMPLES \
79 || echo -DBUILD_EXAMPLES=OFF)
80 $(cmake-utils_use static-libs BUILD_STATIC)
81 $(cmake-utils_use test BUILD_TESTING)
82 $(cmake-utils_use test ENABLE_TESTING)
83 )
84
85 cmake-utils_src_configure
86 }

  ViewVC Help
Powered by ViewVC 1.1.20