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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Jun 25 13:54:08 2011 UTC (3 years, 2 months ago) by williamh
Branch: MAIN
Changes since 1.8: +10 -5 lines
migrate to git-2 eclass.

(Portage version: 2.2.0_alpha41/cvs/Linux i686)

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-9999.ebuild,v 1.8 2011/05/16 23:25:49 flameeyes Exp $
4
5 if [[ ${PV} == "9999" ]] ; then
6 EGIT_REPO_URI="git://github.com/williamh/espeakup.git"
7 vcs=git-2
8 else
9 SRC_URI=""
10 KEYWORDS="~amd64 ~x86"
11 fi
12
13 inherit $vcs linux-info
14
15 DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup"
16 HOMEPAGE="http://www.github.com/williamh/espeakup"
17
18 LICENSE="GPL-3"
19 SLOT="0"
20 IUSE=""
21
22 DEPEND="app-accessibility/espeak"
23 RDEPEND="${DEPEND}"
24
25 CONFIG_CHECK="~SPEAKUP ~SPEAKUP_SYNTH_SOFT"
26 ERROR_SPEAKUP="CONFIG_SPEAKUP is not enabled in this kernel!"
27 ERROR_SPEAKUP_SYNTH_SOFT="CONFIG_SPEAKUP_SYNTH_SOFT is not enabled in this kernel!"
28
29 pkg_setup() {
30 if kernel_is -ge 2 6 37; then
31 check_extra_config
32 elif ! has_version app-accessibility/speakup; then
33 ewarn "Cannot find speakup on your system."
34 ewarn "Please upgrade your kernel to 2.6.37 or later and enable the"
35 ewarn "CONFIG_SPEAKUP and CONFIG_SPEAKUP_SYNTH_SOFT options"
36 ewarn "or install app-accessibility/speakup."
37 fi
38 }
39
40 src_compile() {
41 emake || die "Compile failed."
42 }
43
44 src_install() {
45 emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed."
46 dodoc README ToDo
47 newconfd "${FILESDIR}"/espeakup.confd espeakup
48 newinitd "${FILESDIR}"/espeakup.rc espeakup
49 }
50
51 pkg_postinst() {
52 elog "To get espeakup to start automatically, it is currently recommended"
53 elog "that you add it to the default run level, by giving the following"
54 elog "command as root."
55 elog
56 elog "rc-update add espeakup default"
57 elog
58 elog "You can also set a default voice now for espeakup."
59 elog "See /etc/conf.d/espeakup for how to do this."
60 }

  ViewVC Help
Powered by ViewVC 1.1.20