summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-07-03 14:59:00 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-07-03 14:59:58 -0500
commitae2b76c08dfb897f93b6124bfcaa8cd6b090920d (patch)
tree4ef859116162f2057cff28bf26a6e3fe584bb3d6 /app-accessibility/espeakup
parentdev-perl/Math-VecStat: EAPI=8 bump (diff)
downloadgentoo-ae2b76c08dfb897f93b6124bfcaa8cd6b090920d.tar.gz
gentoo-ae2b76c08dfb897f93b6124bfcaa8cd6b090920d.tar.bz2
gentoo-ae2b76c08dfb897f93b6124bfcaa8cd6b090920d.zip
app-accessibility/espeakup: sync live
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-accessibility/espeakup')
-rw-r--r--app-accessibility/espeakup/espeakup-9999.ebuild44
1 files changed, 19 insertions, 25 deletions
diff --git a/app-accessibility/espeakup/espeakup-9999.ebuild b/app-accessibility/espeakup/espeakup-9999.ebuild
index 95a1e0ea06b2..a54813ed5d95 100644
--- a/app-accessibility/espeakup/espeakup-9999.ebuild
+++ b/app-accessibility/espeakup/espeakup-9999.ebuild
@@ -1,53 +1,47 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/williamh/espeakup.git"
inherit git-r3
else
- EGIT_COMMIT=v${PV}
- SRC_URI="https://github.com/williamh/espeakup/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
- inherit vcs-snapshot
+ SRC_URI="https://github.com/linux-speakup/espeakup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
fi
-inherit linux-info
+inherit linux-info meson
DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup"
HOMEPAGE="https://github.com/williamh/espeakup"
LICENSE="GPL-3"
SLOT="0"
-IUSE=""
+IUSE="man systemd"
-COMMON_DEPEND="|| (
- app-accessibility/espeak[portaudio]
- app-accessibility/espeak[pulseaudio] )"
+COMMON_DEPEND="app-accessibility/espeak-ng[sound]
+ media-libs/alsa-lib"
DEPEND="${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}"
+BDEPEND="man? ( app-text/ronn )"
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!"
-
-pkg_setup() {
- if kernel_is -ge 2 6 37; then
- check_extra_config
- elif ! has_version app-accessibility/speakup; then
- ewarn "Cannot find speakup on your system."
- ewarn "Please upgrade your kernel to 2.6.37 or later and enable the"
- ewarn "CONFIG_SPEAKUP and CONFIG_SPEAKUP_SYNTH_SOFT options"
- ewarn "or install app-accessibility/speakup."
- fi
+
+src_configure() {
+ local emesonargs
+ emesonargs=(
+ $(meson_feature man)
+ $(meson_feature systemd)
+ )
+ meson_src_configure
}
src_install() {
- emake DESTDIR="${D}" PREFIX=/usr install
+ meson_src_install
einstalldocs
newconfd "${FILESDIR}"/espeakup.confd espeakup
- newinitd "${FILESDIR}"/espeakup.rc espeakup
+ newinitd "${FILESDIR}"/espeakup.initd espeakup
}
pkg_postinst() {