summaryrefslogtreecommitdiff
blob: 34d22eb011b8d122908e4400f7df922ad8483532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/mbrola/mbrola-3.0.1h-r1.ebuild,v 1.20 2007/01/23 14:56:25 genone Exp $

IUSE=""

S=${WORKDIR}

DESCRIPTION="us1, us2, and us3 mbrola voice libraries for Festival TTS"
HOMEPAGE="http://tcts.fpms.ac.be/synthesis/mbrola.html"

SRC_URI_BASE="http://tcts.fpms.ac.be/synthesis/mbrola"
SRC_URI="${SRC_URI_BASE}/bin/pclinux/mbr301h.zip
	 ${SRC_URI_BASE}/dba/us1/us1-980512.zip
	 ${SRC_URI_BASE}/dba/us2/us2-980812.zip
	 ${SRC_URI_BASE}/dba/us3/us3-990208.zip"

RDEPEND=">=app-accessibility/festival-1.4.2"

DEPEND="${RDEPEND}
	app-arch/unzip"

RDEPEND="${RDEPEND}"

SLOT="0"
LICENSE="MBROLA"
KEYWORDS="amd64 -ppc ppc64 sparc x86"

src_compile() {
	case ${ARCH} in
	x86|amd64)
		cp mbrola-linux-i386 mbrola || die
	;;
	ppc)
		cp mbrola206a-linux-ppc mbrola || die
	;;
	sparc)
		cp mbrola-SuSElinux-ultra1.dat mbrola || die
	;;
	alpha)
		cp mbrola-linux-alpha mbrola || die
	;;
	*)
		elog "mbrola binary not available on this architecture.  Still installing voices."
	esac
}

src_install () {
	# Take care of main binary
	[ -f mbrola ] && dobin mbrola
	dodoc readme.txt

	# Now install the vioces
	FESTLIB=/usr/lib/festival/voices/english
	insinto ${FESTLIB}/us1_mbrola/us1
	doins us1/us1 us1/us1mrpa
	insinto ${FESTLIB}/us1_mbrola/us1/TEST
	doins us1/TEST/*
	dodoc us1/us1.txt

	insinto ${FESTLIB}/us2_mbrola/us2
	doins us2/us2
	insinto ${FESTLIB}/us2_mbrola/us2/TEST
	doins us2/TEST/*
	dodoc us2/us2.txt

	insinto ${FESTLIB}/us3_mbrola/us3
	doins us3/us3
	insinto ${FESTLIB}/us3_mbrola/us3/TEST
	doins us3/TEST/*
	dodoc us3/us3.txt
}