diff options
Diffstat (limited to 'dev-libs/libgusb')
-rw-r--r-- | dev-libs/libgusb/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libgusb/libgusb-0.3.7-r1.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/libgusb/Manifest b/dev-libs/libgusb/Manifest index dd6995b0af87..d28b25b8263d 100644 --- a/dev-libs/libgusb/Manifest +++ b/dev-libs/libgusb/Manifest @@ -1,3 +1,4 @@ DIST libgusb-0.3.7.tar.xz 41844 BLAKE2B e0829430a7c4c9372ebc061ca8245ecd6b30f0922e4e37ae41f7f65055e7339b5a3a882c5526ea5e5663be3b7c1ad71fee7da5cffb501d63bd1cda2b618fd40d SHA512 65a35be62bff689621f418abf045f62f946c67488dd021d363ab252b9b3a2380898ec763b374f7da50901945eda666fdcae7cbfda7e143544175d7ade3ebc20d +EBUILD libgusb-0.3.7-r1.ebuild 1519 BLAKE2B b7e13febbbeb970801988f3a18089b3a2a4619777c5bc06563de08cc9d5ffb38d36835da1a2aed6074717ffea0a20b06393a90800bf6f9ccc6ee74d03a7b05f1 SHA512 4d288fe8bb3292b3de71fe657c1630d86dcb8a1f418d209fdb1f863b92f673192b28c786b7659129dc76e8aec2973173710d7c1ef4aaff295fb5447e9052512f EBUILD libgusb-0.3.7.ebuild 1510 BLAKE2B 1e8783e5c44fd4387692888a39574c8215c4cde0ac99585ea95e6570fd9c7554a8026a8a5572fea0d7b6c273559762cf029e59fb7a136b65b2f4737f68e6610e SHA512 757153b0b1f7356a602b3b5cd47000e620e82c802b95aeec879f6e3470b40957134fe962d8940891a382c69b2ad82d473e9fd5b390bb9436b1afbe7220e29d77 MISC metadata.xml 344 BLAKE2B bd362d7e89ba2d88c2f220ab47593b4ae25bc4ca486bdafda16448407213d7558d7ea807c489e5aafbb8ec83a40e8e339c8ba20d3bfc3957da33a7e7711c6898 SHA512 93166c6dd4d764901c87fc567ab1c67add1c654b7ea1f3326e7144d5c14789bdee2a1e37874f8b6158136e03363372bf1d972f49f96095b0e3e568af89c4af34 diff --git a/dev-libs/libgusb/libgusb-0.3.7-r1.ebuild b/dev-libs/libgusb/libgusb-0.3.7-r1.ebuild new file mode 100644 index 000000000000..304bd87d1a25 --- /dev/null +++ b/dev-libs/libgusb/libgusb-0.3.7-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +VALA_USE_DEPEND="vapigen" + +PYTHON_COMPAT=( python3_{7,8,9} ) +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 ~mips ~ppc ~ppc64 ~riscv ~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/hwdata +" +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) + $(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_src_configure +} |