| # 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="401826248937ffc93b2a5f468235e0b8b5247747" |
| CROS_WORKON_TREE="c1fcb1a1e99f1ea48382cf1ea19885d57b204a9c" |
| 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="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. |
| [[ "${ARCH}" != "arm" ]] && emake check |
| } |
| |
| src_install() { |
| default |
| use static-libs || rm -f "${ED}"/usr/$(get_libdir)/libqmi-glib.la |
| } |