commit:     0fee17100e42b3229b28a3d16f2b28a09c41a539
Author:     Ian Jordan <immoloism <AT> gmail <DOT> com>
AuthorDate: Sat Jul 26 23:39:18 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 27 09:27:49 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fee1710

app-accessibility/espeakup: Add module autoloading

Adding the speakup_soft module to be autoloaded when installing this package as 
it will fail launch the service without it enabled.

This will greatly improve accessibility under Gentoo including the offerings we 
support in the live media.

Bumped to EAPI8 as a freebie.

Signed-off-by: Ian Jordan <immoloism <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43178
Closes: https://github.com/gentoo/gentoo/pull/43178
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{espeakup-9999.ebuild => espeakup-0.90-r2.ebuild}       | 13 +++++++++----
 app-accessibility/espeakup/espeakup-9999.ebuild             |  8 +++++---
 app-accessibility/espeakup/files/modules.espeakup           |  1 +
 3 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/app-accessibility/espeakup/espeakup-9999.ebuild 
b/app-accessibility/espeakup/espeakup-0.90-r2.ebuild
similarity index 78%
copy from app-accessibility/espeakup/espeakup-9999.ebuild
copy to app-accessibility/espeakup/espeakup-0.90-r2.ebuild
index 503c5bd7ea0c..30061f2f1470 100644
--- a/app-accessibility/espeakup/espeakup-9999.ebuild
+++ b/app-accessibility/espeakup/espeakup-0.90-r2.ebuild
@@ -1,20 +1,20 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="https://github.com/linux-speakup/espeakup.git";
        inherit git-r3
 else
        
SRC_URI="https://github.com/linux-speakup/espeakup/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-       KEYWORDS="~amd64"
+       KEYWORDS="~amd64 ~arm ~arm64 ~loong ~x86"
 fi
 
 inherit linux-info meson
 
 DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup"
-HOMEPAGE="https://github.com/williamh/espeakup";
+HOMEPAGE="https://linux-speakup.org/";
 
 LICENSE="GPL-3"
 SLOT="0"
@@ -27,6 +27,8 @@ RDEPEND="${COMMON_DEPEND}"
 BDEPEND="man? ( app-text/ronn-ng )"
 
 CONFIG_CHECK="~SPEAKUP ~SPEAKUP_SYNTH_SOFT"
+ERROR_SPEAKUP="CONFIG_SPEAKUP is not enabled in this kernel!"
+ERROR_SPEAKUP_SYNTH_SOFT="CONFIG_SPEAKUP_SYNTH_SOFT is not enabled in this 
kernel!"
 
 src_configure() {
        local emesonargs
@@ -42,6 +44,9 @@ src_install() {
        einstalldocs
        newconfd "${FILESDIR}"/espeakup.confd espeakup
        newinitd "${FILESDIR}"/espeakup.initd espeakup
+       insinto /etc/modprobe.d
+       newins "${FILESDIR}/modules.espeakup" espeakup.conf
+
 }
 
 pkg_postinst() {

diff --git a/app-accessibility/espeakup/espeakup-9999.ebuild 
b/app-accessibility/espeakup/espeakup-9999.ebuild
index 503c5bd7ea0c..745f48752b47 100644
--- a/app-accessibility/espeakup/espeakup-9999.ebuild
+++ b/app-accessibility/espeakup/espeakup-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="https://github.com/linux-speakup/espeakup.git";
@@ -14,7 +14,7 @@ fi
 inherit linux-info meson
 
 DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup"
-HOMEPAGE="https://github.com/williamh/espeakup";
+HOMEPAGE="https://linux-speakup.org/";
 
 LICENSE="GPL-3"
 SLOT="0"
@@ -42,6 +42,8 @@ src_install() {
        einstalldocs
        newconfd "${FILESDIR}"/espeakup.confd espeakup
        newinitd "${FILESDIR}"/espeakup.initd espeakup
+       insinto /etc/modprobe.d
+       newins "${FILESDIR}/modules.espeakup" espeakup.conf
 }
 
 pkg_postinst() {

diff --git a/app-accessibility/espeakup/files/modules.espeakup 
b/app-accessibility/espeakup/files/modules.espeakup
new file mode 100644
index 000000000000..38d53913d181
--- /dev/null
+++ b/app-accessibility/espeakup/files/modules.espeakup
@@ -0,0 +1 @@
+speakup_soft

Reply via email to