1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit bash-completion-r1 eutils ltprune multilib-minimal
7 DESCRIPTION="D-Bus bindings for glib"
8 HOMEPAGE="https://dbus.freedesktop.org/"
9 SRC_URI="https://dbus.freedesktop.org/releases/${PN}/${P}.tar.gz"
11 LICENSE="|| ( GPL-2 AFL-2.1 )"
13 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris"
14 IUSE="debug static-libs test"
15 RESTRICT="!test? ( test )"
18 >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
19 >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
20 >=sys-apps/dbus-1.8[${MULTILIB_USEDEP}]
23 >=dev-util/glib-utils-2.40
24 >=dev-util/gtk-doc-am-1.14
29 DOCS=( AUTHORS ChangeLog HACKING NEWS README )
32 # out of sources build dir for make check
33 export TBD="${BUILD_DIR}-tests"
36 multilib_src_configure() {
38 --localstatedir="${EPREFIX}"/var
39 --enable-bash-completion
41 $(use_enable debug asserts)
42 $(use_enable static-libs static)
45 ECONF_SOURCE="${S}" econf "${myconf[@]}"
47 ln -s "${S}"/doc/reference/html doc/reference/html || die #460042
53 einfo "Running configure in ${TBD}"
54 ECONF_SOURCE="${S}" econf \
56 $(use_enable test checks) \
57 $(use_enable test tests) \
58 $(use_enable test asserts)
62 multilib_src_compile() {
68 einfo "Running make in ${TBD}"
79 multilib_src_install_all() {
82 newbashcomp "${ED}"/etc/bash_completion.d/dbus-bash-completion.sh dbus-send
83 rm -rf "${ED}"/etc/bash_completion.d || die