diff options
author | Matt Turner <mattst88@gentoo.org> | 2022-10-18 21:43:03 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-10-18 21:44:29 -0400 |
commit | f6eb92ef60fbcfaa9605fa0e0aca1a6674554980 (patch) | |
tree | ac2a903d6afed1bd506e6c63f8d7deab015aa667 /dev-libs | |
parent | dev-libs/libtompoly: fix build w/ Clang 16, fix LICENSE (diff) | |
download | gentoo-f6eb92ef60fbcfaa9605fa0e0aca1a6674554980.tar.gz gentoo-f6eb92ef60fbcfaa9605fa0e0aca1a6674554980.tar.bz2 gentoo-f6eb92ef60fbcfaa9605fa0e0aca1a6674554980.zip |
dev-libs/libgusb: Version bump to 0.4.2
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libgusb/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libgusb/libgusb-0.4.2.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-libs/libgusb/Manifest b/dev-libs/libgusb/Manifest index b0c78bbda0fe..c5b9a7433b0f 100644 --- a/dev-libs/libgusb/Manifest +++ b/dev-libs/libgusb/Manifest @@ -1,2 +1,3 @@ DIST libgusb-0.3.10.tar.xz 42972 BLAKE2B 4c49aa15cbbbb56d5ee5b896adb3e34b45332cd846933fd3aa86a645e7d897418d0e7a30d9972980e6527f1e60fc6e579f5df119708a12b3e504ff695c94d922 SHA512 66bd7c292cb9df2799b02acd48dc4b07794e7339ea1bd6473ea512dfec1b8e7e58abbd40f16a2a4805240cc8df4aec050335edb4f4178ad12ac5275438b8ae59 DIST libgusb-0.4.1.tar.xz 50384 BLAKE2B e6613758bb24710ce8326e12a6fb6a8708135c0c826a7b8f87fa95df5dba04bf5155c2daf42713d5f74478ca457f795c2f553acbdef1a8b1df0019f7832b019f SHA512 de0a74d75b00699e6b113c0ec334f7385e892317b2814047f7990fed361d78d6acdb2148ded9e602cf3537ff87e8c10017da2315923db4cb3f5c29f75418e9b8 +DIST libgusb-0.4.2.tar.xz 48440 BLAKE2B 6241271efe40a8653e417ffcbd9b7ba0463c5a1e289a39fb8aab6b6c70da75973af1bcb8afba0a6c3a1535a7015e7d0f121f22ca1dddcd74d57722af3c95c312 SHA512 c3e8e7a21f1e2f355cda5dddbde7235f9c48d4ff96c2d012e48df5bd7e1216ed41f3cc81f4a215ceead8b6e8cf0d04a85916043adfd074e543c041dbe63acd48 diff --git a/dev-libs/libgusb/libgusb-0.4.2.ebuild b/dev-libs/libgusb/libgusb-0.4.2.ebuild new file mode 100644 index 000000000000..ae1b186b47a5 --- /dev/null +++ b/dev-libs/libgusb/libgusb-0.4.2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_REQ_USE="xml(+)" + +inherit meson-multilib 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 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +IUSE="gtk-doc +introspection test +vala" +REQUIRED_USE=" + gtk-doc? ( introspection ) + vala? ( introspection ) +" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.44.0:2[${MULTILIB_USEDEP}] + virtual/libusb:1[udev,${MULTILIB_USEDEP}] + >=dev-libs/json-glib-1.1.1[${MULTILIB_USEDEP}] + introspection? ( >=dev-libs/gobject-introspection-1.54:= ) + sys-apps/hwdata +" +DEPEND="${RDEPEND} + test? ( >=dev-util/umockdev-0.17.7[${MULTILIB_USEDEP}] )" +BDEPEND=" + $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') + gtk-doc? ( dev-util/gi-docgen ) + vala? ( $(vala_depend) ) + virtual/pkgconfig +" + +python_check_deps() { + python_has_version "dev-python/setuptools[${PYTHON_USEDEP}]" +} + +src_prepare() { + default + use vala && vala_setup +} + +multilib_src_configure() { + local emesonargs=( + -Ddefault_library=shared + $(meson_use test tests) + $(meson_native_use_bool vala vapi) + -Dusb_ids="${EPREFIX}"/usr/share/hwdata/usb.ids + $(meson_native_use_bool gtk-doc docs) + $(meson_native_use_bool introspection) + $(meson_feature test umockdev) + + ) + meson_src_configure +} + +multilib_src_install_all() { + einstalldocs + + if use gtk-doc; then + mkdir -p "${ED}"/usr/share/gtk-doc/ || die + mv "${ED}"/usr/share/{doc,gtk-doc}/libgusb || die + fi +} |