Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 497132 | Differences between
and this patch

Collapse All | Expand All

(-)elektra-0.8.3-r2.ebuild (-42 / +17 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2013 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.3-r2.ebuild,v 1.1 2013/04/22 14:17:35 xmw Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/elektra-0.8.3-r2.ebuild,v 1.1 2013/04/22 14:17:35 xmw Exp $
4
4
Lines 13-50 Link Here
13
LICENSE="BSD"
13
LICENSE="BSD"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~x86"
15
KEYWORDS="~amd64 ~x86"
16
IUSE="dbus doc examples iconv inifile simpleini static-libs syslog tcl test xml yajl"
16
IUSE="dbus doc examples iconv simpleini static-libs syslog tcl test +uname xml yajl"
17
17
18
RDEPEND="!amd64? ( dev-libs/libxml2 )
18
RDEPEND="dev-libs/libxml2[${MULTILIB_USEDEP}]
19
	amd64? (
19
	uname? ( sys-apps/coreutils )"
20
		abi_x86_64? ( dev-libs/libxml2 )
21
		abi_x86_32? ( app-emulation/emul-linux-x86-baselibs ) )"
22
DEPEND="${RDEPEND}
20
DEPEND="${RDEPEND}
23
	!amd64? ( sys-devel/libtool )
21
	!amd64? ( sys-devel/libtool )
24
	doc? ( app-doc/doxygen )
22
	doc? ( app-doc/doxygen )
25
	iconv? ( virtual/libiconv )
23
	iconv? ( virtual/libiconv )
26
	!amd64? ( test? ( dev-libs/libxml2[static-libs] ) )
24
	test? ( dev-libs/libxml2[static-libs,${MULTILIB_USEDEP}] )
27
	yajl? ( <dev-libs/yajl-2 )"
25
	yajl? ( dev-libs/yajl[${MULTILIB_USEDEP}] )"
26
27
DOCS="doc/AUTHORS doc/CHANGES doc/NEWS doc/README doc/todo/TODO"
28
28
29
src_configure() {
29
src_configure() {
30
	local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation"
30
	local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation"
31
31
32
	#fix QA issues with upstream patches
33
	epatch "${FILESDIR}/${P}-introduce-attributes.patch"
34
	epatch "${FILESDIR}/${P}-fix-yajl-if-user-config.patch"
35
36
	#move doc files to correct location
32
	#move doc files to correct location
37
	sed -e "s/elektra-api/${PF}/" \
33
	sed -e "s/elektra-api/${PF}/" \
38
		-i cmake/ElektraCache.cmake || die
34
		-i cmake/ElektraCache.cmake || die
39
35
40
	use dbus    && my_plugins+=";dbus"
36
	use dbus      && my_plugins+=";dbus"
41
	use doc     && my_plugins+=";doc"
37
	use doc       && my_plugins+=";doc"
42
	use iconv   && my_plugins+=";iconv"
38
	use iconv     && my_plugins+=";iconv"
43
	use inifile && my_plugins+=";simpleini"
39
	use simpleini && my_plugins+=";simpleini"
44
	use syslog  && my_plugins+=";syslog"
40
	use syslog    && my_plugins+=";syslog"
45
	use tcl     && my_plugins+=";tcl"
41
	use tcl       && my_plugins+=";tcl"
46
	use xml     && my_plugins+=";xmltool"
42
	use uname     && my_plugins+=";uname"
47
	use yajl    && my_plugins+=";yajl"
43
	use xml       && my_plugins+=";xmltool"
44
	use yajl      && my_plugins+=";yajl"
48
45
49
	mycmakeargs=(
46
	mycmakeargs=(
50
		"-DPLUGINS=${my_plugins}"
47
		"-DPLUGINS=${my_plugins}"
Lines 58-82 Link Here
58
55
59
	cmake-multilib_src_configure
56
	cmake-multilib_src_configure
60
}
57
}
61
62
src_compile() {
63
	dodir /usr/share/man/man3
64
	cmake-multilib_src_compile
65
}
66
67
src_install() {
68
	cmake-multilib_src_install
69
70
	dodoc doc/{AUTHORS,CHANGES,NEWS,README,todo/TODO}
71
72
	if use doc ; then
73
		rm -rf "${D}/usr/share/doc/${PF}/man" || die
74
		pushd ${CMAKE_BUILD_DIR}/doc/man/man3
75
		local my_f
76
		for my_f in *.3 ; do
77
			newman ${my_f} ${PN}-${my_f}
78
			elog "installed /usr/share/man/man3/${my_f} as ${PN}-${my_f}"
79
		done
80
		popd
81
	fi
82
}

Return to bug 497132