From 9f2a1fcece87647ca73971494f730da379ba2a6b Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 26 Jul 2016 08:52:23 -0500 Subject: app-accessibility/espeakup: 0.80 version bump Package-Manager: portage-2.2.28 --- app-accessibility/espeakup/espeakup-0.80.ebuild | 63 +++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 app-accessibility/espeakup/espeakup-0.80.ebuild (limited to 'app-accessibility/espeakup/espeakup-0.80.ebuild') diff --git a/app-accessibility/espeakup/espeakup-0.80.ebuild b/app-accessibility/espeakup/espeakup-0.80.ebuild new file mode 100644 index 000000000000..c50eee21a251 --- /dev/null +++ b/app-accessibility/espeakup/espeakup-0.80.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://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 +fi + +inherit linux-info + +DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup" +HOMEPAGE="https://github.com/williamh/espeakup" + +LICENSE="GPL-3" +SLOT="0" +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_install() { + emake DESTDIR="${D}" PREFIX=/usr install + einstalldocs + 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." +} -- cgit v1.2.3-65-gdbad