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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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-r1.ebuild,v 1.2 2004/03/14 13:13:32 dholm 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 ~ppc"
13 IUSE="esd"
14
15 DEPEND="dev-lang/perl"
16
17 RDEPEND="${DEPEND}
18 esd? ( media-sound/esound )
19 >=media-sound/festival-1.4.3-r1"
20
21 src_compile() {
22 emake || die
23 }
24
25 src_install () {
26 dobin ${S}/bin/speechd ${S}/bin/catspeech
27 use esd && dosed 's,#\($use_esd\),\1,g' /usr/bin/speechd
28 insinto /etc
29 doins speechd.sub speechdrc
30 exeinto /etc/init.d
31 newexe ${FILESDIR}/speechd.rc speechd
32 doman ${S}/man/man1/*.1
33 dodoc README AUTHORS CHANGELOG COPYING TODO speechio.faq
34 }
35
36 pkg_postinst () {
37 enewgroup speech
38
39 einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
40 einfo "to build the neccessary FIFO on /dev/speech."
41 }
42
43 pkg_config () {
44 mkfifo --mode=0660 /dev/speech
45 chown root:speech /dev/speech
46
47 einfo "FIFO has been created on /dev/speech"
48 einfo ""
49 einfo "In order for non-root users to take advantage of /dev/speech"
50 einfo "they must be added to the 'speech' group."
51 }
52
53 # This would get executed on an upgrade...
54 #pkg_postrm () {
55 # einfo "Removing FIFO at /dev/speech ..."
56 # rm -f /dev/speech
57 #}

  ViewVC Help
Powered by ViewVC 1.1.20