diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-08 15:03:58 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-08 15:03:58 +0100 |
commit | 814f4cf860e299a046b649eaee5463427984c09c (patch) | |
tree | 74c45f097899310e599dad6b8df5b63e0f085bc0 /app-accessibility/mbrola-voices/mbrola-voices-0_pre20200331.ebuild | |
parent | 7f0ccc917c7abe6223784c703d86cd14755691fb (diff) |
gentoo resync : 08.07.2021
Diffstat (limited to 'app-accessibility/mbrola-voices/mbrola-voices-0_pre20200331.ebuild')
-rw-r--r-- | app-accessibility/mbrola-voices/mbrola-voices-0_pre20200331.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/app-accessibility/mbrola-voices/mbrola-voices-0_pre20200331.ebuild b/app-accessibility/mbrola-voices/mbrola-voices-0_pre20200331.ebuild new file mode 100644 index 000000000000..e30f0d984340 --- /dev/null +++ b/app-accessibility/mbrola-voices/mbrola-voices-0_pre20200331.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +GIT_COMMIT=fe05a0ccef6a941207fd6aaad0b31294a1f93a51 + +DESCRIPTION="mbrola speech synthesizer voices database" +HOMEPAGE="https://github.com/numediart/mbrola-voices" +SRC_URI="https://github.com/numediart/mbrola-voices/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="MBROLA-VOICES" +SLOT="0" +KEYWORDS="~amd64" + +# This maps the l10n values to the appropriate voices +declare -A voicemap +voicemap=( + [af]="af1" + [ar]="ar1 ar2" + [br]="bz1" +[cs]="cz1 cz2" + [de]="de1 de2 de3 de4 de5 de6 de7 de8" + [el]="gr1 gr2" + [en-GB]="en1" + [en-US]="mx1 us1 us2 us3" + [es]="es1 es2 es3 es4 vz1" + [es-MX]="mx2" +[et]="ee1" + [fa]="ir1" + [fr-CA]="ca1 ca2" + [fr]="fr1 fr2 fr3 fr4 fr5 fr6 fr7" + [he]="hb1 hb2" + [hi]="in1 in2" + [hr]="cr1" + [hu]="hu1" + [id]="id1" + [is]="ic1" + [it]="it1 it2 it3 it4" + [ja]="jp1 jp2 jp3" + [ko]="hn1" + [la]="la1" +[lt]="lt1 lt2" + [mi]="nz1" + [ms]="ma1" + [nl]="nl1 nl2 nl3" + [pl]="pl1" + [pt-BR]="br1 br2 br3 br4" + [pt-PT]="pt1" + [ro]="ro1" + [sv]="sw1 sw2" + [te]="tl1" + [tr]="tr1 tr2" + [zh-CN]="cn1" +) +for l in "${!voicemap[@]}"; do + if [[ ${l} == en-US ]]; then + u="+l10n_${l}" + else + u="l10n_${l}" + fi + IUSE+=" ${u}" +done +unset l u + +S=${WORKDIR}/MBROLA-voices-${GIT_COMMIT} + +src_install() { + dodoc README.md + insinto /usr/share/mbrola + cd data || die + local l + for l in "${!voicemap[@]}"; do + use l10n_${l} && doins -r ${voicemap[${l}]} + done +} |