summaryrefslogtreecommitdiff
path: root/dev-libs/libgusb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-11 20:18:01 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-11 20:18:01 +0100
commitb8a68ff14101189bc5330d9afa620b8c45212032 (patch)
treee2780fd4ddf66f7527b06b80d215dbbde65fc038 /dev-libs/libgusb
parent5adfd733728a4f14df5665f4c2a604a7356e5f19 (diff)
gentoo auto-resync : 11:06:2023 - 20:18:01
Diffstat (limited to 'dev-libs/libgusb')
-rw-r--r--dev-libs/libgusb/Manifest2
-rw-r--r--dev-libs/libgusb/libgusb-0.4.6.ebuild72
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-libs/libgusb/Manifest b/dev-libs/libgusb/Manifest
index e2ceaec4f462..a221fb79a66f 100644
--- a/dev-libs/libgusb/Manifest
+++ b/dev-libs/libgusb/Manifest
@@ -1,3 +1,5 @@
DIST libgusb-0.4.5.tar.xz 50384 BLAKE2B 3844d0ec189292e4fed4520d818d095255ddaafa9052ec083a5df3171fa36a8261802526483228412fd69f073444ba422cd16c9d07d5f38770cb14a3ffcd23c6 SHA512 8b91ebfd7b6e07f1ab104f78c638bd28875e3ba1e47360307be16af9b2e4fb598e9911f50181590b5e08608a14557d15bc5dfaa6804a6056b6ee6669b2f6f81e
+DIST libgusb-0.4.6.tar.xz 50660 BLAKE2B 4a2d0f502609f487ca84d970a157cb35c5fc1676a074a868ecb269f2028c39d2ad581a156054987095eb869d7edd7572921b188005262dce12ae3b83271f14dc SHA512 586650f1694cdac50d08f53b117686c38a1be19468ebbf56baa7fc13482f07e0f67c854807b827b6410b094409e117e46afd8cf2706f1390076ad34978b871c1
EBUILD libgusb-0.4.5.ebuild 1751 BLAKE2B f49456e1399bf293963cc70fed0dbbb752f863e0e2a0ada3ca6abac248ec29fade79a93c319209056d3bed733d2f7e5ddbb0be4ca4a7f9da49389a110804b5be SHA512 af4baa9c26f819c60bb4a98cf5ebd0844d2ad9896b6de35223971da4db7f3da372931723b86c5073d396fb3576afb5e9ff1aa99a760f4401c6c225f85e3e05f2
+EBUILD libgusb-0.4.6.ebuild 1759 BLAKE2B 66dbd068b925a1df0ea5897289bb3b4c54393fb39274dadc4bde145d6ab8ac26b24aae7b1e2c62461cebe10c43de2cc78bb2b55f41398611e773d84e3bb8ec8e SHA512 07ae73c496c674ecfd8198fe67f83474a7e07df365e6f8d1a511862a0be7ac81f5a4ff3cce693f549b8a8efcfe49d10925114ecb884a114b6a1ee36f703f00f3
MISC metadata.xml 344 BLAKE2B bd362d7e89ba2d88c2f220ab47593b4ae25bc4ca486bdafda16448407213d7558d7ea807c489e5aafbb8ec83a40e8e339c8ba20d3bfc3957da33a7e7711c6898 SHA512 93166c6dd4d764901c87fc567ab1c67add1c654b7ea1f3326e7144d5c14789bdee2a1e37874f8b6158136e03363372bf1d972f49f96095b0e3e568af89c4af34
diff --git a/dev-libs/libgusb/libgusb-0.4.6.ebuild b/dev-libs/libgusb/libgusb-0.4.6.ebuild
new file mode 100644
index 000000000000..6dd274c99bd4
--- /dev/null
+++ b/dev-libs/libgusb/libgusb-0.4.6.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+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://github.com/hughsie/libgusb/releases/download/${PV}/${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?]
+ 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
+}