mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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@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@gentoo.org>
This commit is contained in:
61
app-accessibility/espeakup/espeakup-0.90-r2.ebuild
Normal file
61
app-accessibility/espeakup/espeakup-0.90-r2.ebuild
Normal file
@@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
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 ~arm ~arm64 ~loong ~x86"
|
||||
fi
|
||||
|
||||
inherit linux-info meson
|
||||
|
||||
DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup"
|
||||
HOMEPAGE="https://linux-speakup.org/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="man systemd"
|
||||
|
||||
COMMON_DEPEND="app-accessibility/espeak-ng[sound]
|
||||
media-libs/alsa-lib"
|
||||
DEPEND="${COMMON_DEPEND}"
|
||||
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
|
||||
emesonargs=(
|
||||
$(meson_feature man)
|
||||
$(meson_feature systemd)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_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() {
|
||||
elog "To get espeakup to start automatically, it is currently recommended"
|
||||
elog "that you add it to the default run level, by giving the following"
|
||||
elog "command as root."
|
||||
elog
|
||||
elog "rc-update add espeakup default"
|
||||
elog
|
||||
elog "You can also set a default voice now for espeakup."
|
||||
elog "See /etc/conf.d/espeakup for how to do this."
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
1
app-accessibility/espeakup/files/modules.espeakup
Normal file
1
app-accessibility/espeakup/files/modules.espeakup
Normal file
@@ -0,0 +1 @@
|
||||
speakup_soft
|
||||
Reference in New Issue
Block a user