net-libs/rpcsvc-proto: arm stable wrt bug #725002
[gentoo.git] / net-libs / libmbim / libmbim-1.12.2.ebuild
1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI="5"
5
6 inherit multilib
7 if [[ ${PV} == "9999" ]] ; then
8         inherit git-r3 autotools
9         EGIT_REPO_URI="https://anongit.freedesktop.org/git/libmbim/libmbim.git"
10 else
11         KEYWORDS="~alpha ~amd64 ~arm ~mips ppc64 ~x86"
12         SRC_URI="https://www.freedesktop.org/software/libmbim/${P}.tar.xz"
13 fi
14
15 DESCRIPTION="MBIM modem protocol helper library"
16 HOMEPAGE="https://cgit.freedesktop.org/libmbim/"
17
18 LICENSE="LGPL-2"
19 SLOT="0"
20 IUSE="static-libs"
21
22 RDEPEND=">=dev-libs/glib-2.32:2
23         dev-libs/libgudev:="
24 DEPEND="${RDEPEND}
25         dev-util/glib-utils
26         dev-util/gtk-doc-am
27         virtual/pkgconfig"
28 [[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
29
30 src_prepare() {
31         [[ -e configure ]] || eautoreconf
32 }
33
34 src_configure() {
35         econf \
36                 --disable-more-warnings \
37                 --disable-gtk-doc \
38                 $(use_enable static{-libs,})
39 }
40
41 src_install() {
42         default
43         use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
44 }