blob: fc2623154a380efc7f6cf747dd6bc0ff2ecd93a3 [file] [log] [blame]
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Based on gentoo's modemmanager ebuild
EAPI="4"
CROS_WORKON_COMMIT="a517dbf4b278e281c11e2ce216d783306cf4a850"
CROS_WORKON_TREE="ce98306969b37d8e2be2d06097a392cbe361a4bf"
CROS_WORKON_PROJECT="chromiumos/third_party/libqmi"
inherit eutils autotools cros-workon
DESCRIPTION="QMI modem protocol helper library"
HOMEPAGE="http://cgit.freedesktop.org/libqmi/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="doc static-libs test"
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) \
$(use_with test{,s})
}
src_install() {
default
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/libqmi-glib.la
}