wok-next rev 4891
Add: yasr
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Feb 06 18:07:44 2010 +0000 (2010-02-06) |
parents | febcdac4b846 |
children | 9dd4e8cd0abb |
files | yasr/receipt yasr/stuff/yasr.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/yasr/receipt Sat Feb 06 18:07:44 2010 +0000 1.3 @@ -0,0 +1,38 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="yasr" 1.7 +VERSION="0.6.9" 1.8 +CATEGORY="utilities" 1.9 +SHORT_DESC="General purpose console screen reader." 1.10 +MAINTAINER="paul@slitaz.org" 1.11 +DEPENDS="speech-dispatcher espeak" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://yasr.sourceforge.net/" 1.14 +WGET_URL="http://prdownloads.sourceforge.net/yasr/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $src/yasr 1.20 + patch -p0 < ../../stuff/yasr.patch || exit 1 1.21 + cd ../ 1.22 + ./configure \ 1.23 + --prefix=/usr 1.24 + make && make DESTDIR=$PWD/_pkg install 1.25 +} 1.26 + 1.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 +genpkg_rules() 1.29 +{ 1.30 + mkdir -p $fs/usr/share 1.31 + cp -a $_pkg/usr/bin $fs/usr 1.32 + cp -a $_pkg/usr/share/yasr $fs/usr/share 1.33 + 1.34 + # enable speech-synthesizer in config file 1.35 + cd $fs/usr/share/yasr 1.36 + sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \ 1.37 + s/#synthesizer=speech/synthesizer=speech/; \ 1.38 + s/synthesizer port=|/#synthesizer port=|/; \ 1.39 + s/#synthesizer port=127./synthesizer port=127./' yasr.conf 1.40 +} 1.41 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/yasr/stuff/yasr.patch Sat Feb 06 18:07:44 2010 +0000 2.3 @@ -0,0 +1,22 @@ 2.4 +--- yasr.h.old Thu Jan 31 12:56:45 2008 2.5 ++++ yasr.h Sat Jan 30 11:37:31 2010 2.6 +@@ -309,7 +309,9 @@ 2.7 + extern void opt_write(FILE * fp); 2.8 + 2.9 + /* openpty.c prototypes */ 2.10 ++#ifndef HAVE_OPENPTY 2.11 + extern int openpty(int *, int *, char *, struct termios *, struct winsize *); 2.12 ++#endif 2.13 + 2.14 + /* cfmakeraw.c prototypes */ 2.15 + extern void cfmakeraw(struct termios *); 2.16 +@@ -318,7 +320,9 @@ 2.17 + extern int login_tty(int); 2.18 + 2.19 + /* forkpty.c prototypes */ 2.20 ++#ifndef HAVE_FORKPTY 2.21 + extern int forkpty(int *, char *, struct termios *, struct winsize *); 2.22 ++#endif 2.23 + 2.24 + /* tbc - Would it be more efficient to ensure that "blank" grids always held 2.25 + ascii 0x20 rather than ascii 0x00? */