Gentoo Archives: gentoo-commits

From: "Mounir Lamouri (volkmar)" <volkmar@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/ptlib: ChangeLog ptlib-2.6.4.ebuild ptlib-2.6.2.ebuild
Date: Fri, 28 Aug 2009 20:15:41
Message-Id: E1MfwRR-0007KR-Aq@stork.gentoo.org
1 volkmar 09/08/25 13:52:05
2
3 Modified: ChangeLog
4 Added: ptlib-2.6.4.ebuild
5 Removed: ptlib-2.6.2.ebuild
6 Log:
7 Version bump to 2.6.4.
8 Bug 281170.
9 Thanks to Colin Macdonald.
10 (Portage version: 14113-svn/cvs/Linux i686)
11
12 Revision Changes Path
13 1.8 net-libs/ptlib/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/ptlib/ChangeLog?rev=1.8&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/ptlib/ChangeLog?rev=1.8&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/ptlib/ChangeLog?r1=1.7&r2=1.8
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-libs/ptlib/ChangeLog,v
22 retrieving revision 1.7
23 retrieving revision 1.8
24 diff -u -r1.7 -r1.8
25 --- ChangeLog 3 Aug 2009 21:31:01 -0000 1.7
26 +++ ChangeLog 25 Aug 2009 13:52:05 -0000 1.8
27 @@ -1,6 +1,14 @@
28 # ChangeLog for net-libs/ptlib
29 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ChangeLog,v 1.7 2009/08/03 21:31:01 maekke Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ChangeLog,v 1.8 2009/08/25 13:52:05 volkmar Exp $
32 +
33 +*ptlib-2.6.4 (25 Aug 2009)
34 +
35 + 25 Aug 2009; Mounir Lamouri <volkmar@g.o>
36 + -files/ptlib-2.6.2-gcc-allocator.patch, -ptlib-2.6.2.ebuild,
37 + +ptlib-2.6.4.ebuild:
38 + Version bump to 2.6.4. Bug 281170.
39 + Thanks to Colin MacDonald.
40
41 03 Aug 2009; Markus Meier <maekke@g.o> ptlib-2.6.2.ebuild:
42 add ~amd64, bug #276355
43
44
45
46 1.1 net-libs/ptlib/ptlib-2.6.4.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/ptlib/ptlib-2.6.4.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/ptlib/ptlib-2.6.4.ebuild?rev=1.1&content-type=text/plain
50
51 Index: ptlib-2.6.4.ebuild
52 ===================================================================
53 # Copyright 1999-2009 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ptlib-2.6.4.ebuild,v 1.1 2009/08/25 13:52:05 volkmar Exp $
56
57 EAPI="2"
58
59 inherit eutils
60
61 DESCRIPTION="Network focused portable C++ class library providing high level functions"
62 HOMEPAGE="http://www.opalvoip.org/"
63 SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
64 doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.bz2 )"
65
66 LICENSE="MPL-1.0"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
69 # default enabled are features from 'minsize', the most used according to ptlib
70 IUSE="alsa +asn +audio config-file debug dns doc dtmf esd examples ffmpeg ftp
71 +http http-forms http-server ieee1394 ipv6 jabber ldap mail pipechan odbc oss
72 pch qos remote sasl sdl serial shmvideo snmp soap socks ssl +stun telnet tts
73 +url v4l v4l2 +video video-file vxml wav xml xmlrpc"
74
75 COMMON_DEP="audio? ( alsa? ( media-libs/alsa-lib )
76 esd? ( media-sound/esound ) )
77 ldap? ( net-nds/openldap )
78 odbc? ( dev-db/unixODBC )
79 sasl? ( dev-libs/cyrus-sasl:2 )
80 sdl? ( media-libs/libsdl )
81 ssl? ( dev-libs/openssl )
82 video? ( ieee1394? ( media-libs/libdc1394:1
83 media-libs/libdv
84 sys-libs/libavc1394
85 sys-libs/libraw1394 )
86 v4l2? ( media-libs/libv4l ) )
87 xml? ( dev-libs/expat )"
88 RDEPEND="${COMMON_DEP}
89 ffmpeg? ( media-video/ffmpeg )"
90 DEPEND="${COMMON_DEP}
91 dev-util/pkgconfig
92 sys-devel/bison
93 sys-devel/flex
94 video? ( v4l? ( sys-kernel/linux-headers )
95 v4l2? ( sys-kernel/linux-headers ) )
96 !!dev-libs/pwlib"
97
98 # NOTES:
99 # media-libs/libdc1394:2 should be supported but headers location have changed
100 # tools/ directory is ignored
101 # looks to have an auto-magic dep with medialibs, but not in the tree so...
102 # upstream bug 2794736
103 # avc plugin is disabled to fix bug 276514, see upstream bug 2821744
104
105 # TODO:
106 # manage in a better way the conditional use flags (with eapi-3 ?)
107
108 conditional_use_error_msg() {
109 eerror "To enable ${1} USE flag, you need ${2} USE flag to be enabled"
110 eerror "Please, enable ${2} or disable ${1}"
111 }
112
113 pkg_setup() {
114 local use_error=false
115
116 # stop emerge if a conditional use flag is not respected
117
118 if ! use video; then
119 if use sdl; then
120 conditional_use_error_msg "sdl" "video"
121 use_error=true
122 fi
123 if use video-file; then
124 conditional_use_error_msg "video-file" "video"
125 use_error=true
126 fi
127 fi
128
129 if use jabber && ! use xml; then
130 conditional_use_error_msg "jabber" "xml"
131 use_error=true
132 fi
133
134 if use ldap && ! use dns; then
135 conditional_use_error_msg "ldap" "dns"
136 use_error=true
137 fi
138
139 if use ffmpeg && ! use pipechan; then
140 conditional_use_error_msg "ffmpeg" "pipechan"
141 use_error=true
142 fi
143
144 if use http && ! use url; then
145 conditional_use_error_msg "http" "url"
146 use_error=true
147 fi
148
149 if use http-forms; then
150 if ! use http; then
151 conditional_use_error_msg "http-forms" "http"
152 use_error=true
153 fi
154 if ! use config-file; then
155 conditional_use_error_msg "http-forms" "config-file"
156 use_error=true
157 fi
158 fi
159
160 if use http-server && ! use http-forms; then
161 conditional_use_error_msg "http-server" "http-forms"
162 use_error=true
163 fi
164
165 if use vxml; then
166 if ! use xml; then
167 conditional_use_error_msg "vxml" "xml"
168 use_error=true
169 fi
170 if ! use http; then
171 conditional_use_error_msg "vxml" "http"
172 use_error=true
173 fi
174 fi
175
176 if use xmlrpc; then
177 if ! use xml; then
178 conditional_use_error_msg "xmlrpc" "xml"
179 use_error=true
180 fi
181 # configure script tells it needs http but it fails, see bug 277385
182 # the bug has been reported at upstream bug 2820814
183 if ! use http-server; then
184 conditional_use_error_msg "xmlrpc" "http-server"
185 use_error=true
186 fi
187 fi
188
189 if use soap; then
190 if ! use xml; then
191 conditional_use_error_msg "soap" "xml"
192 use_error=true
193 fi
194 if ! use http; then
195 conditional_use_error_msg "soap" "http"
196 use_error=true
197 fi
198 fi
199
200 # fix bug 277617, upstream bug 2820953
201 if use remote; then
202 if ! use config-file; then
203 conditional_use_error_msg "remote" "config-file"
204 use_error=true
205 fi
206 fi
207
208 if ${use_error}; then
209 echo
210 eerror "Please look at previous messages and re-emerge ${PN} accordingly."
211 die "conditional USE flags error"
212 fi
213 }
214
215 src_prepare() {
216 # remove visual studio related files from samples/
217 if use examples; then
218 rm -f samples/*/*.vcproj
219 rm -f samples/*/*.sln
220 rm -f samples/*/*.dsp
221 rm -f samples/*/*.dsw
222 fi
223 }
224
225 src_configure() {
226 local myconf=""
227
228 # plugins are disabled only if ! audio and ! video
229 if ! use audio && ! use video; then
230 myconf="${myconf} --disable-plugins"
231 else
232 myconf="${myconf} --enable-plugins"
233 fi
234
235 # minsize, openh323, opal: presets of features (overwritten by use flags)
236 # ansi-bool, atomicity: there is no reason to disable those features
237 # internalregex: we want to use system one
238 # sunaudio and bsdvideo are respectively for SunOS and BSD's
239 # appshare, vfw: only for windows
240 # samples: no need to build samples
241 # avc: disabled, bug 276514, upstream bug 2821744
242 econf ${myconf} \
243 --disable-minsize \
244 --disable-openh323 \
245 --disable-opal \
246 --enable-ansi-bool \
247 --enable-atomicity \
248 --disable-internalregex \
249 --disable-sunaudio \
250 --disable-bsdvideo \
251 --disable-appshare \
252 --disable-vfw \
253 --disable-samples \
254 --disable-avc \
255 $(use_enable audio) \
256 $(use_enable alsa) \
257 $(use_enable asn) \
258 $(use_enable config-file configfile) \
259 $(use_enable debug exceptions) \
260 $(use_enable debug memcheck) \
261 $(use_enable debug tracing) \
262 $(use_enable dns resolver) \
263 $(use_enable dtmf) \
264 $(use_enable esd) \
265 $(use_enable ffmpeg ffvdev) \
266 $(use_enable ftp) \
267 $(use_enable http) \
268 $(use_enable http-forms httpforms) \
269 $(use_enable http-server httpsvc) \
270 $(use_enable ieee1394 dc) \
271 $(use_enable ipv6) \
272 $(use_enable jabber) \
273 $(use_enable ldap openldap) \
274 $(use_enable mail pop3smtp) \
275 $(use_enable odbc) \
276 $(use_enable oss) \
277 $(use_enable pch) \
278 $(use_enable pipechan) \
279 $(use_enable qos) \
280 $(use_enable remote remconn) \
281 $(use_enable sasl) \
282 $(use_enable sdl) \
283 $(use_enable serial) \
284 $(use_enable shmvideo) \
285 $(use_enable snmp) \
286 $(use_enable soap) \
287 $(use_enable socks) \
288 $(use_enable ssl openssl) \
289 $(use_enable stun) \
290 $(use_enable telnet) \
291 $(use_enable tts) \
292 $(use_enable url) \
293 $(use_enable v4l) \
294 $(use_enable v4l2) \
295 $(use_enable video) \
296 $(use_enable video-file vidfile) \
297 $(use_enable vxml) \
298 $(use_enable wav wavfile) \
299 $(use_enable xml expat) \
300 $(use_enable xmlrpc)
301 }
302
303 src_compile() {
304 local makeopts=""
305
306 use debug && makeopts="debug"
307
308 emake ${makeopts} || die "emake failed"
309 }
310
311 src_install() {
312 local makeopts=""
313
314 use debug && makeopts="DEBUG=1"
315
316 emake DESTDIR="${D}" ${makeopts} install || die "emake install failed"
317
318 if use doc; then
319 dohtml -r "${WORKDIR}"/html/* || die "dohtml failed"
320 fi
321
322 dodoc History.txt ReadMe.txt ReadMe_QOS.txt || die "dodoc failed"
323
324 # ChangeLog is not standard
325 dodoc ChangeLog-${PN}-v${PV//./_}.txt || die "dodoc failed"
326
327 if use audio || use video; then
328 newdoc plugins/ReadMe.txt ReadMe-Plugins.txt || die "newdoc failed"
329 fi
330
331 if use examples; then
332 local exampledir="/usr/share/doc/${PF}/examples"
333 local basedir="samples"
334 local sampledirs="`ls samples --hide=Makefile`"
335
336 # first, install Makefile
337 insinto ${exampledir}/
338 doins ${basedir}/Makefile || die "doins failed"
339
340 # now, all examples
341 for x in ${sampledirs}; do
342 insinto ${exampledir}/${x}/
343 doins ${basedir}/${x}/* || die "doins failed"
344 done
345 fi
346 }
347
348 pkg_postinst() {
349 if use examples; then
350 ewarn "All examples have been installed, some of them will not work on your system"
351 ewarn "it will depend of the enabled USE flags."
352 ewarn "To test examples, you have to run PTLIBDIR=/usr/share/ptlib make"
353 fi
354
355 if ! use audio || ! use video; then
356 ewarn "You have disabled audio or video USE flags."
357 ewarn "Most audio/video have been disabled silently even if enabled via USE flags."
358 ewarn "Having a feature enabled via use flag but disabled can lead to issues."
359 fi
360
361 ewarn "If you've just removed pwlib to install ptlib, some packages will be broken."
362 ewarn "Please use 'revdep-rebuild' from app-portage/gentoolkit to check."
363 ewarn "If some packages need pwlib, consider removing ptlib and re-installing pwlib"
364 ewarn "or help us to make them live together."
365 }