Lines 1-6
Link Here
|
1 |
# Copyright 1999-2014 Gentoo Foundation |
1 |
# Copyright 1999-2014 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/elektra-0.8.6.ebuild,v 1.1 2014/07/30 22:49:14 xmw Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
|
6 |
|
Lines 8-19
Link Here
|
8 |
|
8 |
|
9 |
DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" |
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" |
10 |
HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" |
11 |
SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz" |
11 |
|
|
|
12 |
if [[ ${PV} == "9999" ]] ; then |
13 |
EGIT_REPO_URI="git://gitorious.org/elektra-initiative/libelektra.git" |
14 |
inherit git-2 |
15 |
SRC_URI="" |
16 |
#KEYWORDS="" |
17 |
else |
18 |
SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz" |
19 |
KEYWORDS="~amd64 ~x86" |
20 |
fi |
12 |
|
21 |
|
13 |
LICENSE="BSD" |
22 |
LICENSE="BSD" |
14 |
SLOT="0" |
23 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~x86" |
24 |
IUSE="dbus doc examples iconv ini keytometa simpleini static-libs syslog tcl test +uname xml yajl" |
16 |
IUSE="dbus doc examples iconv simpleini static-libs syslog tcl test +uname xml yajl" |
|
|
17 |
|
25 |
|
18 |
RDEPEND=">=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] |
26 |
RDEPEND=">=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] |
19 |
dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) |
27 |
dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) |
Lines 27-38
Link Here
|
27 |
sys-devel/libtool |
35 |
sys-devel/libtool |
28 |
doc? ( app-doc/doxygen )" |
36 |
doc? ( app-doc/doxygen )" |
29 |
|
37 |
|
30 |
DOCS="doc/AUTHORS doc/CHANGES doc/NEWS doc/README doc/todo/TODO" |
38 |
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) |
39 |
# tries to write to user's home directory (and doesn't respect HOME) |
32 |
RESTRICT="test" |
40 |
RESTRICT="test" |
33 |
|
41 |
|
34 |
src_prepare() { |
42 |
src_prepare() { |
35 |
|
43 |
|
|
|
44 |
epatch "${FILESDIR}/${PN}-0.8.7-conditional-glob-tests.patch" |
45 |
|
46 |
einfo remove bundled libs |
47 |
# TODO: Remove bundled inih from src/plugins/ini (add to portage): |
48 |
# https://code.google.com/p/inih/ |
49 |
rm -rf src/external || die |
50 |
|
51 |
local tests="augeas fstab hosts ini yajl" |
52 |
if ! use test ; then |
53 |
einfo remove test data |
54 |
for test in ${tests}; do |
55 |
sed -e '/TARGET_TEST_DATA_FOLDER/ s/^#*/#/' \ |
56 |
-i src/plugins/${test}/CMakeLists.txt || die |
57 |
done |
58 |
fi |
59 |
|
36 |
#move doc files to correct location |
60 |
#move doc files to correct location |
37 |
sed -e "s/elektra-api/${PF}/" \ |
61 |
sed -e "s/elektra-api/${PF}/" \ |
38 |
-i cmake/ElektraCache.cmake || die |
62 |
-i cmake/ElektraCache.cmake || die |
Lines 44-51
Link Here
|
44 |
local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation" |
68 |
local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation" |
45 |
|
69 |
|
46 |
use dbus && my_plugins+=";dbus" |
70 |
use dbus && my_plugins+=";dbus" |
47 |
use doc && my_plugins+=";doc" |
71 |
# use doc && my_plugins+=";doc" #bug 514402; examples? |
48 |
use iconv && my_plugins+=";iconv" |
72 |
use iconv && my_plugins+=";iconv" |
|
|
73 |
use ini && my_plugins+=";ini" #bundles inih - baaad |
74 |
use keytometa && my_plugins+=";keytometa" |
49 |
use simpleini && my_plugins+=";simpleini" |
75 |
use simpleini && my_plugins+=";simpleini" |
50 |
use syslog && my_plugins+=";syslog" |
76 |
use syslog && my_plugins+=";syslog" |
51 |
use tcl && my_plugins+=";tcl" |
77 |
use tcl && my_plugins+=";tcl" |
Lines 63-68
Link Here
|
63 |
|| echo -DBUILD_EXAMPLES=OFF) |
89 |
|| echo -DBUILD_EXAMPLES=OFF) |
64 |
$(cmake-utils_use static-libs BUILD_STATIC) |
90 |
$(cmake-utils_use static-libs BUILD_STATIC) |
65 |
$(cmake-utils_use test BUILD_TESTING) |
91 |
$(cmake-utils_use test BUILD_TESTING) |
|
|
92 |
$(cmake-utils_use test ENABLE_TESTING) |
66 |
) |
93 |
) |
67 |
|
94 |
|
68 |
cmake-utils_src_configure |
95 |
cmake-utils_src_configure |