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