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 (-33 / +26 lines)
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-2 )"
28
26
27
DOCS="doc/AUTHORS doc/CHANGES doc/NEWS doc/README doc/todo/TODO"
28
29
src_prepare() {
30
	# Various upstream patches to fix stuff and make ebuild hacks obsolete
31
	epatch	"${FILESDIR}/${PN}-0.8.4-install-header-correctly.patch"
32
	epatch	"${FILESDIR}/${PN}-0.8.4-fix-man-pages-name-collision.patch"
33
	epatch	"${FILESDIR}/${PN}-0.8.4-fix-dependency-to-correct-man-page.patch"
34
	# Fix manpage install dir once and for all
35
	epatch	"${FILESDIR}/${PN}-0.8.4-finally-fix-manpage-install-dir.patch"
36
}
37
29
src_configure() {
38
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"
39
	local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation"
31
40
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
41
	#move doc files to correct location
37
	sed -e "s/elektra-api/${PF}/" \
42
	sed -e "s/elektra-api/${PF}/" \
38
		-i cmake/ElektraCache.cmake || die
43
		-i cmake/ElektraCache.cmake || die
39
44
40
	use dbus    && my_plugins+=";dbus"
45
	use dbus      && my_plugins+=";dbus"
41
	use doc     && my_plugins+=";doc"
46
	use doc       && my_plugins+=";doc"
42
	use iconv   && my_plugins+=";iconv"
47
	use iconv     && my_plugins+=";iconv"
43
	use inifile && my_plugins+=";simpleini"
48
	use simpleini && my_plugins+=";simpleini"
44
	use syslog  && my_plugins+=";syslog"
49
	use syslog    && my_plugins+=";syslog"
45
	use tcl     && my_plugins+=";tcl"
50
	use tcl       && my_plugins+=";tcl"
46
	use xml     && my_plugins+=";xmltool"
51
	use uname     && my_plugins+=";uname"
47
	use yajl    && my_plugins+=";yajl"
52
	use xml       && my_plugins+=";xmltool"
53
	use yajl      && my_plugins+=";yajl"
48
54
49
	mycmakeargs=(
55
	mycmakeargs=(
50
		"-DPLUGINS=${my_plugins}"
56
		"-DPLUGINS=${my_plugins}"
Lines 59-82 Link Here
59
	cmake-multilib_src_configure
65
	cmake-multilib_src_configure
60
}
66
}
61
67
62
src_compile() {
63
	dodir /usr/share/man/man3
64
	cmake-multilib_src_compile
65
}
66
67
src_install() {
68
src_install() {
68
	cmake-multilib_src_install
69
	cmake-multilib_src_install
69
70
70
	dodoc doc/{AUTHORS,CHANGES,NEWS,README,todo/TODO}
71
72
	if use doc ; then
71
	if use doc ; then
73
		rm -rf "${D}/usr/share/doc/${PF}/man" || die
72
		# Remove bogus files
74
		pushd ${CMAKE_BUILD_DIR}/doc/man/man3
73
		rm -rf "${D}"/usr/share/man/man3elektra/_var_tmp_portage* || die
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
74
	fi
82
}
75
}

Return to bug 497132