/[gentoo-x86]/media-sound/speechd/speechd-0.56.ebuild
Gentoo

Contents of /media-sound/speechd/speechd-0.56.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Mar 17 03:39:11 2004 UTC (16 years, 8 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Moving to app-accessibility/speechd

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/media-sound/speechd/speechd-0.56.ebuild,v 1.9 2004/02/19 04:02:22 augustus Exp $
4
5 S=${WORKDIR}/${PN}
6 DESCRIPTION="Implements /dev/speech (any text written to /dev/speech will be spoken aloud)"
7 HOMEPAGE="http://www.speechio.org/"
8 SRC_URI="http://www.speechio.org/dl/${P}.tar.gz"
9
10 SLOT="0"
11 LICENSE="GPL-2"
12 KEYWORDS="x86 amd64"
13
14 DEPEND="dev-lang/perl
15 media-sound/festival"
16
17 src_compile() {
18 emake || die
19 }
20
21 src_install () {
22 dobin ${S}/bin/speechd ${S}/bin/catspeech
23 insinto /etc
24 doins speechdrc speechd.sub
25 doman ${S}/man/man1/*.1
26 dodoc README AUTHORS CHANGELOG COPYING TODO
27 }
28
29 pkg_postinst () {
30 if ! grep -q ^speech: /etc/group ; then
31 groupadd speech || die "problem adding group speech"
32 fi
33
34 einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
35 einfo "to build the neccessary FIFO on /dev/speech."
36 }
37
38 pkg_config () {
39 mkfifo --mode=0660 /dev/speech
40 chown root:speech /dev/speech
41
42 einfo "FIFO has been created on /dev/speech"
43 einfo ""
44 einfo "In order for non-root users to take advantage of /dev/speech"
45 einfo "they must be added to the 'speech' group."
46 }
47
48 pkg_postrm () {
49 einfo "Removing FIFO at /dev/speech ..."
50 rm -f /dev/speech
51 }

  ViewVC Help
Powered by ViewVC 1.1.20