Gentoo Archives: gentoo-commits

From: "Jean-Noel Rivasseau (elvanor)" <elvanor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-voip/sflphone: metadata.xml ChangeLog sflphone-0.9.8.4.ebuild
Date: Tue, 07 Sep 2010 15:45:55
Message-Id: 20100907154538.D88D720051@flycatcher.gentoo.org
1 elvanor 10/09/07 15:45:38
2
3 Added: metadata.xml ChangeLog sflphone-0.9.8.4.ebuild
4 Log:
5 Initial import, bug #293399.
6 (Portage version: 2.1.8.3/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 net-voip/sflphone/metadata.xml
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/sflphone/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/sflphone/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>no-herd</herd>
20 <maintainer>
21 <email>elvanor@g.o</email>
22 <name>Jean-Noël Rivasseau</name>
23 </maintainer>
24 <longdescription>
25 SFLphone is a robust standards-compliant enterprise softphone, for desktop and embedded systems. It is designed to handle several hundreds of calls a day. SFLphone is available under the GNU GPL license, version 3.
26 </longdescription>
27 <use>
28 <flag name="iax">Support for IAX (Inter Asterisk eXchange)</flag>
29 </use>
30 </pkgmetadata>
31
32
33
34 1.1 net-voip/sflphone/ChangeLog
35
36 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/sflphone/ChangeLog?rev=1.1&view=markup
37 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/sflphone/ChangeLog?rev=1.1&content-type=text/plain
38
39 Index: ChangeLog
40 ===================================================================
41 # ChangeLog for net-voip/sflphone
42 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
43 # $Header: /var/cvsroot/gentoo-x86/net-voip/sflphone/ChangeLog,v 1.1 2010/09/07 15:45:38 elvanor Exp $
44
45 *sflphone-0.9.8.4 (06 Sep 2010)
46
47 06 Sep 2010; <elvanor@g.o> +sflphone-0.9.8.4.ebuild, +metadata.xml:
48 Initial import from bug #293399. Credits goes to Atman Sense.
49
50
51
52
53 1.1 net-voip/sflphone/sflphone-0.9.8.4.ebuild
54
55 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/sflphone/sflphone-0.9.8.4.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/sflphone/sflphone-0.9.8.4.ebuild?rev=1.1&content-type=text/plain
57
58 Index: sflphone-0.9.8.4.ebuild
59 ===================================================================
60 # Copyright 1999-2010 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $Header: /var/cvsroot/gentoo-x86/net-voip/sflphone/sflphone-0.9.8.4.ebuild,v 1.1 2010/09/07 15:45:38 elvanor Exp $
63
64 EAPI="2"
65
66 inherit autotools
67
68 DESCRIPTION="SFLphone is a robust standards-compliant enterprise softphone, for desktop and embedded systems."
69 HOMEPAGE="http://www.sflphone.org/"
70 SRC_URI="https://projects.savoirfairelinux.com/attachments/download/1327/${P}.tar.gz"
71
72 LICENSE="GPL-3"
73 SLOT="0"
74 KEYWORDS="~x86"
75 IUSE="debug gnome gsm iax networkmanager speex"
76
77 DEPEND="media-sound/pulseaudio
78 media-libs/libsamplerate
79 net-libs/ccrtp
80 net-libs/libzrtpcpp
81 net-libs/pjsip
82 dev-cpp/commoncpp2
83 sys-apps/dbus
84 dev-libs/openssl
85 dev-libs/expat
86 media-libs/alsa-lib
87 media-libs/celt
88 dev-libs/libpcre
89 gsm? ( media-sound/gsm )
90 speex? ( media-libs/speex )
91 networkmanager? ( net-misc/networkmanager )
92 iax? ( net-libs/iax )
93 gnome? ( dev-libs/atk
94 dev-libs/check
95 dev-libs/log4c
96 net-libs/libsoup
97 gnome-base/libgnomeui
98 gnome-base/orbit
99 gnome-extra/evolution-data-server
100 media-libs/libart_lgpl
101 media-libs/freetype
102 media-libs/fontconfig
103 x11-libs/cairo
104 x11-libs/libnotify
105 x11-libs/libICE
106 x11-libs/libSM )"
107 RDEPEND="${DEPEND}"
108
109 src_prepare() {
110 if ! use gnome; then
111 ewarn
112 ewarn "No clients selected. Use USE=gnome to get the gnome client."
113 ewarn "See"
114 ewarn "https://projects.savoirfairelinux.com/repositories/browse/sflphone/tools/pysflphone"
115 ewarn "for a python command line client."
116 ewarn
117 fi
118
119 cd sflphone-common
120 #remove "target" from lib-names, remove dep to shipped pjsip
121 sed -i -e 's/-$(target)//' \
122 -e '/^\t\t\t-L/ d' \
123 -e 's!-I$(src)/libs/pjproject!-I/usr/include!' \
124 globals.mak || die "sed failed."
125 #respect CXXFLAGS
126 sed -i -e 's/CXXFLAGS="-g/CXXFLAGS="-g $CXXFLAGS /' \
127 configure.ac || die "sed failed."
128 rm -r libs/pjproject
129 eautoreconf
130
131 #TODO: remove shipped dbus-c++ use system one (see #220767)
132 #TODO: remove shipped utilspp (from curlpp), use system one, see #55185
133
134 if use gnome; then
135 cd ../sflphone-client-gnome
136 #fix as-needed
137 sed -i -e "s/X11_LIBS)/X11_LIBS) -lebook-1.2/" src/Makefile.am || die "sed failed."
138 eautoreconf
139 fi
140 }
141
142 src_configure() {
143 cd sflphone-common
144 econf --disable-dependency-tracking \
145 $(use_with debug) \
146 $(use_with gsm) \
147 $(use_with speex) \
148 $(use_with iax iax2) \
149 $(use_with networkmanager) || die "econf failed."
150
151 if use gnome; then
152 cd ../sflphone-client-gnome
153 econf || die "econf failed."
154 fi
155 }
156
157 src_compile() {
158 cd sflphone-common
159 emake || die "emake failed."
160
161 if use gnome; then
162 cd ../sflphone-client-gnome
163 emake || die "emake failed."
164 fi
165 }
166
167 src_install() {
168 cd sflphone-common
169 emake -j1 DESTDIR="${D}" install || die "emake install failed"
170 dodoc test/sflphonedrc-sample
171
172 if use gnome; then
173 cd ../sflphone-client-gnome
174 emake DESTDIR="${D}" install || die "emake install failed"
175 fi
176 }
177
178 pkg_postinst() {
179 elog
180 elog "You need to restart dbus, if you want to access"
181 elog "sflphoned through dbus."
182 elog
183 elog
184 elog "If you use the command line client"
185 elog "(https://projects.savoirfairelinux.com/repositories/browse/sflphone/tools/pysflphone)"
186 elog "extract /usr/share/doc/${PF}/${PN}drc-sample to"
187 elog "~/.config/${PN}/${PN}drc for example config."
188 elog
189 elog
190 elog "For calls out of your browser have a look in sflphone-callto"
191 elog "and sflphone-handler. You should consider to install"
192 elog "the \"Telify\" Firefox addon. See"
193 elog "https://projects.savoirfairelinux.com/repositories/browse/sflphone/tools"
194 elog
195 if use gnome; then
196 elog
197 elog "sflphone-client-gnome: To manage your contacts you need"
198 elog "mail-client/evolution or access to an evolution-data-server"
199 elog "connected backend."
200 elog
201 fi
202 }