blob: a28639601a1e2f4955334921a15f13adf7b381b4 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/powiedz/powiedz-1.0.ebuild,v 1.8 2005/01/01 10:51:34 eradicator Exp $
inherit eutils
IUSE="arts esd"
DESCRIPTION="Polish speech synthesizer based on rsynth"
HOMEPAGE="http://kadu.net/index.php?page=download&lang=en"
SRC_URI="http://kadu.net/download/additions/powiedz-1.0.tgz"
LICENSE="GPL-1"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64 ~sparc"
RDEPEND="esd? ( media-sound/esound )
arts? ( kde-base/arts )"
DEPEND="${RDEPEND}
esd? ( dev-util/pkgconfig )"
S=${WORKDIR}/${PN}
src_compile() {
cflags=${CFLAGS}
ldlibs="-lm"
if use esd; then
ldlibs="${ldlibs} -lesd -lpthread -ldl"
defs="${defs} -DUSE_ESD=1"
fi
if use arts; then
ldlibs="${ldlibs} `artsc-config --libs`"
defs="${defs} -DUSE_ARTS=1"
cflags="${cflags} `artsc-config --cflags`"
fi
cd ${S}
epatch ${FILESDIR}/${PN}-dsp-handle-fix.patch || die "patching failed"
emake -f Makefile_plain LDLIBS="${ldlibs}" CFLAGS="${cflags}" DEFS="${defs}" || die "make failed"
}
src_install() {
cd ${S}
exeinto /usr/bin
doexe powiedz
insinto /usr/share/applications
doins ${FILESDIR}/${PN}.desktop
}
|