You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.9 KiB
84 lines
1.9 KiB
11 years ago
|
# Copyright 1999-2013 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
11 years ago
|
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival-it/festival-it-1.0-r2.ebuild,v 1.1 2013/03/03 01:27:25 neurogeek Exp $
|
||
13 years ago
|
|
||
11 years ago
|
EAPI="4"
|
||
13 years ago
|
|
||
|
inherit eutils
|
||
|
|
||
|
DESCRIPTION="A collection of italian voices for Festival TTS."
|
||
11 years ago
|
HOMEPAGE="http://www2.pd.istc.cnr.it/FESTIVAL/home"
|
||
13 years ago
|
SRC_URI="mirror://sourceforge/it-festival/Italian-FESTIVAL.zip"
|
||
|
|
||
11 years ago
|
RDEPEND=">=app-accessibility/festival-2.1
|
||
13 years ago
|
mbrola? ( >=app-accessibility/mbrola-3.0.1h-r4[linguas_it] )"
|
||
|
DEPEND="app-arch/unzip"
|
||
|
IUSE="mbrola"
|
||
|
|
||
|
SLOT="0"
|
||
|
LICENSE="GPL-2"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
11 years ago
|
S=${WORKDIR}
|
||
13 years ago
|
|
||
11 years ago
|
src_prepare() {
|
||
13 years ago
|
|
||
|
unzip -qo italian_scm.zip
|
||
|
unzip -qo lex_ifd.zip
|
||
|
unzip -qo lp_diphone.zip
|
||
|
unzip -qo pc_diphone.zip
|
||
|
|
||
|
if use mbrola; then
|
||
|
unzip -qo lp_mbrola_unix.zip
|
||
|
unzip -qo pc_mbrola_unix.zip
|
||
|
fi
|
||
|
|
||
|
# Deletes some useless files
|
||
|
rm -f *.zip
|
||
|
|
||
|
rm -f `find festival/ -name install_unix.txt`
|
||
|
rm -f `find festival/ -name italian_mbrola_win.scm`
|
||
|
|
||
|
if ! use mbrola; then
|
||
|
rm -f `find festival/ -name italian_mbrola_unix.scm`
|
||
|
fi
|
||
|
|
||
|
# Aggregates some README files
|
||
|
mkdir docs
|
||
|
mv `find festival/ -name \*README` docs/
|
||
|
|
||
|
# All remaining files are moved "here"
|
||
|
mv festival/lib/* .
|
||
|
rm -rf festival/
|
||
|
}
|
||
|
|
||
|
src_install () {
|
||
|
# Install the docs
|
||
|
dodoc "${WORKDIR}"/docs/*
|
||
|
|
||
|
# Install the voice scheme
|
||
|
insinto /usr/share/festival/
|
||
|
doins -r "${WORKDIR}"/italian_scm/
|
||
|
|
||
|
# Install the dicts
|
||
|
insinto /usr/share/festival/dicts
|
||
|
doins -r "${WORKDIR}"/dicts/*
|
||
|
|
||
|
# Installs the voices
|
||
|
insinto /usr/share/festival/voices
|
||
|
doins -r "${WORKDIR}"/voices/*
|
||
|
|
||
|
# Enables the mbrola-based voices
|
||
|
if use mbrola; then
|
||
|
dosym /opt/mbrola/it3 /usr/share/festival/voices/italian/pc_mbrola/it3
|
||
|
dosym /opt/mbrola/it4 /usr/share/festival/voices/italian/lp_mbrola/it4
|
||
|
fi
|
||
|
}
|
||
11 years ago
|
|
||
|
pkg_postinst () {
|
||
|
einfo "Italian voices installed:"
|
||
|
for VOICE in `ls "${ROOT}/usr/share/festival/voices/italian/"`; do
|
||
|
einfo " (voice_${VOICE})"
|
||
|
done
|
||
|
}
|