-diff -Naur yasr-0.6.9.orig/Makefile.am yasr-0.6.9/Makefile.am
---- yasr-0.6.9.orig/Makefile.am 2008-02-02 06:44:05.000000000 -0600
-+++ yasr-0.6.9/Makefile.am 2009-02-06 08:37:07.000000000 -0600
+--- a/Makefile.am
++++ b/Makefile.am
@@ -7,7 +7,6 @@
SUBDIRS = \
README-ru
-ACLOCAL_AMFLAGS = -I m4
-diff -Naur yasr-0.6.9.orig/configure.in yasr-0.6.9/configure.in
---- yasr-0.6.9.orig/configure.in 2008-02-02 07:09:04.000000000 -0600
-+++ yasr-0.6.9/configure.in 2009-02-06 08:36:43.000000000 -0600
+--- a/configure.in
++++ b/configure.in
@@ -59,8 +59,7 @@
AM_GNU_GETTEXT(external)
AM_GNU_GETTEXT_VERSION([0.17])
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=2
-inherit autotools eutils
+EAPI=6
-DESCRIPTION="general-purpose console screen reader"
+inherit autotools
+
+DESCRIPTION="General-purpose console screen reader"
HOMEPAGE="http://yasr.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
RDEPEND=""
DEPEND="nls? ( sys-devel/gettext )"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.6.9-automake113.patch
+ "${FILESDIR}"/${PN}-0.6.9-gettext019.patch
+ "${FILESDIR}"/${PN}-0.6.9-gcc43.patch
+ "${FILESDIR}"/${PN}-0.6.9-remove-m4.patch
+)
+
src_prepare() {
+ default
local x=/usr/share/gettext/po/Makefile.in.in
- [[ -e $x ]] && cp -f $x po/ #330879
+ [[ -e $x ]] && cp -f $x po/ || die #330879
+
+ rm -r "${S}"/m4 || die
- epatch "${FILESDIR}"/${P}-automake113.patch \
- "${FILESDIR}"/${P}-gettext018.patch \
- "${FILESDIR}"/${P}-gcc43.patch \
- "${FILESDIR}"/${P}-remove-m4.patch
+ sed -i \
+ 's:^\(synthesizer=emacspeak server\):#\1:
+ s:^\(synthesizer port=|/usr/local/bin/eflite\):#\1:
+ s:^#\(synthesizer=speech dispatcher\):\1:
+ s:^#\(synthesizer port=127.0.0.1.6560\):\1:' yasr.conf || die
- rm -r "${S}"/m4
+ mv configure.{in,ac} || die
eautoreconf
}
$(use_enable nls)
}
-src_install() {
- emake DESTDIR="${D}" install || die
- dodoc README ChangeLog AUTHORS BUGS CREDITS
- dosed \
- 's:^\(synthesizer=emacspeak server\):#\1:
- s:^\(synthesizer port=|/usr/local/bin/eflite\):#\1:
- s:^#\(synthesizer=speech dispatcher\):\1:
- s:^#\(synthesizer port=127.0.0.1.6560\):\1:' /etc/yasr/yasr.conf
-}
-
pkg_postinst() {
elog
elog "Speech-dispatcher is configured as the default synthesizer for yasr."