From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/espeakup/, app-accessibility/espeakup/files/
Date: Sat, 7 May 2016 02:39:18 +0000 (UTC) [thread overview]
Message-ID: <1462588351.13609ac9fd7503d4d2fdef095a9ba016436e92c8.williamh@gentoo> (raw)
commit: 13609ac9fd7503d4d2fdef095a9ba016436e92c8
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sat May 7 02:30:03 2016 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat May 7 02:32:31 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13609ac9
app-accessibility/espeakup: revision bump for /sbin/openrc-run migration
Package-Manager: portage-2.2.26
RepoMan-Options: --force
app-accessibility/espeakup/espeakup-0.71-r1.ebuild | 59 ++++++++++++++++++++++
app-accessibility/espeakup/files/espeakup.rc | 25 ++-------
2 files changed, 64 insertions(+), 20 deletions(-)
diff --git a/app-accessibility/espeakup/espeakup-0.71-r1.ebuild b/app-accessibility/espeakup/espeakup-0.71-r1.ebuild
new file mode 100644
index 0000000..93f546e
--- /dev/null
+++ b/app-accessibility/espeakup/espeakup-0.71-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info
+
+DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup"
+HOMEPAGE="http://www.linux-speakup.org"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+COMMON_DEPEND="|| (
+ app-accessibility/espeak[portaudio]
+ app-accessibility/espeak[pulseaudio] )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+
+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_compile() {
+ emake || die "Compile failed."
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed."
+ dodoc ChangeLog README ToDo
+ newconfd "${FILESDIR}"/espeakup.confd espeakup
+ newinitd "${FILESDIR}"/espeakup.rc espeakup
+}
+
+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."
+}
diff --git a/app-accessibility/espeakup/files/espeakup.rc b/app-accessibility/espeakup/files/espeakup.rc
index f0777e1..bdc2948 100644
--- a/app-accessibility/espeakup/files/espeakup.rc
+++ b/app-accessibility/espeakup/files/espeakup.rc
@@ -1,28 +1,13 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
+command=/usr/bin/espeakup
+command_args="${espeakup_opts:-${ESPEAKUP_OPTS}}"
+pidfile=/run/espeakup.pid
+
depend() {
after modules
use alsasound pulseaudio
}
-
-start() {
- ebegin "Starting espeakup"
- start-stop-daemon --start --exec /usr/bin/espeakup \
- -- ${ESPEAKUP_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping espeakup"
- start-stop-daemon --stop --pidfile /var/run/espeakup.pid
- eend $?
-}
-
-restart() {
- svc_stop || exit 1
- sleep 2
- svc_start || exit 1
-}
next reply other threads:[~2016-05-07 2:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-07 2:39 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-07-01 21:23 [gentoo-commits] repo/gentoo:master commit in: app-accessibility/espeakup/, app-accessibility/espeakup/files/ William Hubbs
2025-07-27 9:28 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1462588351.13609ac9fd7503d4d2fdef095a9ba016436e92c8.williamh@gentoo \
--to=williamh@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox