summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-07-06 17:08:41 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-07-06 17:09:21 -0500
commit61bc94cfca603118ff2236f27cf5ce32c6a18bc3 (patch)
tree8193a8de6bb3dac9b0fa1305e425e23f52205b2e /app-accessibility
parentlicenses: add MBROLA-VOICES license (diff)
downloadgentoo-61bc94cfca603118ff2236f27cf5ce32c6a18bc3.tar.gz
gentoo-61bc94cfca603118ff2236f27cf5ce32c6a18bc3.tar.bz2
gentoo-61bc94cfca603118ff2236f27cf5ce32c6a18bc3.zip
app-accessibility/mbrola-voices: new package, mbrola voices database
Closes: https://bugs.gentoo.org/674360 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-accessibility')
-rw-r--r--app-accessibility/mbrola-voices/Manifest1
-rw-r--r--app-accessibility/mbrola-voices/mbrola-voices-0_pre20200331.ebuild75
-rw-r--r--app-accessibility/mbrola-voices/metadata.xml9
3 files changed, 85 insertions, 0 deletions
diff --git a/app-accessibility/mbrola-voices/Manifest b/app-accessibility/mbrola-voices/Manifest
new file mode 100644
index 000000000000..d3392217fd37
--- /dev/null
+++ b/app-accessibility/mbrola-voices/Manifest
@@ -0,0 +1 @@
+DIST mbrola-voices-0_pre20200331.tar.gz 583211254 BLAKE2B c8cb55597759a65f0e5f1be6197575b424ec4831444acfcb42fa17b8eb98672990195dd9305e93c66d488fb2b6c492286970e953c198c2038ea23c5b71d75ba2 SHA512 8476e80984279fddab1bda07e9352bee9f11499dc5b59652cd4bc0385b08a83259c080748e7040fa10cc03c9b0f1e1d1a39f80ddd782073c92f49fadc9af9585
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
+}
diff --git a/app-accessibility/mbrola-voices/metadata.xml b/app-accessibility/mbrola-voices/metadata.xml
new file mode 100644
index 000000000000..ae313a5c56d2
--- /dev/null
+++ b/app-accessibility/mbrola-voices/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>accessibility@gentoo.org</email>
+ <name>Gentoo Accessibility Project</name>
+ </maintainer>
+ <stabilize-allarches/>
+</pkgmetadata>