Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/yasr/files/, app-accessibility/yasr/
Date: Thu, 31 May 2018 13:23:07
Message-Id: 1527772976.d1818df330a374f668db868f1be2086839530d5b.bman@gentoo
1 commit: d1818df330a374f668db868f1be2086839530d5b
2 Author: Marty E. Plummer <hanetzer <AT> startmail <DOT> com>
3 AuthorDate: Thu Mar 22 15:10:41 2018 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Thu May 31 13:22:56 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1818df3
7
8 app-accessibility/yasr: EAPI bump and patches cleanup
9
10 Bump EAPI to 6, cleanup patches, remove eutils, move dosed from
11 src_install to src_prepare (and change it to normal sed -i), allow
12 building with sys-devel/gettext-0.19.8.1
13
14 Package-Manager: Portage-2.3.24, Repoman-2.3.6
15 Closes: https://github.com/gentoo/gentoo/pull/7583
16
17 .../yasr/files/yasr-0.6.9-automake113.patch | 2 --
18 .../yasr/files/yasr-0.6.9-gcc43.patch | 5 ++-
19 ...ettext018.patch => yasr-0.6.9-gettext019.patch} | 4 +--
20 .../yasr/files/yasr-0.6.9-remove-m4.patch | 10 +++---
21 app-accessibility/yasr/yasr-0.6.9-r1.ebuild | 42 +++++++++++-----------
22 5 files changed, 29 insertions(+), 34 deletions(-)
23
24 diff --git a/app-accessibility/yasr/files/yasr-0.6.9-automake113.patch b/app-accessibility/yasr/files/yasr-0.6.9-automake113.patch
25 index 2fbc32c2e98..0697a17fdc3 100644
26 --- a/app-accessibility/yasr/files/yasr-0.6.9-automake113.patch
27 +++ b/app-accessibility/yasr/files/yasr-0.6.9-automake113.patch
28 @@ -1,5 +1,3 @@
29 -diff --git a/configure.in b/configure.in
30 -index d78e8b2..15e8666 100644
31 --- a/configure.in
32 +++ b/configure.in
33 @@ -2,11 +2,10 @@ dnl Process this file with autoconf to produce a configure script.
34
35 diff --git a/app-accessibility/yasr/files/yasr-0.6.9-gcc43.patch b/app-accessibility/yasr/files/yasr-0.6.9-gcc43.patch
36 index ee2b1a6ef7b..ccff0009e9e 100644
37 --- a/app-accessibility/yasr/files/yasr-0.6.9-gcc43.patch
38 +++ b/app-accessibility/yasr/files/yasr-0.6.9-gcc43.patch
39 @@ -1,6 +1,5 @@
40 -diff -NrU5 yasr-0.6.9.orig/yasr/yasr.h yasr-0.6.9/yasr/yasr.h
41 ---- yasr-0.6.9.orig/yasr/yasr.h 2008-06-29 01:23:44.000000000 +0200
42 -+++ yasr-0.6.9/yasr/yasr.h 2008-06-29 01:37:00.000000000 +0200
43 +--- a/yasr/yasr.h
44 ++++ b/yasr/yasr.h
45 @@ -306,22 +306,10 @@
46 extern void opt_say(int num, int flag);
47 extern void opt_set(int num, void *val);
48
49 diff --git a/app-accessibility/yasr/files/yasr-0.6.9-gettext018.patch b/app-accessibility/yasr/files/yasr-0.6.9-gettext019.patch
50 similarity index 62%
51 rename from app-accessibility/yasr/files/yasr-0.6.9-gettext018.patch
52 rename to app-accessibility/yasr/files/yasr-0.6.9-gettext019.patch
53 index 26337dbc673..89b2adfcd45 100644
54 --- a/app-accessibility/yasr/files/yasr-0.6.9-gettext018.patch
55 +++ b/app-accessibility/yasr/files/yasr-0.6.9-gettext019.patch
56 @@ -1,5 +1,3 @@
57 -diff --git a/configure.in b/configure.in
58 -index c26f577..d78e8b2 100644
59 --- a/configure.in
60 +++ b/configure.in
61 @@ -57,7 +57,7 @@ fi
62 @@ -7,7 +5,7 @@ index c26f577..d78e8b2 100644
63
64 AM_GNU_GETTEXT(external)
65 -AM_GNU_GETTEXT_VERSION([0.17])
66 -+AM_GNU_GETTEXT_VERSION([0.18.1])
67 ++AM_GNU_GETTEXT_VERSION([0.19])
68
69 AC_OUTPUT([ m4/Makefile
70 Makefile
71
72 diff --git a/app-accessibility/yasr/files/yasr-0.6.9-remove-m4.patch b/app-accessibility/yasr/files/yasr-0.6.9-remove-m4.patch
73 index fa05f0791fc..4c2a345df58 100644
74 --- a/app-accessibility/yasr/files/yasr-0.6.9-remove-m4.patch
75 +++ b/app-accessibility/yasr/files/yasr-0.6.9-remove-m4.patch
76 @@ -1,6 +1,5 @@
77 -diff -Naur yasr-0.6.9.orig/Makefile.am yasr-0.6.9/Makefile.am
78 ---- yasr-0.6.9.orig/Makefile.am 2008-02-02 06:44:05.000000000 -0600
79 -+++ yasr-0.6.9/Makefile.am 2009-02-06 08:37:07.000000000 -0600
80 +--- a/Makefile.am
81 ++++ b/Makefile.am
82 @@ -7,7 +7,6 @@
83
84 SUBDIRS = \
85 @@ -14,9 +13,8 @@ diff -Naur yasr-0.6.9.orig/Makefile.am yasr-0.6.9/Makefile.am
86 README-ru
87
88 -ACLOCAL_AMFLAGS = -I m4
89 -diff -Naur yasr-0.6.9.orig/configure.in yasr-0.6.9/configure.in
90 ---- yasr-0.6.9.orig/configure.in 2008-02-02 07:09:04.000000000 -0600
91 -+++ yasr-0.6.9/configure.in 2009-02-06 08:36:43.000000000 -0600
92 +--- a/configure.in
93 ++++ b/configure.in
94 @@ -59,8 +59,7 @@
95 AM_GNU_GETTEXT(external)
96 AM_GNU_GETTEXT_VERSION([0.17])
97
98 diff --git a/app-accessibility/yasr/yasr-0.6.9-r1.ebuild b/app-accessibility/yasr/yasr-0.6.9-r1.ebuild
99 index 2bf8a4603be..9c0ccb97b09 100644
100 --- a/app-accessibility/yasr/yasr-0.6.9-r1.ebuild
101 +++ b/app-accessibility/yasr/yasr-0.6.9-r1.ebuild
102 @@ -1,10 +1,11 @@
103 -# Copyright 1999-2013 Gentoo Foundation
104 +# Copyright 1999-2018 Gentoo Foundation
105 # Distributed under the terms of the GNU General Public License v2
106
107 -EAPI=2
108 -inherit autotools eutils
109 +EAPI=6
110
111 -DESCRIPTION="general-purpose console screen reader"
112 +inherit autotools
113 +
114 +DESCRIPTION="General-purpose console screen reader"
115 HOMEPAGE="http://yasr.sourceforge.net/"
116 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
117
118 @@ -16,16 +17,27 @@ IUSE="nls"
119 RDEPEND=""
120 DEPEND="nls? ( sys-devel/gettext )"
121
122 +PATCHES=(
123 + "${FILESDIR}"/${PN}-0.6.9-automake113.patch
124 + "${FILESDIR}"/${PN}-0.6.9-gettext019.patch
125 + "${FILESDIR}"/${PN}-0.6.9-gcc43.patch
126 + "${FILESDIR}"/${PN}-0.6.9-remove-m4.patch
127 +)
128 +
129 src_prepare() {
130 + default
131 local x=/usr/share/gettext/po/Makefile.in.in
132 - [[ -e $x ]] && cp -f $x po/ #330879
133 + [[ -e $x ]] && cp -f $x po/ || die #330879
134 +
135 + rm -r "${S}"/m4 || die
136
137 - epatch "${FILESDIR}"/${P}-automake113.patch \
138 - "${FILESDIR}"/${P}-gettext018.patch \
139 - "${FILESDIR}"/${P}-gcc43.patch \
140 - "${FILESDIR}"/${P}-remove-m4.patch
141 + sed -i \
142 + 's:^\(synthesizer=emacspeak server\):#\1:
143 + s:^\(synthesizer port=|/usr/local/bin/eflite\):#\1:
144 + s:^#\(synthesizer=speech dispatcher\):\1:
145 + s:^#\(synthesizer port=127.0.0.1.6560\):\1:' yasr.conf || die
146
147 - rm -r "${S}"/m4
148 + mv configure.{in,ac} || die
149 eautoreconf
150 }
151
152 @@ -36,16 +48,6 @@ src_configure() {
153 $(use_enable nls)
154 }
155
156 -src_install() {
157 - emake DESTDIR="${D}" install || die
158 - dodoc README ChangeLog AUTHORS BUGS CREDITS
159 - dosed \
160 - 's:^\(synthesizer=emacspeak server\):#\1:
161 - s:^\(synthesizer port=|/usr/local/bin/eflite\):#\1:
162 - s:^#\(synthesizer=speech dispatcher\):\1:
163 - s:^#\(synthesizer port=127.0.0.1.6560\):\1:' /etc/yasr/yasr.conf
164 -}
165 -
166 pkg_postinst() {
167 elog
168 elog "Speech-dispatcher is configured as the default synthesizer for yasr."