1 |
commit: 76304796933053e87317764fcf08c84652d3cc4e |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 9 00:17:53 2017 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 9 00:18:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76304796 |
7 |
|
8 |
app-admin/elektra: Version bump (thanks Nils, bug 639014). |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
app-admin/elektra/Manifest | 1 + |
13 |
app-admin/elektra/elektra-0.8.20.ebuild | 116 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 117 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/elektra/Manifest b/app-admin/elektra/Manifest |
17 |
index 1d0b438526b..33752845bd6 100644 |
18 |
--- a/app-admin/elektra/Manifest |
19 |
+++ b/app-admin/elektra/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST elektra-0.8.16.tar.gz 2405443 BLAKE2B 221f254b240f4f38fb0975749003f8b4c9fbfbd28df2b42b99c8e1fa7795cb4a1565b77cc424b6180abd481326ccab4c8f554749150e36f0ab01146aa72575f8 SHA512 b225e61379907365a423ea75ec7138e5257bb78c526bb05a1ec21f66a52eb4bad9e6f1eb23209d700670b21b86166497b47c3bc46bc9d45f6d366cd544afc326 |
22 |
+DIST elektra-0.8.20.tar.gz 4740032 BLAKE2B e76ad93eadbbec9bb273da4f7bab5622d47deebdab6736c430543159c0754f3b96696954891962b60716d5b969e64bf5ef6886a6239abee8b98888aae09fcdd9 SHA512 11cc88329f84ad4d6337132d76479d26f2d9c12f7a939558a79ea96540129096ea0a26ffda3705c01a2c7c749453588bb1654a4c07cca3374e4076ce768c5848 |
23 |
|
24 |
diff --git a/app-admin/elektra/elektra-0.8.20.ebuild b/app-admin/elektra/elektra-0.8.20.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..43f955bb844 |
27 |
--- /dev/null |
28 |
+++ b/app-admin/elektra/elektra-0.8.20.ebuild |
29 |
@@ -0,0 +1,116 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit cmake-multilib eutils java-pkg-opt-2 |
36 |
+ |
37 |
+DESCRIPTION="Framework to store config parameters in hierarchical key-value pairs" |
38 |
+HOMEPAGE="https://www.libelektra.org" |
39 |
+SRC_URI="https://www.libelektra.org/ftp/elektra/releases/${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="BSD" |
42 |
+SLOT="0/${PV}" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+PLUGIN_IUSE="augeas iconv ini java simpleini syslog systemd tcl +uname xml yajl"; |
45 |
+IUSE="dbus doc qt5 static-libs test ${PLUGIN_IUSE}" |
46 |
+ |
47 |
+RDEPEND="dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
48 |
+ >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] |
49 |
+ augeas? ( app-admin/augeas ) |
50 |
+ dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) |
51 |
+ iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
52 |
+ java? ( >=virtual/jdk-1.8.0 ) |
53 |
+ qt5? ( |
54 |
+ dev-qt/qtdeclarative:5 |
55 |
+ dev-qt/qtgui:5 |
56 |
+ dev-qt/qttest:5 |
57 |
+ dev-qt/qtwidgets:5 |
58 |
+ ) |
59 |
+ uname? ( sys-apps/coreutils ) |
60 |
+ systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] ) |
61 |
+ yajl? ( >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] )" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ doc? ( app-doc/doxygen ) |
64 |
+ test? ( >=dev-cpp/gtest-1.7.0 )" |
65 |
+ |
66 |
+DOCS=( README.md doc/AUTHORS doc/CODING.md doc/todo/TODO ) |
67 |
+# tries to write to user's home directory (and doesn't respect HOME) |
68 |
+RESTRICT="test" |
69 |
+ |
70 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h ) |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ cmake-utils_src_prepare |
74 |
+ |
75 |
+ einfo remove bundled libs |
76 |
+ # TODO: Remove bundled inih from src/plugins/ini (add to portage): |
77 |
+ # https://code.google.com/p/inih/ |
78 |
+ rm -rf src/external || die |
79 |
+ |
80 |
+ # move doc files to correct location |
81 |
+ sed -e "s/elektra-api/${PF}/" \ |
82 |
+ -i cmake/ElektraCache.cmake || die |
83 |
+ |
84 |
+ # avoid useless build time, nothing ends up installed |
85 |
+ cmake_comment_add_subdirectory benchmarks |
86 |
+ cmake_comment_add_subdirectory examples |
87 |
+} |
88 |
+ |
89 |
+multilib_src_configure() { |
90 |
+ local my_plugins="ALL" |
91 |
+ |
92 |
+ if multilib_is_native_abi ; then |
93 |
+ use augeas || my_plugins+=";-augeas" |
94 |
+ use java || my_plugins+=";-jni" |
95 |
+ else |
96 |
+ my_plugins+=";-augeas;-jni" |
97 |
+ fi |
98 |
+ |
99 |
+ use dbus || my_plugins+=";-dbus" |
100 |
+ use iconv || my_plugins+=";-iconv" |
101 |
+ use ini || my_plugins+=";-ini" # bundles inih |
102 |
+ use simpleini || my_plugins+=";-simpleini" |
103 |
+ use syslog || my_plugins+=";-syslog" |
104 |
+ use systemd || my_plugins+=";-journald" |
105 |
+ use tcl || my_plugins+=";-tcl" |
106 |
+ use uname || my_plugins+=";-uname" |
107 |
+ use xml || my_plugins+=";-xmltool" |
108 |
+ use yajl || my_plugins+=";-yajl" |
109 |
+ |
110 |
+ # Disabling for good (?): |
111 |
+ # counter - Only useful for debugging the plugin framework |
112 |
+ # doc - Explaining basic makeup of a function //bug #514402 |
113 |
+ # noresolver - Does not resolve, but can act as one |
114 |
+ # template - Template for new plugin written in C |
115 |
+ # wresolver - Resolver for non-POSIX, e.g. w32/w64 systems |
116 |
+ my_plugins+=";-counter;-doc;-noresolver;-template;-wresolver" |
117 |
+ |
118 |
+ local my_tools |
119 |
+ |
120 |
+ if multilib_is_native_abi ; then |
121 |
+ my_tools="kdb" |
122 |
+ use qt5 && my_tools+=";qt-gui" |
123 |
+ fi |
124 |
+ |
125 |
+ local mycmakeargs=( |
126 |
+ -DBUILD_PDF=OFF |
127 |
+ -DBUILD_SHARED=ON |
128 |
+ -DBUILD_STATIC=$(usex static-libs) |
129 |
+ -DBUILD_TESTING=$(usex test) |
130 |
+ -DENABLE_TESTING=$(usex test) |
131 |
+ -DPLUGINS=${my_plugins} |
132 |
+ -DTOOLS=${my_tools} |
133 |
+ -DBUILD_DOCUMENTATION=$(multilib_is_native_abi && usex doc || echo no) |
134 |
+ -DTARGET_CMAKE_FOLDER=share/cmake/Modules |
135 |
+ ) |
136 |
+ |
137 |
+ cmake-utils_src_configure |
138 |
+} |
139 |
+ |
140 |
+multilib_src_install_all() { |
141 |
+ einfo remove test_data |
142 |
+ rm -rvf "${ED%/}/usr/share/${PN}" || die "Failed to remove test_data" |
143 |
+ einfo remove tool_exec |
144 |
+ rm -rvf "${ED%/}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec" |
145 |
+} |