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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 5 12:03:06 2015 UTC (2 years, 10 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
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: $
4
5 EAPI=5
6
7 inherit cmake-multilib eutils java-pkg-opt-2
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 PLUGIN_IUSE="augeas iconv ini java simpleini syslog systemd tcl +uname xml yajl";
17 IUSE="dbus doc qt5 static-libs test ${PLUGIN_IUSE}"
18
19 RDEPEND="dev-libs/libltdl:0[${MULTILIB_USEDEP}]
20 >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}]
21 augeas? ( app-admin/augeas )
22 dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
23 iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
24 java? ( >=virtual/jdk-1.8.0 )
25 qt5? (
26 >=dev-qt/qtdeclarative-5.3
27 >=dev-qt/qtgui-5.3
28 >=dev-qt/qttest-5.3
29 >=dev-qt/qtwidgets-5.3
30 )
31 uname? ( sys-apps/coreutils )
32 systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] )
33 yajl? ( >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] )"
34 DEPEND="${RDEPEND}
35 doc? ( app-doc/doxygen )
36 test? ( >=dev-cpp/gtest-1.7.0 )"
37
38 DOCS=( README.md doc/AUTHORS doc/CODING.md doc/NEWS.md doc/todo/TODO )
39 # tries to write to user's home directory (and doesn't respect HOME)
40 RESTRICT="test"
41
42 MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h )
43
44 PATCHES=( "${FILESDIR}/${PN}"-0.8.11-conditional-glob-tests.patch )
45
46 src_prepare() {
47 cmake-utils_src_prepare
48
49 einfo remove bundled libs
50 # TODO: Remove bundled inih from src/plugins/ini (add to portage):
51 # https://code.google.com/p/inih/
52 rm -rf src/external || die
53
54 # move doc files to correct location
55 sed -e "s/elektra-api/${PF}/" \
56 -i cmake/ElektraCache.cmake || die
57
58 # avoid useless build time, nothing ends up installed
59 comment_add_subdirectory benchmarks
60 comment_add_subdirectory examples
61 }
62
63 multilib_src_configure() {
64 local my_plugins="ALL"
65
66 if multilib_is_native_abi ; then
67 use augeas || my_plugins+=";-augeas"
68 use java || my_plugins+=";-jni"
69 else
70 my_plugins+=";-augeas;-jni"
71 fi
72
73 use dbus || my_plugins+=";-dbus"
74 use iconv || my_plugins+=";-iconv"
75 use ini || my_plugins+=";-ini" # bundles inih
76 use simpleini || my_plugins+=";-simpleini"
77 use syslog || my_plugins+=";-syslog"
78 use systemd || my_plugins+=";-journald"
79 use tcl || my_plugins+=";-tcl"
80 use uname || my_plugins+=";-uname"
81 use xml || my_plugins+=";-xmltool"
82 use yajl || my_plugins+=";-yajl"
83
84 # Disabling for good (?):
85 # counter - Only useful for debugging the plugin framework
86 # doc - Explaining basic makeup of a function //bug #514402
87 # noresolver - Does not resolve, but can act as one
88 # template - Template for new plugin written in C
89 # wresolver - Resolver for non-POSIX, e.g. w32/w64 systems
90 my_plugins+=";-counter;-doc;-noresolver;-template;-wresolver"
91
92 local my_tools
93
94 if multilib_is_native_abi ; then
95 my_tools="kdb"
96 use qt5 && my_tools+=";qt-gui"
97 fi
98
99 mycmakeargs=(
100 "-DBUILD_SHARED=ON"
101 "-DPLUGINS=${my_plugins}"
102 "-DTOOLS=${my_tools}"
103 "-DLATEX_COMPILER=OFF"
104 "-DTARGET_CMAKE_FOLDER=share/cmake/Modules"
105 $(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \
106 || echo -DBUILD_DOCUMENTATION=OFF)
107 $(cmake-utils_use static-libs BUILD_STATIC)
108 $(cmake-utils_use test BUILD_TESTING)
109 $(cmake-utils_use test ENABLE_TESTING)
110 )
111
112 cmake-utils_src_configure
113 }
114
115 multilib_src_install_all() {
116 einfo remove test_data
117 rm -rvf "${D}/usr/share/${PN}" || die "Failed to remove test_data"
118 einfo remove tool_exec
119 rm -rvf "${D}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec"
120 }

  ViewVC Help
Powered by ViewVC 1.1.20