blob: bc37c358b4e3fd2fa9d7b78bd93d328c12adfb08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgusb/libgusb-0.2.4.ebuild,v 1.4 2015/03/29 10:33:25 jer Exp $
EAPI=5
GCONF_DEBUG="no"
VALA_USE_DEPEND="vapigen"
inherit eutils gnome2 multilib-minimal vala
DESCRIPTION="GObject wrapper for libusb"
HOMEPAGE="https://gitorious.org/gusb/"
SRC_URI="http://people.freedesktop.org/~hughsient/releases/${P}.tar.xz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86"
IUSE="+introspection static-libs vala"
REQUIRED_USE="vala? ( introspection )"
RDEPEND="
>=dev-libs/glib-2.28:2[${MULTILIB_USEDEP}]
virtual/libusb:1[${MULTILIB_USEDEP}]
virtual/libgudev:=[${MULTILIB_USEDEP}]
introspection? ( >=dev-libs/gobject-introspection-1.29 )
"
DEPEND="${RDEPEND}
app-arch/xz-utils
dev-libs/libxslt
dev-util/gtk-doc-am
virtual/pkgconfig[${MULTILIB_USEDEP}]
vala? ( $(vala_depend) )
"
# Tests try to access usb devices in /dev
RESTRICT="test"
multilib_src_configure() {
ECONF_SOURCE=${S} \
gnome2_src_configure \
$(multilib_native_use_enable introspection) \
$(use_enable static-libs static) \
$(multilib_native_use_enable vala)
if multilib_is_native_abi; then
ln -s "${S}"/docs/api/html docs/api/html || die
fi
}
multilib_src_install() {
gnome2_src_install
}
|