blob: 8f1c8678b9639530023031e5e91f4379ff0ef3df [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
CROS_WORKON_COMMIT="2684ce6854770e265be7fce57e4428149f1bbbc8"
CROS_WORKON_TREE="b037e2af3bde173bcdd19098161f1e1559b18ef2"
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/dbus-cplusplus"
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"
RDEPEND="
glib? ( >=dev-libs/dbus-glib-0.76 )
glib? ( >=dev-libs/glib-2.19:2 )
>=sys-apps/dbus-1.0
>=dev-cpp/ctemplate-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"
}