1 |
commit: d9f06ef14e0da05bf7a6fbd2071aa1d20ea9aadf |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 7 17:06:51 2021 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 7 17:10:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9f06ef1 |
7 |
|
8 |
app-accessibility/espeak-ng: add live ebuild |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
12 |
|
13 |
app-accessibility/espeak-ng/espeak-ng-9999.ebuild | 82 +++++++++++++++++++++++ |
14 |
1 file changed, 82 insertions(+) |
15 |
|
16 |
diff --git a/app-accessibility/espeak-ng/espeak-ng-9999.ebuild b/app-accessibility/espeak-ng/espeak-ng-9999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..941edd1d327 |
19 |
--- /dev/null |
20 |
+++ b/app-accessibility/espeak-ng/espeak-ng-9999.ebuild |
21 |
@@ -0,0 +1,82 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit autotools |
28 |
+ |
29 |
+DESCRIPTION="Software speech synthesizer for English, and some other languages" |
30 |
+HOMEPAGE="https://github.com/espeak-ng/espeak-ng" |
31 |
+ |
32 |
+if [[ ${PV} == 9999 ]]; then |
33 |
+ EGIT_REPO_URI="https://github.com/espeak-ng/espeak-ng.git" |
34 |
+ inherit git-r3 |
35 |
+else |
36 |
+ SRC_URI="https://github.com/espeak-ng/espeak-ng/archive/${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ KEYWORDS="~amd64" |
38 |
+fi |
39 |
+ |
40 |
+LICENSE="GPL-3+ Turkowski unicode" |
41 |
+SLOT="0" |
42 |
+IUSE="+async +klatt l10n_ru l10n_zh man mbrola +sound" |
43 |
+ |
44 |
+COMMON_DEPEND=" |
45 |
+ !app-accessibility/espeak |
46 |
+ mbrola? ( app-accessibility/mbrola ) |
47 |
+ sound? ( media-libs/pcaudiolib ) |
48 |
+" |
49 |
+DEPEND="${COMMON_DEPEND}" |
50 |
+RDEPEND="${COMMON_DEPEND} |
51 |
+ sound? ( media-sound/sox ) |
52 |
+" |
53 |
+BDEPEND=" |
54 |
+ virtual/pkgconfig |
55 |
+ man? ( app-text/ronn ) |
56 |
+" |
57 |
+ |
58 |
+DOCS=( CHANGELOG.md README.md docs ) |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ |
63 |
+ # disable failing tests |
64 |
+ rm tests/{language-pronunciation,translate}.test || die |
65 |
+ sed -i \ |
66 |
+ -e "/language-pronunciation.check/d" \ |
67 |
+ -e "/translate.check/d" \ |
68 |
+ Makefile.am || die |
69 |
+ |
70 |
+ eautoreconf |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ local econf_args |
75 |
+ econf_args=( |
76 |
+ $(use_with async) |
77 |
+ $(use_with klatt) |
78 |
+ $(use_with l10n_ru extdict-ru) |
79 |
+ $(use_with l10n_zh extdict-cmn) |
80 |
+ $(use_with l10n_zh extdict-yue) |
81 |
+ $(use_with mbrola) |
82 |
+ $(use_with sound pcaudiolib) |
83 |
+ --without-libfuzzer |
84 |
+ --without-sonic |
85 |
+ --disable-rpath |
86 |
+ --disable-static |
87 |
+ ) |
88 |
+ econf "${econf_args[@]}" |
89 |
+} |
90 |
+ |
91 |
+src_compile() { |
92 |
+ # see docs/building.md |
93 |
+ emake -j1 |
94 |
+} |
95 |
+ |
96 |
+src_test() { |
97 |
+ emake check |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ emake DESTDIR="${D}" VIMDIR=/usr/share/vimfiles install |
102 |
+ rm "${ED}"/usr/lib*/*.la || die |
103 |
+} |