/[gentoo-x86]/app-accessibility/espeakup/espeakup-0.71.ebuild
Gentoo

Contents of /app-accessibility/espeakup/espeakup-0.71.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon May 16 23:25:49 2011 UTC (3 years, 7 months ago) by flameeyes
Branch: MAIN
Changes since 1.8: +5 -5 lines
Fix error message setting.

(Portage version: 2.2.0_alpha33/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeakup/espeakup-0.71.ebuild,v 1.8 2011/04/27 18:30:32 williamh Exp $
4
5 inherit linux-info
6
7 DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup"
8 HOMEPAGE="http://www.linux-speakup.org"
9 SRC_URI="mirror://gentoo/${P}.tar.bz2"
10
11 LICENSE="GPL-3"
12 SLOT="0"
13 KEYWORDS="amd64 x86"
14 IUSE=""
15
16 DEPEND="app-accessibility/espeak"
17 RDEPEND="${DEPEND}"
18
19 CONFIG_CHECK="~SPEAKUP ~SPEAKUP_SYNTH_SOFT"
20 ERROR_SPEAKUP="CONFIG_SPEAKUP is not enabled in this kernel!"
21 ERROR_SPEAKUP_SYNTH_SOFT="CONFIG_SPEAKUP_SYNTH_SOFT is not enabled in this kernel!"
22
23 pkg_setup() {
24 if kernel_is -ge 2 6 37; then
25 check_extra_config
26 elif ! has_version app-accessibility/speakup; then
27 ewarn "Cannot find speakup on your system."
28 ewarn "Please upgrade your kernel to 2.6.37 or later and enable the"
29 ewarn "CONFIG_SPEAKUP and CONFIG_SPEAKUP_SYNTH_SOFT options"
30 ewarn "or install app-accessibility/speakup."
31 fi
32 }
33
34 src_compile() {
35 emake || die "Compile failed."
36 }
37
38 src_install() {
39 emake DESTDIR="${D}" install || die "Install failed."
40 dodoc ChangeLog README ToDo
41 newconfd "${FILESDIR}"/espeakup.confd espeakup
42 newinitd "${FILESDIR}"/espeakup.rc espeakup
43 }
44
45 pkg_postinst() {
46 elog "To get espeakup to start automatically, it is currently recommended"
47 elog "that you add it to the default run level, by giving the following"
48 elog "command as root."
49 elog
50 elog "rc-update add espeakup default"
51 elog
52 elog "You can also set a default voice now for espeakup."
53 elog "See /etc/conf.d/espeakup for how to do this."
54 }

  ViewVC Help
Powered by ViewVC 1.1.20