blob: 74953d21951af531ec02870d3e486b76c36bb299 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-voip/yate/yate-1.2.0.ebuild,v 1.3 2008/05/21 19:01:06 dev-zero Exp $
IUSE="doc gsm gtk h323 ilbc postgres zaptel"
inherit eutils
DESCRIPTION="YATE - Yet Another Telephony Engine"
HOMEPAGE="http://yate.null.ro/"
SRC_URI="http://yate.null.ro/tarballs/yate1/${P}-1.tar.gz"
S=${WORKDIR}/${PN}
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
DEPEND="media-sound/sox
zaptel? ( >=net-libs/libpri-1.0.0
>=net-misc/zaptel-1.0.0 )
h323? ( >=net-libs/openh323-1.15.3 )
gtk? ( >=x11-libs/gtk+-2.6.8 )
gsm? ( media-sound/gsm )
doc? ( >=dev-util/kdoc-2.0_alpha54 )
postgres? ( virtual/postgresql-server )"
src_unpack() {
unpack ${A}
cd ${S}
# fix gtk2 plugin makefile
epatch ${FILESDIR}/${PN}-0.9.0-gtk2.diff
}
src_compile() {
econf \
$(use_with gtk libgtk2) \
$(use_with h323 openh323 /usr) \
$(use_with h323 pwlib /usr) \
$(use_with zaptel libpri) \
$(use_with gsm libgsm) \
$(use_with postgres libpq /usr) \
$(use_enable ilbc) \
|| die "Configure failed"
emake all contrib test || die "Building failed"
if use doc; then
emake apidocs || die "Building of API docs failed"
fi
}
src_install() {
emake DESTDIR=${D} install-noapi || die "emake install failed"
newinitd ${FILESDIR}/yate.rc6 yate
newconfd ${FILESDIR}/yate.confd yate
# install standard docs...
dodoc README ChangeLog docs/*.html
# install api docs
if use doc; then
docinto api
dodoc docs/api/*.html
fi
docinto scripts
dodoc scripts/*
}
|