diff options
author | Matt Turner <mattst88@gentoo.org> | 2020-07-30 18:10:23 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2020-07-30 18:11:43 -0700 |
commit | c79ae8d8679ff772bd1e173e3c6d16964d5bcee6 (patch) | |
tree | 5d1c2c3a180c67509d3ae2b088cb14b14f93a984 /dev-libs/libgusb/libgusb-0.3.5.ebuild | |
parent | dev-python/twine: x86 stable (bug #733850) (diff) | |
download | gentoo-c79ae8d8679ff772bd1e173e3c6d16964d5bcee6.tar.gz gentoo-c79ae8d8679ff772bd1e173e3c6d16964d5bcee6.tar.bz2 gentoo-c79ae8d8679ff772bd1e173e3c6d16964d5bcee6.zip |
dev-libs/libgusb: Version bump to 0.3.5
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs/libgusb/libgusb-0.3.5.ebuild')
-rw-r--r-- | dev-libs/libgusb/libgusb-0.3.5.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/dev-libs/libgusb/libgusb-0.3.5.ebuild b/dev-libs/libgusb/libgusb-0.3.5.ebuild new file mode 100644 index 000000000000..5ec7e1e7ab8e --- /dev/null +++ b/dev-libs/libgusb/libgusb-0.3.5.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +VALA_USE_DEPEND="vapigen" + +PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_REQ_USE="xml(+)" + +inherit meson multilib-minimal python-any-r1 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="gtk-doc +introspection static-libs test +vala" +REQUIRED_USE="vala? ( introspection )" + +RDEPEND=" + >=dev-libs/glib-2.44.0:2[${MULTILIB_USEDEP}] + virtual/libusb:1[udev,${MULTILIB_USEDEP}] + introspection? ( >=dev-libs/gobject-introspection-1.54:= ) + sys-apps/hwids +" +DEPEND="${RDEPEND}" +BDEPEND=" + $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') + gtk-doc? ( + app-text/docbook-xml-dtd:4.1.2 + app-text/docbook-xml-dtd:4.4 + dev-util/gtk-doc + ) + vala? ( $(vala_depend) ) + virtual/pkgconfig +" + +RESTRICT="!test? ( test )" + +python_check_deps() { + has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]" +} + +src_prepare() { + use vala && vala_src_prepare + default +} + +multilib_src_configure() { + local emesonargs=( + -Ddefault_library=$(usex static-libs both shared) + $(meson_use test tests) + -Dvapi=$(multilib_native_usex vala true false) + -Dusb_ids="${EPREFIX}"/usr/share/misc/usb.ids + -Ddocs=$(multilib_native_usex gtk-doc true false) + -Dintrospection=$(multilib_native_usex introspection true false) + ) + meson_src_configure +} + +multilib_src_compile() { + meson_src_compile +} + +multilib_src_test() { + meson_src_test +} + +multilib_src_install() { + meson_src_install +} |