git: 72681b828f1c - main - devel/libgusb: Update to 0.4.9

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Thu, 04 Jul 2024 18:28:31 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=72681b828f1c2ef38c142046787e3b88b743eb63

commit 72681b828f1c2ef38c142046787e3b88b743eb63
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-07-04 18:14:28 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-07-04 18:28:23 +0000

    devel/libgusb: Update to 0.4.9
    
    * Use upstream release archive instead of USE_GITHUB
    
    Based on patch submitted by Eric Camachat <eric@camachat.org>
    
    PR:             270799
    Approved by:    portmgr (maintainer timeout, 2+ months)
---
 devel/libgusb/Makefile  |  20 +++--
 devel/libgusb/distinfo  |   6 +-
 devel/libgusb/pkg-plist | 219 +++++++++++++++++++++++++++++++++++++++++++-----
 3 files changed, 210 insertions(+), 35 deletions(-)

diff --git a/devel/libgusb/Makefile b/devel/libgusb/Makefile
index fff606ada2f7..e04e7fc4a3b3 100644
--- a/devel/libgusb/Makefile
+++ b/devel/libgusb/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	libgusb
-PORTVERSION=	0.3.10
-PORTREVISION=	1
+DISTVERSION=	0.4.9
 CATEGORIES=	devel
+MASTER_SITES=	https://github.com/hughsie/${PORTNAME}/releases/download/${DISTVERSION}/
 
 MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	GUsb is a GObject wrapper for libusb1
@@ -11,22 +11,24 @@ LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	${PY_SETUPTOOLS}
+LIB_DEPENDS=	libjson-glib-1.0.so:devel/json-glib
+TEST_DEPENDS=	hwdata>0:misc/hwdata
 
-USES=		gnome meson pkgconfig python:build
-
-USE_GITHUB=	yes
-GH_ACCOUNT=	hughsie
-
+USES=		gnome meson pkgconfig python:build tar:xz
 USE_GNOME=	glib20 introspection:build
 
 OPTIONS_DEFINE=		DOCS VAPI
 OPTIONS_DEFAULT=	DOCS VAPI
 OPTIONS_SUB=		yes
 
-DOCS_BUILD_DEPENDS=	gtk-doc>0:textproc/gtk-doc
+MESON_ARGS=		-Dumockdev=disabled \
+			-Dusb_ids=${LOCALBASE}/share/hwdata/hwdata/usb.ids
+
+DOCS_BUILD_DEPENDS=	gtk-doc>0:textproc/gtk-doc \
+			${PYTHON_PKGNAMEPREFIX}gi-docgen>=0:textproc/py-gi-docgen@${PY_FLAVOR}
 DOCS_MESON_TRUE=	docs
 
-VAPI_MESON_TRUE=	vapi
 VAPI_USES=		vala:build
+VAPI_MESON_TRUE=	vapi
 
 .include <bsd.port.mk>
diff --git a/devel/libgusb/distinfo b/devel/libgusb/distinfo
index 4c0209299402..7973014a0c3f 100644
--- a/devel/libgusb/distinfo
+++ b/devel/libgusb/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1651004219
-SHA256 (hughsie-libgusb-0.3.10_GH0.tar.gz) = e699b06f4809f9d166b13dc9f5812b0dd026591d3cae90ec5483aa2687f3b80b
-SIZE (hughsie-libgusb-0.3.10_GH0.tar.gz) = 50290
+TIMESTAMP = 1718556835
+SHA256 (libgusb-0.4.9.tar.xz) = 9df5ef301d6a4b361002aa52cce1165a87a89744055879bdbab31e7e86f1e846
+SIZE (libgusb-0.4.9.tar.xz) = 51672
diff --git a/devel/libgusb/pkg-plist b/devel/libgusb/pkg-plist
index 8ee1520d05fd..54aeb53c52a4 100644
--- a/devel/libgusb/pkg-plist
+++ b/devel/libgusb/pkg-plist
@@ -1,8 +1,10 @@
 bin/gusbcmd
 include/gusb-1/gusb.h
-include/gusb-1/gusb/gusb-autocleanups.h
+include/gusb-1/gusb/gusb-bos-descriptor-private.h
+include/gusb-1/gusb/gusb-bos-descriptor.h
 include/gusb-1/gusb/gusb-context-private.h
 include/gusb-1/gusb/gusb-context.h
+include/gusb-1/gusb/gusb-device-event.h
 include/gusb-1/gusb/gusb-device-list.h
 include/gusb-1/gusb/gusb-device-private.h
 include/gusb-1/gusb/gusb-device.h
@@ -19,27 +21,198 @@ lib/libgusb.so.2
 lib/libgusb.so.2.0.10
 libdata/pkgconfig/gusb.pc
 share/gir-1.0/GUsb-1.0.gir
-%%DOCS%%share/gtk-doc/html/gusb/faq.html
-%%DOCS%%share/gtk-doc/html/gusb/gusb-GUsbContext.html
-%%DOCS%%share/gtk-doc/html/gusb/gusb-GUsbDevice.html
-%%DOCS%%share/gtk-doc/html/gusb/gusb-GUsbDeviceList.html
-%%DOCS%%share/gtk-doc/html/gusb/gusb-gusb-endpoint.html
-%%DOCS%%share/gtk-doc/html/gusb/gusb-gusb-interface.html
-%%DOCS%%share/gtk-doc/html/gusb/gusb-gusb-source.html
-%%DOCS%%share/gtk-doc/html/gusb/gusb-gusb-version.html
-%%DOCS%%share/gtk-doc/html/gusb/gusb.devhelp2
-%%DOCS%%share/gtk-doc/html/gusb/home.png
-%%DOCS%%share/gtk-doc/html/gusb/index.html
-%%DOCS%%share/gtk-doc/html/gusb/introduction.html
-%%DOCS%%share/gtk-doc/html/gusb/left-insensitive.png
-%%DOCS%%share/gtk-doc/html/gusb/left.png
-%%DOCS%%share/gtk-doc/html/gusb/libgusb-helpers.html
-%%DOCS%%share/gtk-doc/html/gusb/libgusb.html
-%%DOCS%%share/gtk-doc/html/gusb/right-insensitive.png
-%%DOCS%%share/gtk-doc/html/gusb/right.png
-%%DOCS%%share/gtk-doc/html/gusb/specification.html
-%%DOCS%%share/gtk-doc/html/gusb/style.css
-%%DOCS%%share/gtk-doc/html/gusb/up-insensitive.png
-%%DOCS%%share/gtk-doc/html/gusb/up.png
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Black.woff
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Black.woff2
+%%DOCS%%share/doc/libgusb/RedHatDisplay-BlackItalic.woff
+%%DOCS%%share/doc/libgusb/RedHatDisplay-BlackItalic.woff2
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Bold.woff
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Bold.woff2
+%%DOCS%%share/doc/libgusb/RedHatDisplay-BoldItalic.woff
+%%DOCS%%share/doc/libgusb/RedHatDisplay-BoldItalic.woff2
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Italic.woff
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Italic.woff2
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Medium.woff
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Medium.woff2
+%%DOCS%%share/doc/libgusb/RedHatDisplay-MediumItalic.woff
+%%DOCS%%share/doc/libgusb/RedHatDisplay-MediumItalic.woff2
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Regular.woff
+%%DOCS%%share/doc/libgusb/RedHatDisplay-Regular.woff2
+%%DOCS%%share/doc/libgusb/RedHatText-Bold.woff
+%%DOCS%%share/doc/libgusb/RedHatText-Bold.woff2
+%%DOCS%%share/doc/libgusb/RedHatText-BoldItalic.woff
+%%DOCS%%share/doc/libgusb/RedHatText-BoldItalic.woff2
+%%DOCS%%share/doc/libgusb/RedHatText-Italic.woff
+%%DOCS%%share/doc/libgusb/RedHatText-Italic.woff2
+%%DOCS%%share/doc/libgusb/RedHatText-Medium.woff
+%%DOCS%%share/doc/libgusb/RedHatText-Medium.woff2
+%%DOCS%%share/doc/libgusb/RedHatText-MediumItalic.woff
+%%DOCS%%share/doc/libgusb/RedHatText-MediumItalic.woff2
+%%DOCS%%share/doc/libgusb/RedHatText-Regular.woff
+%%DOCS%%share/doc/libgusb/RedHatText-Regular.woff2
+%%DOCS%%share/doc/libgusb/SourceCodePro-It.ttf.woff
+%%DOCS%%share/doc/libgusb/SourceCodePro-Regular.ttf.woff
+%%DOCS%%share/doc/libgusb/SourceCodePro-Semibold.ttf.woff
+%%DOCS%%share/doc/libgusb/class.BosDescriptor.html
+%%DOCS%%share/doc/libgusb/class.Context.html
+%%DOCS%%share/doc/libgusb/class.Device.html
+%%DOCS%%share/doc/libgusb/class.DeviceEvent.html
+%%DOCS%%share/doc/libgusb/class.DeviceList.html
+%%DOCS%%share/doc/libgusb/class.Endpoint.html
+%%DOCS%%share/doc/libgusb/class.Interface.html
+%%DOCS%%share/doc/libgusb/classes_hierarchy.html
+%%DOCS%%share/doc/libgusb/const.MAJOR_VERSION.html
+%%DOCS%%share/doc/libgusb/const.MICRO_VERSION.html
+%%DOCS%%share/doc/libgusb/const.MINOR_VERSION.html
+%%DOCS%%share/doc/libgusb/ctor.Context.new.html
+%%DOCS%%share/doc/libgusb/ctor.DeviceList.new.html
+%%DOCS%%share/doc/libgusb/enum.ContextError.html
+%%DOCS%%share/doc/libgusb/enum.DeviceClassCode.html
+%%DOCS%%share/doc/libgusb/enum.DeviceDirection.html
+%%DOCS%%share/doc/libgusb/enum.DeviceError.html
+%%DOCS%%share/doc/libgusb/enum.DeviceLangid.html
+%%DOCS%%share/doc/libgusb/enum.DeviceRecipient.html
+%%DOCS%%share/doc/libgusb/enum.DeviceRequestType.html
+%%DOCS%%share/doc/libgusb/error.SourceError.html
+%%DOCS%%share/doc/libgusb/flags.ContextFlags.html
+%%DOCS%%share/doc/libgusb/flags.DeviceClaimInterfaceFlags.html
+%%DOCS%%share/doc/libgusb/fonts.css
+%%DOCS%%share/doc/libgusb/func.CHECK_VERSION.html
+%%DOCS%%share/doc/libgusb/func.strerror.html
+%%DOCS%%share/doc/libgusb/func.version_string.html
+%%DOCS%%share/doc/libgusb/fzy.js
+%%DOCS%%share/doc/libgusb/go-up-symbolic.png
+%%DOCS%%share/doc/libgusb/index.html
+%%DOCS%%share/doc/libgusb/index.json
+%%DOCS%%share/doc/libgusb/libgusb.devhelp2
+%%DOCS%%share/doc/libgusb/main.js
+%%DOCS%%share/doc/libgusb/method.BosDescriptor.get_capability.html
+%%DOCS%%share/doc/libgusb/method.BosDescriptor.get_extra.html
+%%DOCS%%share/doc/libgusb/method.Context.enumerate.html
+%%DOCS%%share/doc/libgusb/method.Context.find_by_bus_address.html
+%%DOCS%%share/doc/libgusb/method.Context.find_by_platform_id.html
+%%DOCS%%share/doc/libgusb/method.Context.find_by_vid_pid.html
+%%DOCS%%share/doc/libgusb/method.Context.get_devices.html
+%%DOCS%%share/doc/libgusb/method.Context.get_flags.html
+%%DOCS%%share/doc/libgusb/method.Context.get_hotplug_poll_interval.html
+%%DOCS%%share/doc/libgusb/method.Context.get_main_context.html
+%%DOCS%%share/doc/libgusb/method.Context.get_source.html
+%%DOCS%%share/doc/libgusb/method.Context.load.html
+%%DOCS%%share/doc/libgusb/method.Context.load_with_tag.html
+%%DOCS%%share/doc/libgusb/method.Context.save.html
+%%DOCS%%share/doc/libgusb/method.Context.save_with_tag.html
+%%DOCS%%share/doc/libgusb/method.Context.set_debug.html
+%%DOCS%%share/doc/libgusb/method.Context.set_flags.html
+%%DOCS%%share/doc/libgusb/method.Context.set_hotplug_poll_interval.html
+%%DOCS%%share/doc/libgusb/method.Context.set_main_context.html
+%%DOCS%%share/doc/libgusb/method.Context.wait_for_replug.html
+%%DOCS%%share/doc/libgusb/method.Device.add_tag.html
+%%DOCS%%share/doc/libgusb/method.Device.bulk_transfer.html
+%%DOCS%%share/doc/libgusb/method.Device.bulk_transfer_async.html
+%%DOCS%%share/doc/libgusb/method.Device.bulk_transfer_finish.html
+%%DOCS%%share/doc/libgusb/method.Device.claim_interface.html
+%%DOCS%%share/doc/libgusb/method.Device.clear_events.html
+%%DOCS%%share/doc/libgusb/method.Device.close.html
+%%DOCS%%share/doc/libgusb/method.Device.control_transfer.html
+%%DOCS%%share/doc/libgusb/method.Device.control_transfer_async.html
+%%DOCS%%share/doc/libgusb/method.Device.control_transfer_finish.html
+%%DOCS%%share/doc/libgusb/method.Device.get_address.html
+%%DOCS%%share/doc/libgusb/method.Device.get_bos_descriptor.html
+%%DOCS%%share/doc/libgusb/method.Device.get_bos_descriptors.html
+%%DOCS%%share/doc/libgusb/method.Device.get_bus.html
+%%DOCS%%share/doc/libgusb/method.Device.get_children.html
+%%DOCS%%share/doc/libgusb/method.Device.get_configuration.html
+%%DOCS%%share/doc/libgusb/method.Device.get_configuration_index.html
+%%DOCS%%share/doc/libgusb/method.Device.get_created.html
+%%DOCS%%share/doc/libgusb/method.Device.get_custom_index.html
+%%DOCS%%share/doc/libgusb/method.Device.get_device_class.html
+%%DOCS%%share/doc/libgusb/method.Device.get_device_protocol.html
+%%DOCS%%share/doc/libgusb/method.Device.get_device_subclass.html
+%%DOCS%%share/doc/libgusb/method.Device.get_events.html
+%%DOCS%%share/doc/libgusb/method.Device.get_hid_descriptor_default.html
+%%DOCS%%share/doc/libgusb/method.Device.get_hid_descriptors.html
+%%DOCS%%share/doc/libgusb/method.Device.get_interface.html
+%%DOCS%%share/doc/libgusb/method.Device.get_interfaces.html
+%%DOCS%%share/doc/libgusb/method.Device.get_manufacturer_index.html
+%%DOCS%%share/doc/libgusb/method.Device.get_parent.html
+%%DOCS%%share/doc/libgusb/method.Device.get_pid.html
+%%DOCS%%share/doc/libgusb/method.Device.get_pid_as_str.html
+%%DOCS%%share/doc/libgusb/method.Device.get_platform_id.html
+%%DOCS%%share/doc/libgusb/method.Device.get_port_number.html
+%%DOCS%%share/doc/libgusb/method.Device.get_product_index.html
+%%DOCS%%share/doc/libgusb/method.Device.get_release.html
+%%DOCS%%share/doc/libgusb/method.Device.get_serial_number_index.html
+%%DOCS%%share/doc/libgusb/method.Device.get_spec.html
+%%DOCS%%share/doc/libgusb/method.Device.get_string_descriptor.html
+%%DOCS%%share/doc/libgusb/method.Device.get_string_descriptor_bytes.html
+%%DOCS%%share/doc/libgusb/method.Device.get_string_descriptor_bytes_full.html
+%%DOCS%%share/doc/libgusb/method.Device.get_tags.html
+%%DOCS%%share/doc/libgusb/method.Device.get_vid.html
+%%DOCS%%share/doc/libgusb/method.Device.get_vid_as_str.html
+%%DOCS%%share/doc/libgusb/method.Device.has_tag.html
+%%DOCS%%share/doc/libgusb/method.Device.interrupt_transfer.html
+%%DOCS%%share/doc/libgusb/method.Device.interrupt_transfer_async.html
+%%DOCS%%share/doc/libgusb/method.Device.interrupt_transfer_finish.html
+%%DOCS%%share/doc/libgusb/method.Device.invalidate.html
+%%DOCS%%share/doc/libgusb/method.Device.is_emulated.html
+%%DOCS%%share/doc/libgusb/method.Device.open.html
+%%DOCS%%share/doc/libgusb/method.Device.release_interface.html
+%%DOCS%%share/doc/libgusb/method.Device.remove_tag.html
+%%DOCS%%share/doc/libgusb/method.Device.reset.html
+%%DOCS%%share/doc/libgusb/method.Device.set_configuration.html
+%%DOCS%%share/doc/libgusb/method.Device.set_interface_alt.html
+%%DOCS%%share/doc/libgusb/method.DeviceEvent.get_bytes.html
+%%DOCS%%share/doc/libgusb/method.DeviceEvent.get_id.html
+%%DOCS%%share/doc/libgusb/method.DeviceEvent.get_rc.html
+%%DOCS%%share/doc/libgusb/method.DeviceEvent.get_status.html
+%%DOCS%%share/doc/libgusb/method.DeviceEvent.set_bytes.html
+%%DOCS%%share/doc/libgusb/method.DeviceList.coldplug.html
+%%DOCS%%share/doc/libgusb/method.DeviceList.find_by_bus_address.html
+%%DOCS%%share/doc/libgusb/method.DeviceList.find_by_vid_pid.html
+%%DOCS%%share/doc/libgusb/method.DeviceList.get_devices.html
+%%DOCS%%share/doc/libgusb/method.Endpoint.get_address.html
+%%DOCS%%share/doc/libgusb/method.Endpoint.get_direction.html
+%%DOCS%%share/doc/libgusb/method.Endpoint.get_extra.html
+%%DOCS%%share/doc/libgusb/method.Endpoint.get_kind.html
+%%DOCS%%share/doc/libgusb/method.Endpoint.get_maximum_packet_size.html
+%%DOCS%%share/doc/libgusb/method.Endpoint.get_number.html
+%%DOCS%%share/doc/libgusb/method.Endpoint.get_polling_interval.html
+%%DOCS%%share/doc/libgusb/method.Endpoint.get_refresh.html
+%%DOCS%%share/doc/libgusb/method.Endpoint.get_synch_address.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_alternate.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_class.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_endpoints.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_extra.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_index.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_kind.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_length.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_number.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_protocol.html
+%%DOCS%%share/doc/libgusb/method.Interface.get_subclass.html
+%%DOCS%%share/doc/libgusb/method.Source.set_callback.html
+%%DOCS%%share/doc/libgusb/property.Context.debug-level.html
+%%DOCS%%share/doc/libgusb/property.Context.libusb-context.html
+%%DOCS%%share/doc/libgusb/property.Device.context.html
+%%DOCS%%share/doc/libgusb/property.Device.libusb-device.html
+%%DOCS%%share/doc/libgusb/property.Device.platform-id.html
+%%DOCS%%share/doc/libgusb/property.DeviceList.context.html
+%%DOCS%%share/doc/libgusb/search.js
+%%DOCS%%share/doc/libgusb/signal.Context.device-added.html
+%%DOCS%%share/doc/libgusb/signal.Context.device-changed.html
+%%DOCS%%share/doc/libgusb/signal.Context.device-removed.html
+%%DOCS%%share/doc/libgusb/signal.DeviceList.device-added.html
+%%DOCS%%share/doc/libgusb/signal.DeviceList.device-removed.html
+%%DOCS%%share/doc/libgusb/solarized-dark.css
+%%DOCS%%share/doc/libgusb/solarized-light.css
+%%DOCS%%share/doc/libgusb/struct.Source.html
+%%DOCS%%share/doc/libgusb/style.css
+%%DOCS%%share/doc/libgusb/type_func.Context.error_quark.html
+%%DOCS%%share/doc/libgusb/type_func.Device.error_quark.html
+%%DOCS%%share/doc/libgusb/type_func.Source.error_quark.html
+%%DOCS%%share/doc/libgusb/urlmap_libgusb.js
+%%DOCS%%share/doc/libgusb/vfunc.Context.device_added.html
+%%DOCS%%share/doc/libgusb/vfunc.Context.device_changed.html
+%%DOCS%%share/doc/libgusb/vfunc.Context.device_removed.html
+%%DOCS%%share/doc/libgusb/vfunc.DeviceList.device_added.html
+%%DOCS%%share/doc/libgusb/vfunc.DeviceList.device_removed.html
 %%VAPI%%share/vala/vapi/gusb.deps
 %%VAPI%%share/vala/vapi/gusb.vapi