# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 VALA_USE_DEPEND="vapigen" inherit meson multilib-minimal vala DESCRIPTION="GObject wrapper for libusb" HOMEPAGE="https://github.com/hughsie/libgusb" SRC_URI="https://people.freedesktop.org/~hughsient/releases/${P}.tar.xz" LICENSE="LGPL-2.1+" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" IUSE="+introspection static-libs vala gtk-doc" REQUIRED_USE="vala? ( introspection )" RDEPEND=" >=dev-libs/glib-2.44:2[${MULTILIB_USEDEP}] virtual/libusb:1[udev,${MULTILIB_USEDEP}] introspection? ( >=dev-libs/gobject-introspection-1.29:= ) " DEPEND="${RDEPEND} virtual/pkgconfig[${MULTILIB_USEDEP}] vala? ( $(vala_depend) ) " BDEPEND="${DEPEND} gtk-doc? ( dev-util/gtk-doc ) " # Tests try to access usb devices in /dev RESTRICT="test" src_prepare() { use vala && vala_src_prepare default } multilib_src_configure() { local emesonargs=( $(meson_use vala vapi) $(meson_use gtk-doc docs) $(meson_use introspection) $(meson_use static-libs static) ) meson_src_configure }