2013-01-02 19:57:41 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-11-11 01:02:21 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-01-20 22:22:22 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgusb/libgusb-0.1.4.ebuild,v 1.10 2013/01/20 17:09:03 ago Exp $
|
2012-11-11 01:02:21 +04:00
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
|
|
|
VALA_MIN_API_VERSION="0.16"
|
|
|
|
VALA_USE_DEPEND="vapigen"
|
|
|
|
|
|
|
|
inherit eutils 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"
|
2013-01-20 22:22:22 +04:00
|
|
|
KEYWORDS="alpha amd64 ~arm ~hppa ia64 ~mips ppc ppc64 ~sparc x86"
|
2012-11-11 01:02:21 +04:00
|
|
|
IUSE="+introspection static-libs vala"
|
|
|
|
REQUIRED_USE="vala? ( introspection )"
|
|
|
|
|
|
|
|
# udev is effectively a required dependency: configuring with --disable-gudev
|
|
|
|
# causes build failures
|
|
|
|
RDEPEND=">=dev-libs/glib-2.28:2
|
|
|
|
virtual/libusb:1
|
2012-11-29 09:08:17 +04:00
|
|
|
virtual/udev[gudev]
|
2012-11-11 01:02:21 +04:00
|
|
|
introspection? ( >=dev-libs/gobject-introspection-1.29 )"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
app-arch/xz-utils
|
|
|
|
dev-libs/libxslt
|
|
|
|
dev-util/gtk-doc-am
|
|
|
|
virtual/pkgconfig
|
|
|
|
vala? ( $(vala_depend) )"
|
|
|
|
# gtk-doc-am needed for proper api docs installation
|
|
|
|
|
|
|
|
# Tests try to access usb devices in /dev
|
|
|
|
RESTRICT="test"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
use vala && vala_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
$(use_enable introspection) \
|
|
|
|
$(use_enable static-libs static) \
|
|
|
|
$(use_enable vala)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
prune_libtool_files
|
|
|
|
}
|