1 |
commit: c958a565bc94069f30ac4654ed66ee2782ee6558 |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 1 15:30:23 2016 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 1 15:50:21 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c958a565 |
7 |
|
8 |
app-admin/elektra: Version bump. |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
app-admin/elektra/Manifest | 1 + |
13 |
app-admin/elektra/elektra-0.8.15.ebuild | 120 +++++++++++++++++++++ |
14 |
.../elektra-0.8.15-conditional-glob-tests.patch | 15 +++ |
15 |
3 files changed, 136 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/elektra/Manifest b/app-admin/elektra/Manifest |
18 |
index 9e6e2a0..d7821bf 100644 |
19 |
--- a/app-admin/elektra/Manifest |
20 |
+++ b/app-admin/elektra/Manifest |
21 |
@@ -1,5 +1,6 @@ |
22 |
DIST elektra-0.7.1.tar.gz 1347524 SHA256 ff90ae274935eac9c9c5c85ca7e66049be46a31d9ef08bc59a59858a15284c8c SHA512 25ca25e95d1a20a79ba97b094dc9630fb791f6653c2bacec751cc51492202831b7d28ae0786081e6be91581245bda3f5b7e2f3b523f7faa6bfb1d97b3d209684 WHIRLPOOL e90e7c126f2467c8ae29e3cffd5d8a6bfa444dfd38edcc8809d49562825aff8ec6c826139da4a2aa09e38935ee63b48674431c7cc27e2a14d372b2b8270b170d |
23 |
DIST elektra-0.8.12.tar.gz 2102450 SHA256 562432bea9455a61ff6e6b3263078ea9b26bef2ed177a04b5f9b181d605bc021 SHA512 be01dbeae5cc680973a7c7917f341506106139c7facc3d3f597f31f7aa91065dcee862121b8704d589f4c6dd916a99cadc9b67e2e9604bec2841b1ebafea89ea WHIRLPOOL 6661d9a337aa71fcc9764f127ec4055b3eb1456d60608c80ac8763aee2d680ab8691a16668da8ef694efb09e2415f58bf4e34a4f1f0e9a7498fecf88f56ce9da |
24 |
+DIST elektra-0.8.15.tar.gz 2338297 SHA256 6a406986cecb8d4a44485ced118ee803bc039b0824b72298e123b4dd47eb0b22 SHA512 86a408dd546b33e3b437f92f415de7aee6a235189f9eab0762b3f44ab4c453ee369a53de10a9f5b0df1b446460b12c57c6b8b77c282648ec2a49f2328d9af13d WHIRLPOOL c4f77903f9340c665f4c484c0b700b048358691873031ae5e62e63f0acf9a5fc5efb3c307331712497c59172ad202780280abfa8b717f523fabda73564a0005e |
25 |
DIST elektra-0.8.3.tar.gz 1092409 SHA256 48fab82a6b1e8f0038c43ae9ade4da25b697d0aa74e39b7b94056ab7febc4be1 SHA512 e298c0515515a3a59fe28e695fd347ce775465d95f95f8d08c54e0223baf24300ec7e876d35fd3a07f2348290fdc7f740557333b26e847d09b4c41df63a1d886 WHIRLPOOL 64673416e96cc0a8f3ffbfc3f88525de3bc1270b381d0642b59f0a4f9d49db5cb296bd10a2839bc2baea82f58dcb6416ada1031553d378cba858d8f94df2d3b9 |
26 |
DIST elektra-0.8.6.tar.gz 1188337 SHA256 e815cf69b070c339784472841aa0ee0b169fab7c78f41cbbd7044f53fa9ed216 SHA512 4df585e07ab461b924a506a8c58bcfbe55e6c1df72710bfdc13760559054ffef6b92f8da94c08f2d8f6a7a7692983d0e92d4ffa98506fcbfc166a71bf989e488 WHIRLPOOL b0dfa2841dcef35e03dfa04e5613576d5d8d74586e959c538399adbebf2d4d4842b15e912845c07f5c309614e33217b112124ec0971accf9fa4e521e1283732a |
27 |
DIST elektra-0.8.7.tar.gz 1566800 SHA256 698ebd41d540eb0c6427c17c13a6a0f03eef94655fbd40655c9b42d612ea1c9b SHA512 37b34abeb392e170f89a97f825153f925d7b11ea980832cb8f1bf8dbd8b098f8bd553b3998728ef84ce4f4c53ea1f420824984fe670f6752c1b50e98821eb07e WHIRLPOOL 7f3f290f9064488fd1c9927a76d3f9e235e144b1ebe91a02b392ee468b2bcc4881906a71b88822a75ac1506200c3c8d5857c31f35bdc8f9832eae67c2647a768 |
28 |
|
29 |
diff --git a/app-admin/elektra/elektra-0.8.15.ebuild b/app-admin/elektra/elektra-0.8.15.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..cbab60a |
32 |
--- /dev/null |
33 |
+++ b/app-admin/elektra/elektra-0.8.15.ebuild |
34 |
@@ -0,0 +1,120 @@ |
35 |
+# Copyright 1999-2015 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=5 |
40 |
+ |
41 |
+inherit cmake-multilib eutils java-pkg-opt-2 |
42 |
+ |
43 |
+DESCRIPTION="Universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" |
44 |
+HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" |
45 |
+SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0/${PV}" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+PLUGIN_IUSE="augeas iconv ini java simpleini syslog systemd tcl +uname xml yajl"; |
51 |
+IUSE="dbus doc qt5 static-libs test ${PLUGIN_IUSE}" |
52 |
+ |
53 |
+RDEPEND="dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
54 |
+ >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] |
55 |
+ augeas? ( app-admin/augeas ) |
56 |
+ dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) |
57 |
+ iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
58 |
+ java? ( >=virtual/jdk-1.8.0 ) |
59 |
+ qt5? ( |
60 |
+ >=dev-qt/qtdeclarative-5.3:5 |
61 |
+ >=dev-qt/qtgui-5.3:5 |
62 |
+ >=dev-qt/qttest-5.3:5 |
63 |
+ >=dev-qt/qtwidgets-5.3:5 |
64 |
+ ) |
65 |
+ uname? ( sys-apps/coreutils ) |
66 |
+ systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] ) |
67 |
+ yajl? ( >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] )" |
68 |
+DEPEND="${RDEPEND} |
69 |
+ doc? ( app-doc/doxygen ) |
70 |
+ test? ( >=dev-cpp/gtest-1.7.0 )" |
71 |
+ |
72 |
+DOCS=( README.md doc/AUTHORS doc/CODING.md doc/NEWS.md doc/todo/TODO ) |
73 |
+# tries to write to user's home directory (and doesn't respect HOME) |
74 |
+RESTRICT="test" |
75 |
+ |
76 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h ) |
77 |
+ |
78 |
+PATCHES=( "${FILESDIR}/${P}"-conditional-glob-tests.patch ) |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ cmake-utils_src_prepare |
82 |
+ |
83 |
+ einfo remove bundled libs |
84 |
+ # TODO: Remove bundled inih from src/plugins/ini (add to portage): |
85 |
+ # https://code.google.com/p/inih/ |
86 |
+ rm -rf src/external || die |
87 |
+ |
88 |
+ # move doc files to correct location |
89 |
+ sed -e "s/elektra-api/${PF}/" \ |
90 |
+ -i cmake/ElektraCache.cmake || die |
91 |
+ |
92 |
+ # avoid useless build time, nothing ends up installed |
93 |
+ comment_add_subdirectory benchmarks |
94 |
+ comment_add_subdirectory examples |
95 |
+} |
96 |
+ |
97 |
+multilib_src_configure() { |
98 |
+ local my_plugins="ALL" |
99 |
+ |
100 |
+ if multilib_is_native_abi ; then |
101 |
+ use augeas || my_plugins+=";-augeas" |
102 |
+ use java || my_plugins+=";-jni" |
103 |
+ else |
104 |
+ my_plugins+=";-augeas;-jni" |
105 |
+ fi |
106 |
+ |
107 |
+ use dbus || my_plugins+=";-dbus" |
108 |
+ use iconv || my_plugins+=";-iconv" |
109 |
+ use ini || my_plugins+=";-ini" # bundles inih |
110 |
+ use simpleini || my_plugins+=";-simpleini" |
111 |
+ use syslog || my_plugins+=";-syslog" |
112 |
+ use systemd || my_plugins+=";-journald" |
113 |
+ use tcl || my_plugins+=";-tcl" |
114 |
+ use uname || my_plugins+=";-uname" |
115 |
+ use xml || my_plugins+=";-xmltool" |
116 |
+ use yajl || my_plugins+=";-yajl" |
117 |
+ |
118 |
+ # Disabling for good (?): |
119 |
+ # counter - Only useful for debugging the plugin framework |
120 |
+ # doc - Explaining basic makeup of a function //bug #514402 |
121 |
+ # noresolver - Does not resolve, but can act as one |
122 |
+ # template - Template for new plugin written in C |
123 |
+ # wresolver - Resolver for non-POSIX, e.g. w32/w64 systems |
124 |
+ my_plugins+=";-counter;-doc;-noresolver;-template;-wresolver" |
125 |
+ |
126 |
+ local my_tools |
127 |
+ |
128 |
+ if multilib_is_native_abi ; then |
129 |
+ my_tools="kdb" |
130 |
+ use qt5 && my_tools+=";qt-gui" |
131 |
+ fi |
132 |
+ |
133 |
+ mycmakeargs=( |
134 |
+ "-DBUILD_SHARED=ON" |
135 |
+ "-DPLUGINS=${my_plugins}" |
136 |
+ "-DTOOLS=${my_tools}" |
137 |
+ "-DLATEX_COMPILER=OFF" |
138 |
+ "-DTARGET_CMAKE_FOLDER=share/cmake/Modules" |
139 |
+ $(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \ |
140 |
+ || echo -DBUILD_DOCUMENTATION=OFF) |
141 |
+ $(cmake-utils_use static-libs BUILD_STATIC) |
142 |
+ $(cmake-utils_use test BUILD_TESTING) |
143 |
+ $(cmake-utils_use test ENABLE_TESTING) |
144 |
+ ) |
145 |
+ |
146 |
+ cmake-utils_src_configure |
147 |
+} |
148 |
+ |
149 |
+multilib_src_install_all() { |
150 |
+ einfo remove test_data |
151 |
+ rm -rvf "${D}/usr/share/${PN}" || die "Failed to remove test_data" |
152 |
+ einfo remove tool_exec |
153 |
+ rm -rvf "${D}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec" |
154 |
+} |
155 |
|
156 |
diff --git a/app-admin/elektra/files/elektra-0.8.15-conditional-glob-tests.patch b/app-admin/elektra/files/elektra-0.8.15-conditional-glob-tests.patch |
157 |
new file mode 100644 |
158 |
index 0000000..413515e |
159 |
--- /dev/null |
160 |
+++ b/app-admin/elektra/files/elektra-0.8.15-conditional-glob-tests.patch |
161 |
@@ -0,0 +1,15 @@ |
162 |
+--- elektra-0.8.15/src/libs/tools/tests/CMakeLists.txt |
163 |
++++ elektra-0.8.15/src/libs/tools/tests/CMakeLists.txt |
164 |
+@@ -4,6 +4,7 @@ |
165 |
+ add_cppheaders (HDR_FILES) |
166 |
+ add_toolheaders (HDR_FILES) |
167 |
+ |
168 |
++if (ENABLE_TESTING) |
169 |
+ include (LibAddTest) |
170 |
+ |
171 |
+ file (GLOB TESTS testtool_*.cpp) |
172 |
+@@ -11,3 +12,4 @@ |
173 |
+ get_filename_component (name ${file} NAME_WE) |
174 |
+ add_gtest (${name} LINK_TOOLS) |
175 |
+ endforeach (file ${TESTS}) |
176 |
++endif (ENABLE_TESTING) |