Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-accessibility/rhvoice/
Date: Sat, 30 Oct 2021 09:02:49
Message-Id: 1635584483.152b093007b3f139a955d88007e3621013b15881.cybertailor@gentoo
1 commit: 152b093007b3f139a955d88007e3621013b15881
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sat Oct 30 08:58:05 2021 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Sat Oct 30 09:01:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=152b0930
7
8 app-accessibility/rhvoice: cleanups
9
10 * Use release tarball instead of github-generated one
11
12 * Remove Hardening.cmake (it messes with flags badly)
13
14 * Use printf to generate LICENSE and IUSE
15
16 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
17
18 app-accessibility/rhvoice/Manifest | 8 +--
19 app-accessibility/rhvoice/rhvoice-1.4.2-r1.ebuild | 77 +++++++----------------
20 2 files changed, 23 insertions(+), 62 deletions(-)
21
22 diff --git a/app-accessibility/rhvoice/Manifest b/app-accessibility/rhvoice/Manifest
23 index e6d18c70c..79881ad96 100644
24 --- a/app-accessibility/rhvoice/Manifest
25 +++ b/app-accessibility/rhvoice/Manifest
26 @@ -1,7 +1 @@
27 -DIST rhvoice-1.4.2.tar.gz 192825025 BLAKE2B 104beee30f335a2770f64b42994a604294690491ca703bf8937ce4ac0646f6cbd003f3cf83a99b8fdff015447882c8719ec9a2f7f0f981b66fb6ef00ad90b96f SHA512 bcd7cc6aadba1a619cd83e2dbd06836e985fbc4fce886a19c2272a2f6fff0792d15d4ff0b685b43705b68689ade932858e9d3b9173e6f829292d21d69a85c61a
28 -DIST rhvoice-aleksandr-hq-4.0.tar.gz 7315219 BLAKE2B 011a37696f3c30af1e7d63d62dcea640c1a0329b116fdf8d12152e5f22e1928a9ad2484e0ce01c9821c1eb668f7d9fb096a1406e66fbe6e88fd856cfa6465c2d SHA512 2519eb5b8c1e39bfe557258d1f54c7d02ff4159ccc513de903b48e7ef136f2f875b5f4405a1064bd9b706baa6394f7c67373a4593edf369222597223ccc341e9
29 -DIST rhvoice-evgeniy-eng-4.0.tar.gz 7338125 BLAKE2B 58eaf04e77bde46e5013e3959815e2ea0234b8c33f7737df0b00e4b32fb49d169f651f6341ede876c331c40b1d17afffd25c4e2741871aea02ee4bdd8d7c2246 SHA512 1096b2d898292739f86333414a32b97b99112a57cf2c98c5ea31d1b92974f3adc4119e0ee031e6961810365432b77eb96229f7a45c55d8b9337a22aa3848dcc8
30 -DIST rhvoice-evgeniy-rus-4.0.tar.gz 9962477 BLAKE2B d3fffbd54813d80734b59b6ac0ed96c0e07ce4266594a918acc01fe2bdd649d854ffe7306b57c3cb3718cdc1a090f6f7f28712005c708a39a486867760162cf9 SHA512 4053185fd5cff60a8cf3355fad69ab63348fc5047a7e5d2328a639a5c65cecfaadc92d63599b0b8bc7ca804753593c78c837621cdd153c6ce247100141b96500
31 -DIST rhvoice-victoria-4.0.tar.gz 7425747 BLAKE2B 221805cef8b21cee24dcd34cde06450a7f9a2a588820265ae51729ddc73604caf2e089fb97ee96bf7503018f4fa967aa416fe0f0cfaf597e4d0dea4e0c72de54 SHA512 03b95f76bbd0b213fac867705acd3229f2d62448cdb863968b6ff02cc06f162d07a6154418e3ceee63d8d5352a00c1fed57b635d59424234b6cae3b1914da1cb
32 -DIST rhvoice-volodymyr-4.0.tar.gz 10794551 BLAKE2B a0e1f78652ecc8f89bfa404fcab6d3400e0f45282da53317a4af340c9acaffb545460f3a4bbf309b9a2525bd3695a4ff47edd00cb6692651377d44d717949375 SHA512 8f0f15229d451bbcf6db3b0f267e82635603b582f2af18d14421f3e108cdd14e4164e74e3c4723226e37b8ee7287ffa5d4083f9d2defd8b5c1b559eba547e849
33 -DIST rhvoice-yuriy-4.0.tar.gz 12734672 BLAKE2B 7e49c0825bfc148e8e7144d578c95ad159e2c935256174134f0682318f78b5162205b3781d365cc333c61123c1b118b464e28d63046bc497a75afcd6f8fbbc85 SHA512 07c9e65277c1774cf0185ba60107ff8f0dda5fa18eeadbfcb0cbdf5258e3fd2a364bb91c796473c9294a61e5c9366080d4d6ee115aace37f533ea1e6f167690b
34 +DIST rhvoice-1.4.2-release.tar.gz 252269229 BLAKE2B 0f5564dcb986eec49bead04b46afe7e5caf8a186cdd23f3c9727ee9e6bdeb4b326d6b9cec3f9cdde78d01286d16f05aad840f67aa44b22ce05b7db85d04f2144 SHA512 edee8fa79fa0f3eecd2bca6a6c4846876cce2fc7b843a481357b536a42485f9524fc64e9e8a6766cbe46bcc2ef9ad0375cab16ad35722895db5697e14234a8de
35
36 diff --git a/app-accessibility/rhvoice/rhvoice-1.4.2-r1.ebuild b/app-accessibility/rhvoice/rhvoice-1.4.2-r1.ebuild
37 index e3756dd73..f593a64fa 100644
38 --- a/app-accessibility/rhvoice/rhvoice-1.4.2-r1.ebuild
39 +++ b/app-accessibility/rhvoice/rhvoice-1.4.2-r1.ebuild
40 @@ -3,44 +3,29 @@
41
42 EAPI=8
43
44 -CMAKE_REMOVE_MODULES_LIST=( VersionFromGit )
45 +CMAKE_REMOVE_MODULES_LIST=( Hardening VersionFromGit )
46 inherit cmake
47
48 DESCRIPTION="TTS engine with extended languages support (including Russian)"
49 HOMEPAGE="https://rhvoice.su https://github.com/RHVoice/RHVoice"
50 -SRC_URI="
51 - https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
52 - l10n_en? ( https://github.com/${PN}/evgeniy-eng/archive/refs/tags/4.0.tar.gz -> rhvoice-evgeniy-eng-4.0.tar.gz )
53 - l10n_ru? (
54 - https://github.com/${PN}/aleksandr-hq-rus/archive/refs/tags/4.0.tar.gz -> rhvoice-aleksandr-hq-4.0.tar.gz
55 - https://github.com/${PN}/evgeniy-rus/archive/refs/tags/4.0.tar.gz -> rhvoice-evgeniy-rus-4.0.tar.gz
56 - https://github.com/${PN}/victoria-rus/archive/refs/tags/4.0.tar.gz -> rhvoice-victoria-4.0.tar.gz
57 - https://github.com/${PN}/yuriy-rus/archive/refs/tags/4.0.tar.gz -> rhvoice-yuriy-4.0.tar.gz
58 - )
59 - l10n_uk? ( https://github.com/${PN}/volodymyr-ukr/archive/refs/tags/4.0.tar.gz -> rhvoice-volodymyr-4.0.tar.gz )
60 -"
61 -S="${WORKDIR}/RHVoice-${PV}"
62 -
63 -LICENSE="l10n_pt-BR? ( CC-BY-SA-4.0 ) l10n_mk? ( AGPL-3 ) BSD GPL-2 GPL-3+ LGPL-2.1+"
64 -KEYWORDS="~amd64 ~x86"
65 -SLOT="0"
66 -IUSE="ao cli portaudio +pulseaudio +server +speech-dispatcher"
67 -REQUIRED_USE="|| ( ao portaudio pulseaudio )"
68 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz -> ${P}-release.tar.gz"
69
70 +AGPL_LANGS=( mk )
71 +CC_SA_LANGS=( pt-BR )
72 CC_NC_LANGS=( en eo ky ru uk )
73 NC_LANGS=( ka tt )
74 -LANGS=" ${CC_NC_LANGS[@]} ${NC_LANGS[@]} mk pt-BR"
75 -IUSE+="${LANGS// / l10n_}"
76 -
77 -for lang in "${CC_NC_LANGS[@]}" ; do
78 - LICENSE+=" l10n_${lang}?"
79 - LICENSE+=" ( CC-BY-NC-ND-4.0 )"
80 -done
81 +LANGS=( "${AGPL_LANGS[@]}" "${CC_SA_LANGS[@]}" "${CC_NC_LANGS[@]}" "${NC_LANGS[@]}" )
82
83 -for lang in "${NC_LANGS[@]}" ; do
84 - LICENSE+=" l10n_${lang}?"
85 - LICENSE+=" ( free-noncomm )"
86 -done
87 +LICENSE="BSD GPL-2 GPL-3+ LGPL-2.1+
88 + $(printf 'l10n_%s? ( AGPL-3 )\n' "${AGPL_LANGS[@]}")
89 + $(printf 'l10n_%s? ( CC-BY-SA-4.0 )\n' "${CC_SA_LANGS[@]}")
90 + $(printf 'l10n_%s? ( CC-BY-NC-ND-4.0 )\n' "${CC_NC_LANGS[@]}")
91 + $(printf 'l10n_%s? ( free-noncomm )\n' "${NC_LANGS[@]}")
92 +"
93 +KEYWORDS="~amd64 ~x86"
94 +IUSE="$(printf 'l10n_%s ' ${LANGS[@]}) ao cli portaudio +pulseaudio +server +speech-dispatcher"
95 +SLOT="0"
96 +REQUIRED_USE="|| ( ao portaudio pulseaudio )"
97
98 DEPEND="
99 ao? ( media-libs/libao )
100 @@ -71,28 +56,6 @@ delete_voices() {
101 done
102 }
103
104 -src_unpack() {
105 - default
106 -
107 - # git submodules, which are not present in the snapshot
108 - rmdir "${S}"/data/voices/{aleksandr-hq,evgeniy-rus,evgeniy-eng,victoria,volodymyr,yuriy} || die
109 -
110 - if use l10n_ru; then
111 - mv "${WORKDIR}"/aleksandr-hq-rus-4.0 "${S}"/data/voices/aleksandr-hq || die
112 - mv "${WORKDIR}"/evgeniy-rus-4.0 "${S}"/data/voices/evgeniy-rus || die
113 - mv "${WORKDIR}"/victoria-rus-4.0 "${S}"/data/voices/victoria || die
114 - mv "${WORKDIR}"/yuriy-rus-4.0 "${S}"/data/voices/yuriy || die
115 - fi
116 -
117 - if use l10n_en; then
118 - mv "${WORKDIR}"/evgeniy-eng-4.0 "${S}"/data/voices/evgeniy-eng || die
119 - fi
120 -
121 - if use l10n_uk; then
122 - mv "${WORKDIR}"/volodymyr-ukr-4.0 "${S}"/data/voices/volodymyr || die
123 - fi
124 -}
125 -
126 src_prepare() {
127 cmake_src_prepare
128
129 @@ -112,21 +75,25 @@ src_prepare() {
130 -i src/third-party/mage/CMakeLists.txt || die
131
132 sed -e "/include(VersionFromGit)/d" \
133 + -e "/include(Hardening)/d" \
134 -e "/find_package(Sanitizers)/d" \
135 -e "/getVersionFromGit/d" \
136 + -e "/harden/d" \
137 -i CMakeLists.txt || die
138 sed -e "/add_sanitizers/d" \
139 + -e "/harden/d" \
140 -i src/*/CMakeLists.txt \
141 -i src/third-party/*/CMakeLists.txt || die
142
143 - use l10n_en || delete_voices alan bdl clb slt
144 + use l10n_en || delete_voices alan bdl clb evgeniy-eng slt
145 use l10n_eo || delete_voices spomenka
146 use l10n_ka || delete_voices natia
147 use l10n_ky || delete_voices azamat nazgul
148 use l10n_mk || delete_voices kiko
149 - use l10n_ru || delete_voices aleksandr anna arina artemiy elena irina pavel
150 + use l10n_ru || delete_voices aleksandr aleksandr-hq anna arina artemiy \
151 + elena evgeniy-rus irina pavel victoria yuriy
152 use l10n_tt || delete_voices talgat
153 - use l10n_uk || delete_voices anatol natalia
154 + use l10n_uk || delete_voices anatol natalia volodymyr
155 use l10n_pt-BR || delete_voices Leticia-F123
156 }