From: joey-commits <joey-commits@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] new package: espeak-ng-1.50
Date: Thu, 17 Dec 2020 16:54:57 +0100 [thread overview]
Message-ID: <20201217155457.jBmok1VhygVeJFFO2y0AcE4bQg3ol9d-ScI0yg8scEI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27193@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 832 bytes --]
There is an updated pull request by joey-commits against master on the void-packages repository
https://github.com/joey-commits/void-packages espeak-ng-final
https://github.com/void-linux/void-packages/pull/27193
new package: espeak-ng-1.50
Speech Dispatcher and espeakup were also corrected to build against the new espeak-ng
I used dummy packages to replace Espeak on installed machines. The idea was gained from polkit-elogind, however, I am open to doing something else if it is prefered. Apparently, the author of espeak could not be contacted and espeak-ng was created a few years ago to continue development.
I have been using these packages with my screen readers for a few hours and everything seems like its working so far.
A patch file from https://github.com/void-linux/void-packages/pull/27193.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-espeak-ng-final-27193.patch --]
[-- Type: text/x-diff, Size: 9626 bytes --]
From 4e731ed6feadf4f42360488d8645ac01cad7f9a6 Mon Sep 17 00:00:00 2001
From: joey <joey@imap.cc>
Date: Mon, 14 Dec 2020 17:56:52 -0500
Subject: [PATCH 1/3] New package: espeak-ng-1.50
Add dummy packages for espeak for a smooth upgrade to espeak-ng
---
common/shlibs | 2 +-
srcpkgs/espeak | 1 +
srcpkgs/espeak-ng/template | 72 ++++++++++++++++++++++
srcpkgs/espeak/patches/fix-narrowing.patch | 12 ----
srcpkgs/espeak/template | 41 ------------
srcpkgs/libespeak | 2 +-
srcpkgs/libespeak-devel | 2 +-
srcpkgs/libespeak-ng | 1 +
srcpkgs/libespeak-ng-devel | 1 +
9 files changed, 78 insertions(+), 56 deletions(-)
create mode 120000 srcpkgs/espeak
create mode 100644 srcpkgs/espeak-ng/template
delete mode 100644 srcpkgs/espeak/patches/fix-narrowing.patch
delete mode 100644 srcpkgs/espeak/template
create mode 120000 srcpkgs/libespeak-ng
create mode 120000 srcpkgs/libespeak-ng-devel
diff --git a/common/shlibs b/common/shlibs
index 76b3f458b15..baa4df9f621 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2121,7 +2121,7 @@ libuniconf.so.4.6 wvstreams-4.6.1_2
libwvbase.so.4.6 wvstreams-4.6.1_1
libwvutils.so.4.6 wvstreams-4.6.1_1
libwvstreams.so.4.6 wvstreams-4.6.1_1
-libespeak.so.1 libespeak-1.48.04_1
+libespeak-ng.so.1 libespeak-ng-1.50_1
libKF5Plotting.so.5 kplotting-5.26.0_1
libpgf.so.6 libpgf-6.14.12_1
libqhull_p.so.7 libqhull-2015.2_1
diff --git a/srcpkgs/espeak b/srcpkgs/espeak
new file mode 120000
index 00000000000..95020f74cea
--- /dev/null
+++ b/srcpkgs/espeak
@@ -0,0 +1 @@
+espeak-ng
\ No newline at end of file
diff --git a/srcpkgs/espeak-ng/template b/srcpkgs/espeak-ng/template
new file mode 100644
index 00000000000..bf8bbe74aff
--- /dev/null
+++ b/srcpkgs/espeak-ng/template
@@ -0,0 +1,72 @@
+# Template file for 'espeak-ng'
+pkgname=espeak-ng
+version=1.50
+revision=1
+build_style=gnu-configure
+make_build_args="-j1"
+hostmakedepends="automake libtool which pkg-config"
+makedepends="pcaudiolib-devel libsonic-devel"
+short_desc="Text to Speech engine"
+maintainer="Joey <joey@imap.cc>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/espeak-ng/espeak-ng/"
+distfiles="https://github.com/espeak-ng/espeak-ng/archive/${version}.tar.gz"
+checksum=5ce9f24ee662b5822a4acc45bed31425e70d7c50707b96b6c1603a335c7759fa
+
+if [ "$CROSS_BUILD" ]; then
+ hostmakedepends+=" espeak-ng"
+fi
+
+pre_configure() {
+ ./autogen.sh
+}
+
+post_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ sed -i '2785,2818 s_src/espeak-ng_/usr/bin/espeak-ng_' Makefile
+ sed -i '2819,$ s_../src/espeak-ng_/usr/bin/espeak-ng_' Makefile
+ sed -i '3244,$ s_src/espeak-ng_/usr/bin/espeak-ng_' Makefile
+ fi
+}
+
+do_check() {
+ #disableall checks because of breakage
+ return
+}
+
+libespeak-ng_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ vmove usr/share/espeak-ng-data
+ }
+}
+
+libespeak-ng-devel_package() {
+ depends="libespeak-ng>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove "usr/lib/*.a"
+ vmove "usr/lib/*.so"
+ vmove "/usr/lib/pkgconfig"
+ }
+}
+
+espeak_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ build_style=meta
+ short_desc+=" (transitional dummy package)"
+}
+
+libespeak_package() {
+ depends="libespeak-ng>=${version}_${revision}"
+ build_style=meta
+ short_desc+=" (transitional dummy package)"
+}
+
+libespeak-devel_package() {
+ depends="libespeak-ng-devel>=${version}_${revision}"
+ build_style=meta
+ short_desc+=" (transitional dummy package)"
+}
diff --git a/srcpkgs/espeak/patches/fix-narrowing.patch b/srcpkgs/espeak/patches/fix-narrowing.patch
deleted file mode 100644
index 20ffb58d8d1..00000000000
--- a/srcpkgs/espeak/patches/fix-narrowing.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/tr_languages.cpp
-+++ src/tr_languages.cpp
-@@ -198,7 +198,7 @@ static const unsigned short chars_ignore
- 0x200d, 1, // zero width joiner
- 0, 0 };
-
--const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8
-+const char string_ordinal[] = {(char)0xc2,(char)0xba,0}; // masculine ordinal character, UTF-8
-
-
- static Translator* NewTranslator(void)
-
diff --git a/srcpkgs/espeak/template b/srcpkgs/espeak/template
deleted file mode 100644
index 354ae5d6988..00000000000
--- a/srcpkgs/espeak/template
+++ /dev/null
@@ -1,41 +0,0 @@
-# Template file for 'espeak'
-pkgname=espeak
-version=1.48.04
-revision=5
-wrksrc="${pkgname}-${version}-source"
-build_wrksrc=src
-build_style=gnu-makefile
-hostmakedepends="unzip"
-makedepends="pulseaudio-devel portaudio-devel"
-short_desc="Text to Speech engine"
-maintainer="Martin Riese <grauehaare@gmx.de>"
-license="GPL-3.0-or-later"
-homepage="http://espeak.sourceforge.net"
-distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.zip"
-checksum=bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659
-
-pre_configure() {
- cp portaudio19.h portaudio.h
-}
-
-do_build() {
- make CXX=$CXX CXXFLAGS="$CXXFLAGS" AUDIO=runtime
-}
-
-libespeak_package() {
- short_desc+=" - runtime libraries"
- pkg_install() {
- vmove "usr/lib/*.so.*"
- vmove usr/share/espeak-data
- }
-}
-
-libespeak-devel_package() {
- depends="${makedepends} libespeak>=${version}_${revision}"
- short_desc+=" - development files"
- pkg_install() {
- vmove usr/include
- vmove "usr/lib/*.a"
- vmove "usr/lib/*.so"
- }
-}
diff --git a/srcpkgs/libespeak b/srcpkgs/libespeak
index d2da11f512f..95020f74cea 120000
--- a/srcpkgs/libespeak
+++ b/srcpkgs/libespeak
@@ -1 +1 @@
-espeak
\ No newline at end of file
+espeak-ng
\ No newline at end of file
diff --git a/srcpkgs/libespeak-devel b/srcpkgs/libespeak-devel
index d2da11f512f..95020f74cea 120000
--- a/srcpkgs/libespeak-devel
+++ b/srcpkgs/libespeak-devel
@@ -1 +1 @@
-espeak
\ No newline at end of file
+espeak-ng
\ No newline at end of file
diff --git a/srcpkgs/libespeak-ng b/srcpkgs/libespeak-ng
new file mode 120000
index 00000000000..95020f74cea
--- /dev/null
+++ b/srcpkgs/libespeak-ng
@@ -0,0 +1 @@
+espeak-ng
\ No newline at end of file
diff --git a/srcpkgs/libespeak-ng-devel b/srcpkgs/libespeak-ng-devel
new file mode 120000
index 00000000000..95020f74cea
--- /dev/null
+++ b/srcpkgs/libespeak-ng-devel
@@ -0,0 +1 @@
+espeak-ng
\ No newline at end of file
From 28f813b78f4cbffb11e858b456c20cbe6e11e56d Mon Sep 17 00:00:00 2001
From: joey <joey@imap.cc>
Date: Mon, 14 Dec 2020 18:11:28 -0500
Subject: [PATCH 2/3] speech-dispatcher: Rebuild and switch to espeak-ng
---
srcpkgs/speech-dispatcher/template | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/speech-dispatcher/template b/srcpkgs/speech-dispatcher/template
index 5bc0921f263..810692a434b 100644
--- a/srcpkgs/speech-dispatcher/template
+++ b/srcpkgs/speech-dispatcher/template
@@ -1,7 +1,7 @@
# Template file for 'speech-dispatcher'
pkgname=speech-dispatcher
version=0.10.1
-revision=2
+revision=3
wrksrc="speechd-${version}"
build_style=gnu-configure
# Disable support for sundry non-free TTS systems (said support causes
@@ -10,7 +10,8 @@ configure_args="--disable-static --without-kali --without-ibmtts --without-barat
hostmakedepends="automake libtool gettext-devel
pkg-config intltool python3-devel texinfo"
makedepends="libltdl-devel glib-devel dotconf-devel
- libsndfile-devel libespeak-devel libao-devel python3-devel"
+ libsndfile-devel libespeak-ng-devel libao-devel python3-devel
+ libsonic-devel pulseaudio-devel"
depends="python3"
short_desc="High-level device independent layer for speech synthesis interface"
maintainer="Orphaned <orphan@voidlinux.org>"
From 72ad066c58252aaa833a3993175c52d718d29f6e Mon Sep 17 00:00:00 2001
From: joey <joey@imap.cc>
Date: Tue, 15 Dec 2020 22:34:45 -0500
Subject: [PATCH 3/3] espeakup: fix makefile and rebuild for espeak-ng
---
srcpkgs/espeakup/patches/use-with-espeak-ng.patch | 11 +++++++++++
srcpkgs/espeakup/template | 10 +++++-----
2 files changed, 16 insertions(+), 5 deletions(-)
create mode 100644 srcpkgs/espeakup/patches/use-with-espeak-ng.patch
diff --git a/srcpkgs/espeakup/patches/use-with-espeak-ng.patch b/srcpkgs/espeakup/patches/use-with-espeak-ng.patch
new file mode 100644
index 00000000000..c974d99a66f
--- /dev/null
+++ b/srcpkgs/espeakup/patches/use-with-espeak-ng.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2020-12-15 20:40:30.660983776 -0500
++++ Makefile 2020-12-15 20:41:07.473982625 -0500
+@@ -6,7 +6,7 @@
+ WARNFLAGS = -Wall
+ CFLAGS += ${DEPFLAGS} ${WARNFLAGS}
+
+-LDLIBS = -lespeak -lpthread
++LDLIBS = -lespeak-ng -lpthread
+
+ INSTALL = install
+ BINMODE = 0755
diff --git a/srcpkgs/espeakup/template b/srcpkgs/espeakup/template
index aa5e2036295..6cbc9d0da55 100644
--- a/srcpkgs/espeakup/template
+++ b/srcpkgs/espeakup/template
@@ -1,15 +1,15 @@
# Template file for 'espeakup'
pkgname=espeakup
version=0.80
-revision=1
-short_desc="A lightweight connector for espeak and speakup"
+revision=2
+build_style="gnu-makefile"
+makedepends="libespeak-ng-devel"
+short_desc="Lightweight connector for espeak and speakup"
maintainer="Rui Abreu Ferreira <raf-ep@gmx.com>"
-license="GPL-3"
+license="GPL-3.0-or-later"
homepage="https://github.com/williamh/espeakup"
distfiles="https://github.com/williamh/espeakup/archive/v${version}.tar.gz"
-makedepends="libespeak-devel"
checksum="4de284e30b6bdb0f9dee9c8ea02d13a3d20a61415b812338446b8b381e997ef4"
-build_style="gnu-makefile"
post_install() {
vsv espeakup
next prev parent reply other threads:[~2020-12-17 15:54 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-16 8:34 [PR PATCH] " joey-commits
2020-12-16 9:04 ` [PR PATCH] [Updated] " joey-commits
2020-12-16 9:42 ` joey-commits
2020-12-16 16:13 ` joey-commits
2020-12-16 16:46 ` joey-commits
2020-12-16 17:12 ` ericonr
2020-12-16 17:15 ` ericonr
2020-12-16 17:52 ` [PR PATCH] [Updated] " joey-commits
2020-12-16 18:12 ` joey-commits
2020-12-16 19:13 ` joey-commits
2020-12-16 19:30 ` ericonr
2020-12-16 21:04 ` [PR PATCH] [Updated] " joey-commits
2020-12-16 21:38 ` joey-commits
2020-12-16 21:48 ` joey-commits
2020-12-16 21:59 ` joey-commits
2020-12-17 6:45 ` joey-commits
2020-12-17 14:44 ` [PR REVIEW] " Piraty
2020-12-17 14:45 ` Piraty
2020-12-17 14:55 ` [PR PATCH] [Updated] " joey-commits
2020-12-17 15:05 ` [PR REVIEW] " ericonr
2020-12-17 15:15 ` joey-commits
2020-12-17 15:21 ` joey-commits
2020-12-17 15:31 ` ericonr
2020-12-17 15:35 ` joey-commits
2020-12-17 15:37 ` joey-commits
2020-12-17 15:48 ` [PR PATCH] [Updated] " joey-commits
2020-12-17 15:53 ` ericonr
2020-12-17 15:53 ` ericonr
2020-12-17 15:53 ` ericonr
2020-12-17 15:54 ` joey-commits [this message]
2020-12-17 16:10 ` joey-commits
2020-12-17 16:48 ` joey-commits
2020-12-17 16:54 ` joey-commits
2020-12-17 21:30 ` Piraty
2020-12-17 21:32 ` Piraty
2020-12-18 7:55 ` [PR PATCH] [Updated] " joey-commits
2020-12-18 9:19 ` joey-commits
2020-12-18 14:34 ` joey-commits
2020-12-18 14:46 ` joey-commits
2020-12-18 20:06 ` ericonr
2020-12-18 20:17 ` joey-commits
2020-12-18 22:04 ` [PR PATCH] [Updated] " joey-commits
2020-12-18 23:47 ` joey-commits
2020-12-19 3:02 ` ericonr
2020-12-19 3:08 ` ericonr
2020-12-19 3:20 ` joey-commits
2020-12-19 3:23 ` joey-commits
2020-12-19 3:25 ` joey-commits
2020-12-19 3:47 ` ericonr
2020-12-19 21:36 ` CMB
2020-12-19 21:57 ` CMB
2020-12-19 22:27 ` ericonr
2020-12-20 19:30 ` [PR PATCH] [Closed]: " Piraty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201217155457.jBmok1VhygVeJFFO2y0AcE4bQg3ol9d-ScI0yg8scEI@z \
--to=joey-commits@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).