blob: bec24457d7a90c855f04fda5345cee6ddc71b164 [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="f5a3f7adcc70714e76eac6a794baff7e5ba84fcd"
inherit toolchain-funcs cros-workon
DESCRIPTION="C++ D-Bus bindings"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/dbus-c%2B%2B"
SRC_URI=""
LICENSE="LGPL-2"
SLOT="1"
IUSE="debug doc +glib"
KEYWORDS="amd64 x86 arm"
CROS_WORKON_PROJECT=dbus-cplusplus
RDEPEND="
glib? ( >=dev-libs/dbus-glib-0.76 )
glib? ( >=dev-libs/glib-2.19:2 )
>=sys-apps/dbus-1.0"
DEPEND="${DEPEND}
doc? ( dev-libs/libxslt )
doc? ( app-doc/doxygen )
dev-util/pkgconfig"
src_prepare() {
./bootstrap || die "failed to bootstrap autotools"
}
src_configure() {
econf \
$(use_enable debug) \
$(use_enable doc doxygen-docs) \
$(use_enable glib glib) || die "failed to congfigure"
}
src_compile() {
emake || die "failed to compile dbus-c++"
}
src_install() {
emake DESTDIR="${D}" install || die "failed to make"
dodoc AUTHORS ChangeLog NEWS README || die "failed to intall doc"
}