git: 55c2a54db324 - main - accessibility/libspiel: new port

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Wed, 11 Jun 2025 16:10:07 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=55c2a54db324de32d254673560275f0896fb5056

commit 55c2a54db324de32d254673560275f0896fb5056
Author:     Olivier Duchateau <duchateau.olivier@gmail.com>
AuthorDate: 2025-06-11 12:35:38 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-06-11 16:09:38 +0000

    accessibility/libspiel: new port
    
    This client library is designed to provide an ergonomic interface to
    the myriad of potential speech providers that are installed in a given
    session.
    The API is inspired by the W3C Web Speech API. It serves several purposes:
    
    - Provide an updated list of installed across all speech providers voices.
    - Offer a "speaker" abstraction where utterances can be queued to speak.
    - If no voice was explicitly chosen for an utterance, negotiate global
      user settings and language preferences to choose the most appropriate
      voice.
    
    PR:     286697
---
 accessibility/Makefile           |  1 +
 accessibility/libspiel/Makefile  | 27 +++++++++++++++++++++++++++
 accessibility/libspiel/distinfo  |  3 +++
 accessibility/libspiel/pkg-descr | 10 ++++++++++
 accessibility/libspiel/pkg-plist | 16 ++++++++++++++++
 5 files changed, 57 insertions(+)

diff --git a/accessibility/Makefile b/accessibility/Makefile
index faa78ea86649..622d633bd4f9 100644
--- a/accessibility/Makefile
+++ b/accessibility/Makefile
@@ -16,6 +16,7 @@
     SUBDIR += kmouth
     SUBDIR += libqaccessibilityclient
     SUBDIR += libspeechprovider
+    SUBDIR += libspiel
     SUBDIR += linux-c7-at-spi2-atk
     SUBDIR += linux-c7-at-spi2-core
     SUBDIR += linux-c7-atk
diff --git a/accessibility/libspiel/Makefile b/accessibility/libspiel/Makefile
new file mode 100644
index 000000000000..be88a999013d
--- /dev/null
+++ b/accessibility/libspiel/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	libspiel
+DISTVERSION=	1.0.4
+CATEGORIES=	accessibility
+
+MAINTAINER=	desktop@FreeBSD.org
+COMMENT=	Speech synthesis client library
+WWW=		https://project-spiel.org/libspiel/
+
+LICENSE=	LGPL21+
+
+LIB_DEPENDS=	libspeech-provider-1.0.so:accessibility/libspeechprovider
+
+USES=		gnome gstreamer meson pkgconfig python:build
+USE_GNOME=	glib20 introspection:build
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	project-spiel
+GH_TAGNAME=	2ab0230
+
+BINARY_ALIAS=	python3=${PYTHON_VERSION}
+
+MESON_ARGS=	-Dtests=false \
+		-Ddocs=false
+
+GLIB_SCHEMAS=	org.monotonous.libspiel.gschema.xml
+
+.include <bsd.port.mk>
diff --git a/accessibility/libspiel/distinfo b/accessibility/libspiel/distinfo
new file mode 100644
index 000000000000..3bff6d886f9b
--- /dev/null
+++ b/accessibility/libspiel/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1744552306
+SHA256 (project-spiel-libspiel-1.0.4-2ab0230_GH0.tar.gz) = 3517287609079b7dd52ad3483d23ce7458f4c5d27bf0bdd18a8a71fe3c3c689d
+SIZE (project-spiel-libspiel-1.0.4-2ab0230_GH0.tar.gz) = 192037
diff --git a/accessibility/libspiel/pkg-descr b/accessibility/libspiel/pkg-descr
new file mode 100644
index 000000000000..bf264fe02418
--- /dev/null
+++ b/accessibility/libspiel/pkg-descr
@@ -0,0 +1,10 @@
+This client library is designed to provide an ergonomic interface to
+the myriad of potential speech providers that are installed in a given
+session.
+The API is inspired by the W3C Web Speech API. It serves several purposes:
+
+- Provide an updated list of installed across all speech providers voices.
+- Offer a "speaker" abstraction where utterances can be queued to speak.
+- If no voice was explicitly chosen for an utterance, negotiate global
+  user settings and language preferences to choose the most appropriate
+  voice.
diff --git a/accessibility/libspiel/pkg-plist b/accessibility/libspiel/pkg-plist
new file mode 100644
index 000000000000..69be5dc2ece3
--- /dev/null
+++ b/accessibility/libspiel/pkg-plist
@@ -0,0 +1,16 @@
+bin/spiel
+include/spiel/spiel-dbus-enums.c
+include/spiel/spiel-dbus-enums.h
+include/spiel/spiel-provider.h
+include/spiel/spiel-speaker.h
+include/spiel/spiel-utterance.h
+include/spiel/spiel-version.h
+include/spiel/spiel-voice.h
+include/spiel/spiel-voices-list-model.h
+include/spiel/spiel.h
+lib/girepository-1.0/Spiel-1.0.typelib
+lib/libspiel-1.0.so
+lib/libspiel-1.0.so.1
+lib/libspiel-1.0.so.1.0.4
+libdata/pkgconfig/spiel-1.0.pc
+share/gir-1.0/Spiel-1.0.gir