blob: 65cb7dbea2b76b9459f579ef4a569c32bcac7807 [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="40cdaccf673aec850816cdd1b535c5ab3a1f3bf7"
CROS_WORKON_TREE="860a508ab8dba4e63abecc47b2d67b3b906f6301"
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_with doc{,s}) \
$(use_with test{,s})
}
src_install() {
default
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/libqmi-glib.la
}