You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
10 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
10 years ago
|
|
||
|
EAPI=5
|
||
|
GCONF_DEBUG="no"
|
||
|
VALA_USE_DEPEND="vapigen"
|
||
|
|
||
|
inherit eutils gnome2 multilib-minimal vala
|
||
|
|
||
|
DESCRIPTION="GObject wrapper for libusb"
|
||
9 years ago
|
HOMEPAGE="https://github.com/hughsie/libgusb"
|
||
10 years ago
|
SRC_URI="http://people.freedesktop.org/~hughsient/releases/${P}.tar.xz"
|
||
|
|
||
|
LICENSE="LGPL-2.1+"
|
||
|
SLOT="0"
|
||
9 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||
10 years ago
|
|
||
|
IUSE="+introspection static-libs vala"
|
||
|
REQUIRED_USE="vala? ( introspection )"
|
||
|
|
||
9 years ago
|
# Yes, we really need API from dev-libs/libusb-1.0.19, not virtual/libusb
|
||
10 years ago
|
RDEPEND="
|
||
|
>=dev-libs/glib-2.28:2[${MULTILIB_USEDEP}]
|
||
9 years ago
|
virtual/libusb:1[udev,${MULTILIB_USEDEP}]
|
||
|
introspection? ( >=dev-libs/gobject-introspection-1.29:= )
|
||
10 years ago
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
|
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
|
||
|
}
|