diff options
Diffstat (limited to 'app-accessibility')
18 files changed, 682 insertions, 15 deletions
diff --git a/app-accessibility/Manifest.gz b/app-accessibility/Manifest.gz Binary files differindex 3249f2fdcaec..e1042bebca55 100644 --- a/app-accessibility/Manifest.gz +++ b/app-accessibility/Manifest.gz diff --git a/app-accessibility/accerciser/Manifest b/app-accessibility/accerciser/Manifest index 47a681d9d4f9..01a304faeb6e 100644 --- a/app-accessibility/accerciser/Manifest +++ b/app-accessibility/accerciser/Manifest @@ -1,3 +1,5 @@ +AUX accerciser-3.42.0-imp-module.patch 3436 BLAKE2B 71577620a4e81ab0d9b2bd19a3a8cdd3f411822de9ea5fbc08f1aae53bcda0aaa209ecd9a7303320b6d3bd7614575115dd25189589e46ddf04658fa384135416 SHA512 0d7830eb1689b5d31cb955ff5c98a15633deb023e0dd26b431406d8abd5c3f882232ca46cca3f29fbfbfc4671ac4e41e7ee36bf9e621a2780327055f33b97ec0 DIST accerciser-3.42.0.tar.xz 1999644 BLAKE2B 190f37ab94aba2dd1f16594242426a33bac366b89eb284c739c02a96cf0330ccb562237079d79ade5b729c5e38facbb542af2ace195a5d9b6d1c68a5005ba653 SHA512 65c3819c80c9ec3c8728963572a2c7bb4575782abde8ee34e3b7fa31217ef0e8106a7702c5b5a32b123ccb84b357984844a6d4aee75bf7e6157f3d63588224da +EBUILD accerciser-3.42.0-r1.ebuild 1292 BLAKE2B daf93aa80fe6fbd1bd17b34d1768436e557f9856d5dde41ebaa871048135bc45201a635c09c42358a1a5ed9ab6de3bdf1c5e7155a99f2c6d3c381dd3ace9dc54 SHA512 e54ca9f38deb1d32aff13b18b48b59df3ea1440188c92d1e0209f96307d66eab54f19adc91811fabd6073aa3fead9d558e30d1cccdca6ccb6e78fa05d2c245f9 EBUILD accerciser-3.42.0.ebuild 1196 BLAKE2B 1584ea48eb5a4dca3f5775756ce13d31e4bf455c35a67faac66a254c5472f1889308c923a9c6349b545faf0124671c30ea14a59e596f74a6d467507a2fda2b14 SHA512 30bc75f79c0f9df2200d67acbad93f48d13101db7c619b0e050bf31f2296ddbc5f25b7441a53ca848b9a7057657f89483ecf006e069ec740f9d610101f6c1784 -MISC metadata.xml 836 BLAKE2B c267ec04334d6652d6e402d58cc8b3d5d9665c83fa127ba3a168ff7437dd8aa60f699196c71be10e0a63bd52931a0b157fb92ac65ef8a601331ceb8404560d7f SHA512 ebc2a15a8a2f0c107a0c24261806a06efc63a018e94e1ff5e9e67b37c73cf80830f79084627559e743e7267c4a0cddc90ab7a852881664c6324d00479c6fb425 +MISC metadata.xml 861 BLAKE2B 2c5c372e20fb030b3ba1a5abd16b18ae1098dfaddee8752319f65bed04c4612be3a0a600984ae1bce0a2237d5e7f4713731d04f101de8447d5a9a3c911afdbf2 SHA512 e51a453ff6cb0e1640f14ab418433d306d8c2d5dde4e0523aa24dcc88e63cafe7fec02652ae0598e6f7d4a61c1212a3f5362d31266b90b7524584d99bf59caba diff --git a/app-accessibility/accerciser/accerciser-3.42.0-r1.ebuild b/app-accessibility/accerciser/accerciser-3.42.0-r1.ebuild new file mode 100644 index 000000000000..3fa4dbfdb71f --- /dev/null +++ b/app-accessibility/accerciser/accerciser-3.42.0-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 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 gnome2 python-single-r1 + +DESCRIPTION="Interactive Python accessibility explorer" +HOMEPAGE="https://wiki.gnome.org/Apps/Accerciser https://gitlab.gnome.org/GNOME/accerciser" + +LICENSE="BSD CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.5.2:2 + >=x11-libs/gtk+-3.24.0:3[introspection] + $(python_gen_cond_dep ' + >=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}] + >=dev-python/ipython-0.11[${PYTHON_USEDEP}] + >=dev-python/pyatspi-2.1.5[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/python-xlib[${PYTHON_USEDEP}] + ') + + dev-libs/atk[introspection] + >=dev-libs/glib-2.28:2 + dev-libs/gobject-introspection:= + x11-libs/gdk-pixbuf[introspection] + x11-libs/libwnck:3[introspection] + x11-libs/pango[introspection] + gnome-base/librsvg[introspection] + ${PYTHON_DEPS} +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/itstool + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +PATCHES=( + # Port from imp to importlib (from 'master') + "${FILESDIR}/${P}-imp-module.patch" +) + +src_install() { + gnome2_src_install + python_optimize +} diff --git a/app-accessibility/accerciser/files/accerciser-3.42.0-imp-module.patch b/app-accessibility/accerciser/files/accerciser-3.42.0-imp-module.patch new file mode 100644 index 000000000000..abcba67386c8 --- /dev/null +++ b/app-accessibility/accerciser/files/accerciser-3.42.0-imp-module.patch @@ -0,0 +1,83 @@ +diff '--color=auto' -ur accerciser-3.42.0.orig/plugins/validate.py accerciser-3.42.0/plugins/validate.py +--- accerciser-3.42.0.orig/plugins/validate.py 2024-07-15 20:46:50.173168139 +0200 ++++ accerciser-3.42.0/plugins/validate.py 2024-07-15 20:50:07.974258909 +0200 +@@ -20,7 +20,7 @@ + import traceback + import sys + import glob +-import imp ++import importlib + import webbrowser + from accerciser.plugin import ViewportPlugin + from accerciser.i18n import _, N_, DOMAIN +@@ -68,16 +68,18 @@ + ''' + for path in [USER_SCHEMA_PATH, SYS_SCHEMA_PATH]: + for fn in glob.glob(os.path.join(path, '*.py')): +- module = os.path.basename(fn)[:-3] +- params = imp.find_module(module, [path]) +- schema = imp.load_module(module, *params) ++ module_name = os.path.basename(fn)[:-3] ++ spec = importlib.util.spec_from_file_location(module_name, fn) ++ module = importlib.util.module_from_spec(spec) ++ spec.loader.exec_module(module) ++ + try: + # try to get descriptive fields from the module +- SCHEMA_METADATA[module] = schema.__metadata__ ++ SCHEMA_METADATA[module_name] = module.__metadata__ + except AttributeError: + # default to usinf file name as description +- SCHEMA_METADATA[module] = {'name' : module, +- 'description' : _('No description')} ++ SCHEMA_METADATA[module_name] = {'name' : module, ++ 'description' : _('No description')} + + @staticmethod + def getValidators(name): +diff '--color=auto' -ur accerciser-3.42.0.orig/pyreqs.py accerciser-3.42.0/pyreqs.py +--- accerciser-3.42.0.orig/pyreqs.py 2024-07-15 20:46:50.170168156 +0200 ++++ accerciser-3.42.0/pyreqs.py 2024-07-15 20:50:27.235354799 +0200 +@@ -11,7 +11,7 @@ + this distribution, and is available at + U{http://www.opensource.org/licenses/bsd-license.php} + ''' +-import sys, os, imp ++import sys, os + + PYGTK_REQ = '2.0' + PYATSPI_REQ = (2, 23, 3) +Sólo en accerciser-3.42.0: pyreqs.py.orig +diff '--color=auto' -ur accerciser-3.42.0.orig/src/lib/accerciser/plugin/plugin_manager.py accerciser-3.42.0/src/lib/accerciser/plugin/plugin_manager.py +--- accerciser-3.42.0.orig/src/lib/accerciser/plugin/plugin_manager.py 2024-07-15 20:46:50.169168161 +0200 ++++ accerciser-3.42.0/src/lib/accerciser/plugin/plugin_manager.py 2024-07-15 20:47:28.027960768 +0200 +@@ -23,7 +23,7 @@ + from .message import MessageManager + import os + import sys +-import imp ++import importlib + import traceback + from accerciser.i18n import _, N_, C_ + +@@ -136,8 +136,7 @@ + ''' + sys.path.insert(0, plugin_dir) + try: +- params = imp.find_module(plugin_fn, [plugin_dir]) +- plugin = imp.load_module(plugin_fn, *params) ++ plugin = importlib.import_module(plugin_fn) + plugin_locals = plugin.__dict__ + except Exception as e: + self.message_manager.newModuleError(plugin_fn, plugin_dir, +diff '--color=auto' -ur accerciser-3.42.0.orig/src/lib/accerciser/plugin/view.py accerciser-3.42.0/src/lib/accerciser/plugin/view.py +--- accerciser-3.42.0.orig/src/lib/accerciser/plugin/view.py 2024-07-15 20:46:50.170168156 +0200 ++++ accerciser-3.42.0/src/lib/accerciser/plugin/view.py 2024-07-15 20:47:28.028960763 +0200 +@@ -20,7 +20,6 @@ + from .message import MessageManager + import os + import sys +-import imp + from accerciser.i18n import _, N_ + import gc + from accerciser import ui_manager diff --git a/app-accessibility/accerciser/metadata.xml b/app-accessibility/accerciser/metadata.xml index 3d77751efc4b..8596c0d00151 100644 --- a/app-accessibility/accerciser/metadata.xml +++ b/app-accessibility/accerciser/metadata.xml @@ -5,6 +5,7 @@ <email>gnome@gentoo.org</email> <name>Gentoo GNOME Desktop</name> </maintainer> + <stabilize-allarches/> <longdescription lang="en"> Accerciser is an interactive Python accessibility explorer for the GNOME desktop. It uses AT-SPI to inspect and control widgets, allowing you to check if an application is providing correct information to assistive technologies and automated test frameworks. Accerciser has a simple plugin framework which you can use to create custom views of accessibility information. diff --git a/app-accessibility/at-spi2-core/Manifest b/app-accessibility/at-spi2-core/Manifest index cbb52317e12a..54abcb59b717 100644 --- a/app-accessibility/at-spi2-core/Manifest +++ b/app-accessibility/at-spi2-core/Manifest @@ -1,5 +1,7 @@ DIST at-spi2-core-2.50.1.tar.xz 567836 BLAKE2B 88916f322efa547be2249388a5f7b698ff7fb9464bc98fa929524616d0d25237328c10678df800b9ce325a3050804e9b0044a43024d06b71381dfc32917700a3 SHA512 d0b342a1ff2a3dd91aa87663412289d1616906c14a37e81b8514882d44981092356dc8a5d5c66b6d980d2cdf22128fff74651a4af6cad73cb62fd3154c5bbeae DIST at-spi2-core-2.50.2.tar.xz 569124 BLAKE2B 7a69dbeb68b674d5b4e458dc10ba0e266583216f6a45f1924dee28e848bc124802f5181b0b1cc969eae2dfbb13df56b0c87bb1f347f6e323f6474d02a3543664 SHA512 a1c9ca77d34801b421c13f66d72e6101b23896dd210efbd7931ac0778e30c51a20759796a8c121946f57c1683626fd3ef34f88e5ad6495c20f6ac79fd0a96aa4 +DIST at-spi2-core-2.52.0.tar.xz 574684 BLAKE2B 642cf8a63700ed5d5e20eb356f60c5d5e771d34bb0a373e95c71898ea2318c41484faec736ec44b1162fac22a075ca5f7b4698b105972ea060d107f9afc7f5b9 SHA512 0482cae97cf5e2295ab56f6ae83db9e1047813a1c3c2b6cd6012f95dfabec1f7a93d0045a1a7c3fabb7a389f71dc43f797b2ad9242e97ddf565cf63948ae146b EBUILD at-spi2-core-2.50.1.ebuild 2045 BLAKE2B 05759ae495e14d6aa2f33b36bfaea94a548e6752ba7b808e210a14fb3dbc620c2b1fa99538ec20a841ed4c3f7b5afcfd4749cef6bb20146822a1dc83df1be95b SHA512 a449703a4ed5273fad4d2dadf940081b6ff61e0a4b491217e9a8d1742d656d59eaddb86d9a66947a187aef38f1b58f21f64be2339eefd0247ce1406412c36604 EBUILD at-spi2-core-2.50.2.ebuild 2046 BLAKE2B 7736c7e5bf1eaffa9558db9969605da2ed8fc74ff78745aadb5d7350b2555763ebffd318abe473f7a94de6ea1347d4e69b7a89affcd22a1543aba48f4471a0bb SHA512 aad1d540ced06ff7784e9967de75e56e2f785e9307ed93e54fd5ed490587e58257cec7bfe1602eaddedf8fd35377ae7a72fed2a07d9537d6580ffcb8e6138388 +EBUILD at-spi2-core-2.52.0.ebuild 2016 BLAKE2B 0a0e8e80b6805072fdce630e21f714acd4ede796dc20fdff0e9826dfbcbf76b805d7f33b30691621a9b54f27b80f2fa26f0c120c2725165503bb4d4d84ff1fa5 SHA512 dbe69d4d61f491519a7aeaead4f327225f46b4e668f737d415e6b984a7a8147421a5cc1129783453daa96e03b86fb9e795b95773b52794c10b2a3d6eb9627f06 MISC metadata.xml 468 BLAKE2B f6b51c8c4da2bdff93f41f92cbe94687250f28d9c42c5cdb7de9eef0d1a6e208dd911d443298eb08fc83f8765d0b2c09e30e932d97b3fc1d28861ceae9b1ee6b SHA512 908b6e8c5929143a45cd108fed5b3375dc6f8f98b637a230c0eb0da4a261a8d9655954e1f98dc9967bd79a8c3aece79e1827097a5785494692f7655bcd73f331 diff --git a/app-accessibility/at-spi2-core/at-spi2-core-2.52.0.ebuild b/app-accessibility/at-spi2-core/at-spi2-core-2.52.0.ebuild new file mode 100644 index 000000000000..1e1ec960bcf6 --- /dev/null +++ b/app-accessibility/at-spi2-core/at-spi2-core-2.52.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome.org meson-multilib systemd virtualx xdg + +DESCRIPTION="D-Bus accessibility specifications and registration daemon" +HOMEPAGE="https://gitlab.gnome.org/GNOME/at-spi2-core" + +LICENSE="LGPL-2.1+" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="X dbus-broker gtk-doc +introspection systemd" +REQUIRED_USE=" + dbus-broker? ( systemd ) + gtk-doc? ( X ) +" + +DEPEND=" + >=sys-apps/dbus-1.5[${MULTILIB_USEDEP}] + >=dev-libs/glib-2.67.4:2[${MULTILIB_USEDEP}] + >=dev-libs/libxml2-2.9.1:2[${MULTILIB_USEDEP}] + introspection? ( >=dev-libs/gobject-introspection-1.54.0:= ) + systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] ) + X? ( + x11-libs/libX11[${MULTILIB_USEDEP}] + x11-libs/libXtst[${MULTILIB_USEDEP}] + x11-libs/libXi[${MULTILIB_USEDEP}] + ) + + !<dev-libs/atk-2.46.0 + !<app-accessibility/at-spi2-atk-2.46.0 +" +RDEPEND="${DEPEND} + dbus-broker? ( sys-apps/dbus-broker ) +" +BDEPEND=" + dev-util/glib-utils + gtk-doc? ( + dev-python/sphinx + dev-util/gdbus-codegen + >=dev-util/gi-docgen-2021.1 + ) + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +multilib_src_configure() { + local emesonargs=( + -Ddefault_bus=$(usex dbus-broker dbus-broker dbus-daemon) + $(meson_use systemd use_systemd) + -Dgtk2_atk_adaptor=true + -Dsystemd_user_dir="$(systemd_get_userunitdir)" + $(meson_native_use_bool gtk-doc docs) + $(meson_native_use_feature introspection) + $(meson_feature X x11) + -Ddisable_p2p=false + -Datk_only=false + ) + meson_src_configure +} + +multilib_src_test() { + virtx dbus-run-session meson test -C "${BUILD_DIR}" || die +} + +multilib_src_install_all() { + einstalldocs + + if use gtk-doc; then + mkdir -p "${ED}"/usr/share/gtk-doc/{libatspi,atk} || die + mv "${ED}"/usr/share/doc/libatspi "${ED}"/usr/share/gtk-doc/libatspi/html || die + mv "${ED}"/usr/share/doc/atk "${ED}"/usr/share/gtk-doc/atk/html || die + fi +} diff --git a/app-accessibility/brltty/Manifest b/app-accessibility/brltty/Manifest index dea643bad055..29aee9336a2c 100644 --- a/app-accessibility/brltty/Manifest +++ b/app-accessibility/brltty/Manifest @@ -3,4 +3,5 @@ AUX brltty-6.6-cython3.patch 1594 BLAKE2B d18b09f888e688efb8a33c0de6cbde25956d10 AUX brltty.initd 241 BLAKE2B 80969e4840d2d38af6bc310ecf18e0253ef01667517135bc5a2f92e50882c2b72e8a4763b215c62ccbfd8d2250067b44ce9a4cb5d318dd6eb48b298826d8d5de SHA512 55ea97a546a2335ee1148396df71363442b66ed4526f8adb93e88c2cf489f10a21b5361658f590b3f64eec24844235491b15349bd0e1c4533fef7b1390fc3a6e DIST brltty-6.6.tar.xz 3684592 BLAKE2B c1ae05b925384f3869d3c90ccc06197da2a592691830504ff01a530da87319d463e25cd7b387805c199562be815ca4e79f3679f592f3a1107025e3aba17ec159 SHA512 852bfd9179570be7b0da8b1279f84bdfedc14a319988d9c2eac5a20a9ce8977f31fdee167e8e96bb411184a1d72f4cdc633944c7b3f55bddae411fc71a9e6898 EBUILD brltty-6.6-r1.ebuild 5799 BLAKE2B 507821f81a50f205536ccaead2b4e23007ad2536a339b4e044bf2b3761bbfb78b4160758fda0c5142a818d61091c77ce6a62a515be445052fb2a1e35101b19b8 SHA512 ee88cf88581dd6ef95abdc4aee00d1b3c4a1760152d15a0c148a30511fb2cc5b56ee7661f7c5f4d7d53031b135d9c2ee3716f5b00e4bbf5d74cfe0d5eb2e9a52 +EBUILD brltty-6.6-r2.ebuild 5772 BLAKE2B 74e2bc6f01e6a96380a25f7489dc050cafb0edad9b2db22c9fa8cd6788e9894c40272b3e0ca2f60ab9b9dfc35e38e1e51bb1c0f86149a9b686057fe5a7286c07 SHA512 0188d51b003ba3c31af02e0334a7c9122a2a79bbe62ba3e81d50c5fa2e6a7573819aa4623879bf6d93f8fa9030f3535084ebcd1dd0ba37b08db1c4c78cd609d6 MISC metadata.xml 1596 BLAKE2B a0eb74542a3ad8ea8d36e269d9c0c9266b1dda440ff9c5a02b53f60c9b406e30c55d7ef58a2c49d02348b410515fb2b4ca5d36e152f006b9bab7445577441a6e SHA512 369c801ef0a8be96d66c2c163fa6000fcf35b49fd83a5521d93a6a2bac5da1f540c2fa977198fc651451959f804a9e3b3630ca8a0470231892861ed1d5cc5b6f diff --git a/app-accessibility/brltty/brltty-6.6-r2.ebuild b/app-accessibility/brltty/brltty-6.6-r2.ebuild new file mode 100644 index 000000000000..064030d6037b --- /dev/null +++ b/app-accessibility/brltty/brltty-6.6-r2.ebuild @@ -0,0 +1,221 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +FINDLIB_USE="ocaml" +JAVA_PKG_WANT_SOURCE="1.8" +JAVA_PKG_WANT_TARGET="1.8" + +inherit findlib toolchain-funcs java-pkg-opt-2 autotools python-r1 tmpfiles + +DESCRIPTION="Daemon that provides access to the Linux/Unix console for a blind person" +HOMEPAGE="https://brltty.app/" +SRC_URI="https://brltty.app/archive/${P}.tar.xz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="+api +beeper bluetooth doc +fm gpm iconv icu + java louis +midi ncurses nls ocaml +pcm policykit python + usb systemd +speech tcl xml X" +REQUIRED_USE="doc? ( api ) + java? ( api ) + ocaml? ( api ) + python? ( api ${PYTHON_REQUIRED_USE} ) + tcl? ( api )" + +DEPEND=" + acct-group/brltty + acct-user/brltty + dev-libs/libpcre2[pcre32] + bluetooth? ( + sys-apps/dbus + net-wireless/bluez + ) + gpm? ( >=sys-libs/gpm-1.20 ) + iconv? ( virtual/libiconv ) + icu? ( dev-libs/icu:= ) + java? ( >=virtual/jdk-1.8:* ) + louis? ( dev-libs/liblouis:= ) + midi? ( media-libs/alsa-lib ) + ncurses? ( sys-libs/ncurses:0= ) + pcm? ( media-libs/alsa-lib ) + policykit? ( sys-auth/polkit ) + python? ( + ${PYTHON_DEPS} + dev-python/setuptools[${PYTHON_USEDEP}] + ) + speech? ( + app-accessibility/espeak-ng + app-accessibility/flite + app-accessibility/speech-dispatcher + ) + systemd? ( sys-apps/systemd ) + tcl? ( >=dev-lang/tcl-8.6.13-r1:= ) + usb? ( virtual/libusb:1 ) + xml? ( dev-libs/expat ) + X? ( + app-accessibility/at-spi2-core:2 + sys-apps/dbus + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXfixes + x11-libs/libXt + x11-libs/libXtst + )" +RDEPEND="${DEPEND}" +BDEPEND=" + >=dev-lang/tcl-8.6.13-r1 + virtual/pkgconfig + nls? ( virtual/libintl ) + python? ( dev-python/cython[${PYTHON_USEDEP}] ) +" + +HTML_DOCS=( "${S}"/Documents/Manual-BrlAPI/. ) + +PATCHES=( + "${FILESDIR}"/${PN}-6.4-respect-AR.patch + "${FILESDIR}"/${P}-cython3.patch +) + +src_prepare() { + default + + java-pkg-opt-2_src_prepare + + # We run eautoconf instead of using eautoreconf because brltty uses + # a custom build system that uses autoconf without the rest of the + # autotools. + eautoconf + use python && python_copy_sources +} + +src_configure() { + tc-export AR LD PKG_CONFIG + + export JAVAC="" + export JAVA_JNI_FLAGS="" + if use java; then + export JAVA_HOME="$(java-config -g JAVA_HOME)" + export JAVAC_HOME="${JAVA_HOME}/bin" + export JAVA_JNI_FLAGS="$(java-pkg_get-jni-cflags)" + export JAVAC="$(java-pkg_get-javac) -encoding UTF-8 $(java-pkg_javac-args)" + fi + + # Override bindir for backward compatibility. + # Also override localstatedir so that the lib/brltty directory is installed + # correctly. + # Disable stripping since we do that ourselves. + local myconf=( + --bindir="${EPREFIX}"/bin + --htmldir="${EPREFIX}"/usr/share/doc/"${P}"/html + --localstatedir="${EPREFIX}"/var + --runstatedir="${EPREFIX}"/run + # the next two lines should be removed once support is added. + --disable-emacs-bindings + --disable-lua-bindings + # Python bindings are built separately per-impl + --disable-python-bindings + --disable-stripping + --with-updatable-directory="${EPREFIX}"/var/lib/brltty + --with-writable-directory="${EPREFIX}"/run/brltty + --with-privilege-parameters=lx:user=brltty + $(use_enable api) + $(use_with beeper beep-package) +# $(use_enable emacs emacs-bindings) + $(use_with fm fm-package) + $(use_enable gpm) + $(use_enable iconv) + $(use_enable icu) + $(use_enable java java-bindings) + $(use_enable louis liblouis) +# $(use_enable lua lua-bindings) + $(use_with midi midi-package) + $(use_enable nls i18n) + $(use_enable ocaml ocaml-bindings) + $(use_with pcm pcm-package) + $(use_enable policykit polkit) + $(use_enable speech speech-support) + $(use_with systemd service-package) + $(use_enable tcl tcl-bindings) + $(use_enable xml expat) + $(use_enable X x) + $(use_with bluetooth bluetooth-package) + $(use_with ncurses curses) + $(use_with usb usb-package) + ) + # disable espeak since we use espeak-ng + use speech && myconf+=( --with-speech-driver=-es ) + + econf "${myconf[@]}" + + if use python; then + python_configure() { + econf "${myconf[@]}" --enable-python-bindings PYTHON="${PYTHON}" + } + python_foreach_impl run_in_build_dir python_configure + fi +} + +src_compile() { + emake -j1 JAVA_JNI_FLAGS="${JAVA_JNI_FLAGS}" JAVAC="${JAVAC}" + + if use python; then + python_build() { + emake -C "${BUILD_DIR}"/Bindings/Python -j1 + } + python_foreach_impl run_in_build_dir python_build + fi +} + +src_install() { + if use ocaml; then + findlib_src_preinst + fi + + emake -j1 INSTALL_ROOT="${D}" OCAML_LDCONF= install + + if use python; then + python_install() { + emake -C "${BUILD_DIR}"/Bindings/Python -j1 INSTALL_ROOT="${D}" install + } + python_foreach_impl run_in_build_dir python_install + fi + + if use java; then + java-pkg_doso Bindings/Java/libbrlapi_java.so + java-pkg_dojar Bindings/Java/brlapi.jar + fi + + insinto /etc + doins Documents/brltty.conf + newinitd "${FILESDIR}"/brltty.initd brltty + emake -C Autostart/Systemd -j1 INSTALL_ROOT="${ED}" install + emake -C Autostart/Udev -j1 INSTALL_ROOT="${ED}" install + + dodoc Documents/{CONTRIBUTORS,ChangeLog,HISTORY,README*,TODO} + if use doc; then + HTML_DOCS="doc/Manual-BRLTTY" einstalldocs + fi + + keepdir /var/lib/BrlAPI + rm -fr "${ED}/run" || die + find "${ED}" -name '*.a' -delete || die +} + +pkg_postinst() { + tmpfiles_process ${PN}.conf + + elog "please be sure ${EROOT}/etc/brltty.conf is correct for your system." + elog + elog "To make brltty start on boot on an OpenRC system, type this command:" + elog "# rc-update add brltty boot" + elog + elog "If you are using systemd, type this command:" + elog "# systemctl daemon-reload" + elog + elog "Please reload udev by typing:" + elog "# udevadm control --reload" +} diff --git a/app-accessibility/freetts/Manifest b/app-accessibility/freetts/Manifest index 9c3fd5b4de0a..b3880abe2b2e 100644 --- a/app-accessibility/freetts/Manifest +++ b/app-accessibility/freetts/Manifest @@ -1,4 +1,5 @@ +AUX freetts-1.2.2-source-target.patch 1243 BLAKE2B 7d840d67ecdab9aa25ac323d28395919b5bb59594722631d2d2346ead8706d5e27aaf3d06258b1fb688ce6b5af120fd256dbd0ab805434f2751d17ceb8718a7a SHA512 e7f485d3ca5eab047cf03b56708abca646b13b64183b28bd58c1f9fb38eb518f82a0b9548524ac58a703622903fc17e360975949269a4550a3879e15aeec9da1 AUX jsapi-gentoo.diff 10456 BLAKE2B c0de49a34fe6e5240f4a1c895b99593a169a3a14fe7c3b98cc62723d34b31935735e9632f599b90748a760a448860ae81d2a1e48de6f1074633d33e19c5158d3 SHA512 62acd90cb064db176ee7a0950857c173f2ace4de6a6319fce3273bcbb222f8fd309bc6939eaba00a00cd7217871dca60cfa33d5ee1396b86333b9dedbf8f3034 DIST freetts-1.2.2-src.zip 14111416 BLAKE2B fd3ac79ffe3ca031d40a6523a4ae900200c1b1eea0369fd1eec3233f852af8edffd81ca6c0bba628132221346d283d2138794e1f9697074fc1044944ad852e5b SHA512 a2cce0b1fd2267cc8dbd3e2ad3ec1f99526de3988443c0937405cc7b2eab9ef517001ef0b4b387e8721d3c33610cd642c6b7cf83217996a83481830de9713de7 -EBUILD freetts-1.2.2-r2.ebuild 1912 BLAKE2B 6a6991cfa8fe2501bb42c24900c1d2428fc5c03870f71882c16e985118be03b74a2848b3f31acc18356b6836bd32dca0d5249fbdc947bdcd01c276d3627b0b0d SHA512 3c7cffa08290d6a022b23c0606e61aa7949ab4c81b41e21f83e74b7104b291e36cd2374b82f66c2ce15e99e3bcddb4e18ed3b6db8de79acf3cad439c9942df10 +EBUILD freetts-1.2.2-r3.ebuild 2139 BLAKE2B 308129aad980624db653cb828745b55b5cd16930faac16b0a0922862e17e1d3c517e8786c8f1ee28af1708dc780b726715456cdec3d21cb00b61ddddb9046120 SHA512 6cc5eabf8a03cc5420dc70de736cdc08466cf3b9f2a31619126ad19fa7eb823133d85ec076d48195af94af12de70809ace46ef32355b50befc003085dd229e1f MISC metadata.xml 577 BLAKE2B f7cfecae90f4d576518ffdfeefadfe143bd292cdf0dbc7742fdc3ff02b829e3625de02c6e88eca1e93cbfd4266f0bd64a787a609c939cfc22e37627542374bdb SHA512 75d441047de45d4747911f2a2c09dd52599b84805e79ce540df206bda354aec9da3005328f379a49562ff107afd02ed72555522c556410dc92d69a3e9408689d diff --git a/app-accessibility/freetts/files/freetts-1.2.2-source-target.patch b/app-accessibility/freetts/files/freetts-1.2.2-source-target.patch new file mode 100644 index 000000000000..0d7f6afe134b --- /dev/null +++ b/app-accessibility/freetts/files/freetts-1.2.2-source-target.patch @@ -0,0 +1,34 @@ +We want to get rid of rewrite-xml provided by javatoolkit. + +--- a/build.xml ++++ b/build.xml +@@ -124,7 +124,8 @@ jsapi.exe from the lib directory. + description="Build just the srcs"> + <mkdir dir="${classes_dir}" /> + <javac debug="true" +- source="1.4" ++ source="8" ++ target="8" + deprecation="true" + srcdir="${src_dir}" + excludes="tests/**" +@@ -145,7 +146,8 @@ jsapi.exe from the lib directory. + description="Build just the tests"> + <mkdir dir="${classes_dir}" /> + <javac debug="true" +- source="1.4" ++ source="8" ++ target="8" + deprecation="true" + srcdir="${src_dir}" + includes="tests/**" +@@ -904,7 +906,8 @@ jsapi.exe from the lib directory. + <target name="javadoc" description="Generate javadoc"> + <mkdir dir="${javadoc_dir}" /> + <javadoc sourcepath="${src_dir}" +- source="1.4" ++ source="8" ++ target="8" + additionalparam="-breakiterator" + destdir="${javadoc_dir}" + packagenames="${javadoc_pkgs}" diff --git a/app-accessibility/freetts/freetts-1.2.2-r2.ebuild b/app-accessibility/freetts/freetts-1.2.2-r3.ebuild index 69d88cd0fd40..f826391dd72d 100644 --- a/app-accessibility/freetts/freetts-1.2.2-r2.ebuild +++ b/app-accessibility/freetts/freetts-1.2.2-r3.ebuild @@ -1,36 +1,46 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 JAVA_PKG_IUSE="doc examples source" -inherit java-pkg-2 java-ant-2 + +inherit java-pkg-2 DESCRIPTION="A speech synthesis system written entirely in Java" HOMEPAGE="https://freetts.sourceforge.io/" -SRC_URI="https://downloads.sourceforge.net/${PN}/${P}-src.zip" +SRC_URI="https://downloads.sourceforge.net/project/freetts/FreeTTS/FreeTTS%20${PV}/${P}-src.zip" LICENSE="jsapi? ( sun-bcla-jsapi ) freetts" SLOT="0" KEYWORDS="amd64 ~arm64 ppc64 x86" IUSE="jsapi mbrola" -DEPEND=">=virtual/jdk-1.8:* - ${RDEPEND} - jsapi? ( app-arch/sharutils )" -RDEPEND=">=virtual/jre-1.8:* - mbrola? ( >=app-accessibility/mbrola-3.0.1h-r6 ) " BDEPEND="app-arch/unzip" +DEPEND="virtual/jdk:1.8 + >=dev-java/ant-1.10.14-r3:0 + jsapi? ( app-arch/sharutils ) + mbrola? ( >=app-accessibility/mbrola-3.0.1h-r6 ) " + +# Exception in thread "main" java.lang.ClassCastException +RDEPEND="virtual/jre:1.8 + mbrola? ( >=app-accessibility/mbrola-3.0.1h-r6 ) " + # Tests aren't present. RESTRICT="test" -PATCHES=( "${FILESDIR}"/jsapi-gentoo.diff ) +PATCHES=( + "${FILESDIR}"/jsapi-gentoo.diff + "${FILESDIR}/freetts-1.2.2-source-target.patch" +) DOCS=( ANNOUNCE.txt README.txt RELEASE_NOTES ) src_prepare() { - default + default #780585 + java-pkg-2_src_prepare + # Prepare source directory. mkdir src || die "Failed to create source directory." mv com de src/ || die "Failed to move files to source directory." diff --git a/app-accessibility/kontrast/Manifest b/app-accessibility/kontrast/Manifest index 8f35fd2e0930..dca2974f617c 100644 --- a/app-accessibility/kontrast/Manifest +++ b/app-accessibility/kontrast/Manifest @@ -1,5 +1,5 @@ DIST kontrast-23.08.5.tar.xz 211984 BLAKE2B f1c50f90031615bc9a3ddd00155f40fed2244994de309385e386fae7e21dddb7bd1dfa5a722050dcf67c7ad3def6d1979efc8623a18bcc21b6438178d15fc116 SHA512 e70d5bdc5a7363358f8d09c6a2bafda9645bcb5f9acc0fa4e51ed836e87baa92b3f9e6c4a81bd3d1050de152100426e714c6dd8d46459aa0d81949776880f9ae -DIST kontrast-24.05.1.tar.xz 214656 BLAKE2B 520c666694268e8875acdecf00ed1c7e122a85f7594d06606ec336aa26a2aa5c23ee8db3bb9a18e86ce2d4a661d68977e62bc8632e1bc0cdc16a7eb871049c2d SHA512 4dc58d249f0e7ce29e64682cb341c44eb1b9a939c4d2c20b142101df3eb2849c187755b3635f7323eeb5ea06fe943e60e408499b5f6d921fc683e0701fd72e05 +DIST kontrast-24.05.2.tar.xz 214620 BLAKE2B ad61b0902fd1b95b4bef1eb5c7671a1ee8a3e1808e87bdfa39ac7f9a02f3ebd8d133522b0335b001e0713e0b1497aa0db5c3b239af1b2a9184d4ed2c4c48282a SHA512 aa2681b1b8a84852aaa180fb787ace87f9469731f7018a2e445b331f8598f8b1dd9d9b6ce9747a98518dd9286897c0521fb2a7951d8d56c1414012c4cfa0fffa EBUILD kontrast-23.08.5.ebuild 825 BLAKE2B 63c0d56a8cd604a3a37ef865d64928132ed18a38aefc953860622932d12eb91c9f0c451fb488517b0cc08e38d505938a843ce6950badcef8af6fe89b8d0888c9 SHA512 3077f08bfeea3f450ee98cd610358f1dbf5f099511af94ce5a2b1df21c438c5a60d6e86f06640d8f0f1575ff57a820f47c69541ac16ab335d684e8c30b864998 -EBUILD kontrast-24.05.1.ebuild 712 BLAKE2B f1c60681fe3668830200ceb92f14e5f919b3c61e370f1b7b2a9c5a5725e7f92fe858268de3b07ecded26c73184901f29a3846cd7ba0b091b5e4bd0f1f726802a SHA512 f233617b3474daa06d1b6fc692f9da8e3f3644424d120ecd3f351f335c0043825b4bb5d29edab3a0d57f33c56423f4187b7c0eda31e8585056ece3abf4b1780b +EBUILD kontrast-24.05.2.ebuild 724 BLAKE2B 2fc29103b347f93adcb79bdd4f4b6460e991ef16765ce95d56d0e6923a615d4db0b59f11d95b19d1693f65cdd59ed791ccea9d55ee0909a9bbac65ed14aa9f90 SHA512 793d69decb3c1d802d518d5abdee33fcbe5aeaa98f4d00e7c5e3782bb55a37f9fcffed3080ceea19f79c1169c2ef8220a33301a9d3b59ba763820ff53888ac13 MISC metadata.xml 384 BLAKE2B 769505c8a869e842511bb7202a31c4ac5d89dbf378199f669bfe7038d27aa63febbf2eedf8ea767545e1ab99be1718c9d67ff506842e2b624f512a98efcb0de4 SHA512 52a7f09822301efe07ad292d16d6625a22da14febe2236e69dfe7e7088750d2d2095d765a65466d80285d3b87ef8979ed0e75956f3cb9cd52127994b23de3c75 diff --git a/app-accessibility/kontrast/kontrast-24.05.1.ebuild b/app-accessibility/kontrast/kontrast-24.05.2.ebuild index fc542c5578b9..5a6e34dbb1ed 100644 --- a/app-accessibility/kontrast/kontrast-24.05.1.ebuild +++ b/app-accessibility/kontrast/kontrast-24.05.2.ebuild @@ -13,7 +13,7 @@ HOMEPAGE="https://apps.kde.org/kontrast/" LICENSE="GPL-3+" SLOT="6" -KEYWORDS="~amd64 ~arm64" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" IUSE="" DEPEND=" diff --git a/app-accessibility/orca/Manifest b/app-accessibility/orca/Manifest index 050c975fe62b..5f51c08d147a 100644 --- a/app-accessibility/orca/Manifest +++ b/app-accessibility/orca/Manifest @@ -1,3 +1,5 @@ DIST orca-45.2.tar.xz 3997024 BLAKE2B dfdf113694127323a92450b04b20fcc5655be0236c0173167d5d15478703b676c3fd8c1de0e75783875c5d2d40541c764fb002314d66c7570475cd63f6bfa473 SHA512 57eee451cf0da52e1297beae6c6d527886721b23c3415a5e046f3431876fdf1603dbd81ca763ed614ace68e7db96d90b413c663f113d0033ec1f2797df7bf589 +DIST orca-46.2.tar.xz 3431952 BLAKE2B 56b8c31318ecfaf6acda365192e0dd70feb835e449ebe1e0c0292a2230c44659ddc4e9cf1fa87aba1694e3ba2c8c695754901c4a797720979af3a8143f0b0b00 SHA512 e55d5dba18b70ac2b70809f9e0af82e1fad8c72d9f3a7e03c6e4c1da29e133f80b3dabf9ad007873587b4b01a4ff36947e4ea38d7afd60748f8f98219a6a24e0 EBUILD orca-45.2-r1.ebuild 1560 BLAKE2B 13ac4e66c0ec8ed347d58136395b80950bb9d6998c0df013bcd5a826d7787b8d7bc6bc1da3a63f58f4148d26b9c9e6fa76efd5c3a0c2420d4d87f6049a388394 SHA512 382464711e1a2d921c9de5e2c410e02a322abcd22181bd82693e75960b957302fc101950e8ef70a29fafd1cb54bbd7fbf31d33f06b349e04c715a92a5649e338 +EBUILD orca-46.2.ebuild 1491 BLAKE2B 301563b199654581c5b89a2a2588e7178effc3db46fe6f1b5c5e98bb804b7c2af808f1ab6b534b88c0aa08055ba77afd0a02b933d604a577855556bfb2648dcf SHA512 ff35f88952c3e88e7e32887400ce5edd7b8c79d41cc9d8dfc92f816f891647e04ea64c031682069ccdfa0c61e9dacb21c813bcdea79d238405af3620463347f9 MISC metadata.xml 762 BLAKE2B fca9ee6ac93d2e860f6791af78380e9d8d29ac10b254299946911a29b5893028e561a18320bc026dd7e9421f3c572e1c3ac63264276a1b292996db93e1cba4a3 SHA512 6bbe0cff5af52cb48adccbb61620fd75a0811cad313867b63cb09b5a7c259230019a54ad607ee46c986188ff11ac2f6878ef20381ef34965dfe918c88ec945d0 diff --git a/app-accessibility/orca/orca-46.2.ebuild b/app-accessibility/orca/orca-46.2.ebuild new file mode 100644 index 000000000000..5add1ce30b95 --- /dev/null +++ b/app-accessibility/orca/orca-46.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{10..13} ) + +inherit gnome2 meson python-single-r1 + +DESCRIPTION="Extensible screen reader that provides access to the desktop" +HOMEPAGE="https://wiki.gnome.org/Projects/Orca" + +LICENSE="LGPL-2.1+ CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + +IUSE="+braille" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + >=app-accessibility/at-spi2-core-2.50:2[introspection] + >=dev-libs/glib-2.28:2 + media-libs/gstreamer:1.0[introspection] + >=x11-libs/gtk+-3.6.2:3[introspection] + $(python_gen_cond_dep ' + dev-python/gst-python:1.0[${PYTHON_USEDEP}] + >=dev-python/pygobject-3.18:3[${PYTHON_USEDEP}] + ') + braille? ( + $(python_gen_cond_dep ' + >=app-accessibility/brltty-5.0-r3[python,${PYTHON_USEDEP}] + dev-libs/liblouis[${PYTHON_SINGLE_USEDEP}] + ') + ) +" +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + >=app-accessibility/speech-dispatcher-0.8[python,${PYTHON_USEDEP}] + >=dev-python/pyatspi-2.46[${PYTHON_USEDEP}] + dev-python/setproctitle[${PYTHON_USEDEP}] + ') + x11-libs/libwnck:3[introspection] + x11-libs/pango[introspection] +" +BDEPEND=" + dev-util/itstool + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" +# app-text/yelp-tools + +src_configure() { + local emesonargs=( + -Dspiel=false # spiel not yet in gentoo + ) + meson_src_configure +} + +src_install() { + meson_src_install + python_optimize +} diff --git a/app-accessibility/speech-dispatcher/Manifest b/app-accessibility/speech-dispatcher/Manifest index 8a181674e4df..4b6092d9f7e5 100644 --- a/app-accessibility/speech-dispatcher/Manifest +++ b/app-accessibility/speech-dispatcher/Manifest @@ -1,4 +1,6 @@ AUX speech-dispatcher-0.11.4-GNU_SOURCE.patch 3680 BLAKE2B 671b55d0418b92d299427fd2d457e3279f1ae9d97548dd1ff89b52a2487cd700c134e7bb042ae6b621883933d1b3c96765f6fc2ed040c0de4c7d97f017ad965f SHA512 d07edc73370fdb8d9c71f8cc9c9db15da8fe3b7d83ca42bd05a09fc4795899786e54436d7dbc8407ab08eb0384997126322352ed9d4c4250d41a11d0d68dd4b4 DIST speech-dispatcher-0.11.4.tar.gz 7127323 BLAKE2B 651a20ec403c6158756ab6ff7fbedb38ce1cec413be49367128274c8d20ccc7080a2dccd68cb7ebbec6bab05599f06a4aafc561e4e5e53cf52d19fa1b94fa286 SHA512 d0ebe832e2586abdb1284be36f8427cfbbd94f1a2dead1b74526b151e9529f9e61679339274b73afab5f829d184337372ba0aad93d880c42d2a6a1bcb2b7afef +DIST speech-dispatcher-0.11.5.tar.gz 7230756 BLAKE2B cacc0030489c17dcab4648c55e5b203f40d7a473be9a1ec0402e39fc8f853d30596caff4204052782ca562cc318363aa52118e6d375b5e9bf505ef7159129544 SHA512 d6d880bce0ae5bc2a5d519ef7740c689ae8b4b0bb658379762810e4beae3e465a429fbe19f7c490e89db0ea6a36aedd4b2287ac9251b90059b5c2cb3c0dd8a28 EBUILD speech-dispatcher-0.11.4-r2.ebuild 2913 BLAKE2B 1b4b9f3c20215b0ca21e401386195bbfc178f6c2a1e4fbd2ca976a00b0a0f4555908620d841065630813610f36a7767e7baa320c4e4337d9bd08804340c0cb28 SHA512 c75ebd81b176f679f151b431a8148dee7c9ab9e1247adef39221744e57bebdeb8ffcb741ef6a230be6e23953d3f78fdf4043f0625a06cc85df5c49e3c8c2a05d +EBUILD speech-dispatcher-0.11.5.ebuild 2760 BLAKE2B 7f31c7b09181aa29fc10564edd27ea639346e461a1e77966a18c974051d6e7d0bc7654fa80bb76e4ce752c9ca04d7299c7c25eab41322ec07dcfd814617e5f28 SHA512 76dac22ebf94dc9bbcac64c6d68d55b7f14c267a960e59a31b483a50fd5887954d2d8b3b06f68125595bc4f1be1b4021c8ef557936297b6501b2de8c609a3521 MISC metadata.xml 721 BLAKE2B 926d97f613858988bb43ba292b45699cd0d2df876d05db38767296d1408d6f60580f32a019cd1541a517ad27606185d046838637ee4c4c27c6c70ced30d0d492 SHA512 22eeafb4e7bad9bdd96f5b950a5bbdd5259734b589bfb34876fe758a0779a5dda532b0bd696acf9da5ff124bb78e3b58d6787bd8bdc698879e34e6c8ed5bcd45 diff --git a/app-accessibility/speech-dispatcher/speech-dispatcher-0.11.5.ebuild b/app-accessibility/speech-dispatcher/speech-dispatcher-0.11.5.ebuild new file mode 100644 index 000000000000..60fd9d36a48e --- /dev/null +++ b/app-accessibility/speech-dispatcher/speech-dispatcher-0.11.5.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit python-r1 systemd + +DESCRIPTION="Speech synthesis interface" +HOMEPAGE="https://freebsoft.org/speechd" +SRC_URI="https://github.com/brailcom/speechd/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="alsa ao +espeak flite nas pulseaudio +python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND="python? ( ${PYTHON_DEPS} ) + >=dev-libs/dotconf-1.3 + >=dev-libs/glib-2.36:2 + >=media-libs/libsndfile-1.0.2 + alsa? ( media-libs/alsa-lib ) + ao? ( media-libs/libao ) + espeak? ( app-accessibility/espeak-ng ) + flite? ( app-accessibility/flite ) + nas? ( media-libs/nas ) + pulseaudio? ( media-libs/libpulse )" +RDEPEND="${DEPEND} + python? ( dev-python/pyxdg[${PYTHON_USEDEP}] )" +BDEPEND=" + sys-apps/help2man + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig" + +src_configure() { + # bug 573732 + export GIT_CEILING_DIRECTORIES="${WORKDIR}" + + local myeconfargs=( + --disable-ltdl + --disable-python + --disable-static + --with-baratinoo=no + --with-ibmtts=no + --with-kali=no + --with-pico=no + --with-voxin=no + --with-espeak=no + $(use_with alsa) + $(use_with ao libao) + $(use_with espeak espeak-ng) + $(use_with flite) + $(use_with nas) + $(use_with pulseaudio pulse) + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + use python && python_copy_sources + + emake + + if use python; then + building() { + cd src/api/python || die + emake \ + pyexecdir="$(python_get_sitedir)" \ + pythondir="$(python_get_sitedir)" + } + python_foreach_impl run_in_build_dir building + fi +} + +src_install() { + default + + if use python; then + installation() { + cd src/api/python || die + emake \ + DESTDIR="${D}" \ + pyexecdir="$(python_get_sitedir)" \ + pythondir="$(python_get_sitedir)" \ + install + } + python_foreach_impl run_in_build_dir installation + python_replicate_script "${ED}"/usr/bin/spd-conf + python_foreach_impl python_optimize + fi + + find "${D}" -name '*.la' -type f -delete || die +} + +pkg_postinst() { + local editconfig="n" + if ! use espeak; then + ewarn "You have disabled espeak-ng, which is speech-dispatcher's" + ewarn "default speech synthesizer." + ewarn + editconfig="y" + fi + if ! use pulseaudio; then + ewarn "You have disabled pulseaudio support." + ewarn "pulseaudio is speech-dispatcher's default audio subsystem." + ewarn + editconfig="y" + fi + if [[ "${editconfig}" == "y" ]]; then + ewarn "You must edit ${EROOT}/etc/speech-dispatcher/speechd.conf" + ewarn "and make sure the settings there match your system." + ewarn + fi +} |