# HG changeset patch # User Paul Issott # Date 1265479664 0 # Node ID 4966a9f6f2079033057bceba3b6a329391c349e1 # Parent febcdac4b846d27771e7c9507d432c9b69eb4865 Add: yasr diff -r febcdac4b846 -r 4966a9f6f207 yasr/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/yasr/receipt Sat Feb 06 18:07:44 2010 +0000 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="yasr" +VERSION="0.6.9" +CATEGORY="utilities" +SHORT_DESC="General purpose console screen reader." +MAINTAINER="paul@slitaz.org" +DEPENDS="speech-dispatcher espeak" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://yasr.sourceforge.net/" +WGET_URL="http://prdownloads.sourceforge.net/yasr/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src/yasr + patch -p0 < ../../stuff/yasr.patch || exit 1 + cd ../ + ./configure \ + --prefix=/usr + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/share/yasr $fs/usr/share + + # enable speech-synthesizer in config file + cd $fs/usr/share/yasr + sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \ + s/#synthesizer=speech/synthesizer=speech/; \ + s/synthesizer port=|/#synthesizer port=|/; \ + s/#synthesizer port=127./synthesizer port=127./' yasr.conf +} + diff -r febcdac4b846 -r 4966a9f6f207 yasr/stuff/yasr.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/yasr/stuff/yasr.patch Sat Feb 06 18:07:44 2010 +0000 @@ -0,0 +1,22 @@ +--- yasr.h.old Thu Jan 31 12:56:45 2008 ++++ yasr.h Sat Jan 30 11:37:31 2010 +@@ -309,7 +309,9 @@ + extern void opt_write(FILE * fp); + + /* openpty.c prototypes */ ++#ifndef HAVE_OPENPTY + extern int openpty(int *, int *, char *, struct termios *, struct winsize *); ++#endif + + /* cfmakeraw.c prototypes */ + extern void cfmakeraw(struct termios *); +@@ -318,7 +320,9 @@ + extern int login_tty(int); + + /* forkpty.c prototypes */ ++#ifndef HAVE_FORKPTY + extern int forkpty(int *, char *, struct termios *, struct winsize *); ++#endif + + /* tbc - Would it be more efficient to ensure that "blank" grids always held + ascii 0x20 rather than ascii 0x00? */