blob: da0b985d852e66ed2e420df5bb4a9034396379d0 [file] [log] [blame]
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
CROS_WORKON_COMMIT="f5b21aa783a23155e1e09ad437fac0b4928d76af"
CROS_WORKON_TREE="93e5b6c982eeb7601f61314e93cdb12142c1b90c"
CROS_WORKON_PROJECT="chromiumos/third_party/libmbim"
inherit autotools cros-workon multilib
DESCRIPTION="MBIM modem protocol helper library"
HOMEPAGE="http://cgit.freedesktop.org/libmbim/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
IUSE="doc static-libs"
RDEPEND=">=dev-libs/glib-2.32"
DEPEND="${RDEPEND}
doc? ( dev-util/gtk-doc )
virtual/pkgconfig"
src_prepare() {
gtkdocize
eautoreconf
}
src_configure() {
econf \
$(use_enable static{-libs,}) \
$(use_enable {,gtk-}doc)
}
src_test() {
# TODO(benchan): Run unit tests for arm via qemu-arm.
if [[ "${ARCH}" != "arm" ]]; then
emake GCONV_PATH="${SYSROOT}"/usr/$(get_libdir)/gconv check
fi
}
src_install() {
default
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/libmbim-glib.la
}