Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2019 Gentoo Authors |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=7 |
5 |
VALA_USE_DEPEND="vapigen" |
6 |
|
7 |
inherit meson multilib-minimal vala |
8 |
|
9 |
DESCRIPTION="GObject wrapper for libusb" |
10 |
HOMEPAGE="https://github.com/hughsie/libgusb" |
11 |
SRC_URI="https://people.freedesktop.org/~hughsient/releases/${P}.tar.xz" |
12 |
|
13 |
LICENSE="LGPL-2.1+" |
14 |
SLOT="0" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
16 |
|
17 |
IUSE="+introspection static-libs vala gtk-doc" |
18 |
REQUIRED_USE="vala? ( introspection )" |
19 |
|
20 |
RDEPEND=" |
21 |
>=dev-libs/glib-2.44:2[${MULTILIB_USEDEP}] |
22 |
virtual/libusb:1[udev,${MULTILIB_USEDEP}] |
23 |
introspection? ( >=dev-libs/gobject-introspection-1.29:= ) |
24 |
" |
25 |
DEPEND="${RDEPEND} |
26 |
virtual/pkgconfig[${MULTILIB_USEDEP}] |
27 |
vala? ( $(vala_depend) ) |
28 |
" |
29 |
BDEPEND="${DEPEND} |
30 |
gtk-doc? ( dev-util/gtk-doc ) |
31 |
" |
32 |
|
33 |
# Tests try to access usb devices in /dev |
34 |
RESTRICT="test" |
35 |
|
36 |
src_prepare() { |
37 |
use vala && vala_src_prepare |
38 |
default |
39 |
} |
40 |
|
41 |
multilib_src_configure() { |
42 |
local emesonargs=( |
43 |
$(meson_use vala vapi) |
44 |
$(meson_use gtk-doc docs) |
45 |
$(meson_use introspection) |
46 |
$(meson_use static-libs static) |
47 |
) |
48 |
meson_src_configure |
49 |
} |