Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/ptlib: ptlib-2.12.9.ebuild ChangeLog ptlib-2.10.11.ebuild
Date: Tue, 29 Apr 2014 07:58:20
Message-Id: 20140429075815.D620B2004B@flycatcher.gentoo.org
1 polynomial-c 14/04/29 07:58:15
2
3 Modified: ChangeLog
4 Added: ptlib-2.12.9.ebuild ptlib-2.10.11.ebuild
5 Log:
6 Version bumps to fix build with >=sys-devel/bison-3.0 (bug #485842)
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
9
10 Revision Changes Path
11 1.51 net-libs/ptlib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ChangeLog?rev=1.51&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ChangeLog?rev=1.51&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ChangeLog?r1=1.50&r2=1.51
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/ptlib/ChangeLog,v
20 retrieving revision 1.50
21 retrieving revision 1.51
22 diff -u -r1.50 -r1.51
23 --- ChangeLog 27 Oct 2013 09:45:21 -0000 1.50
24 +++ ChangeLog 29 Apr 2014 07:58:15 -0000 1.51
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-libs/ptlib
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ChangeLog,v 1.50 2013/10/27 09:45:21 pacho Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ChangeLog,v 1.51 2014/04/29 07:58:15 polynomial-c Exp $
31 +
32 +*ptlib-2.12.9 (29 Apr 2014)
33 +*ptlib-2.10.11 (29 Apr 2014)
34 +
35 + 29 Apr 2014; Lars Wendler <polynomial-c@g.o> +ptlib-2.10.11.ebuild,
36 + +ptlib-2.12.9.ebuild, +files/ptlib-2.10.10-mga-bison-parameter.patch:
37 + Version bumps to fix build with >=sys-devel/bison-3.0 (bug #485842).
38
39 27 Oct 2013; Pacho Ramos <pacho@g.o> metadata.xml:
40 Voip herd is removed: http://article.gmane.org/gmane.linux.gentoo.devel/88434
41
42
43
44 1.1 net-libs/ptlib/ptlib-2.12.9.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ptlib-2.12.9.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ptlib-2.12.9.ebuild?rev=1.1&content-type=text/plain
48
49 Index: ptlib-2.12.9.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ptlib-2.12.9.ebuild,v 1.1 2014/04/29 07:58:15 polynomial-c Exp $
54
55 EAPI=5
56
57 inherit eutils
58
59 DESCRIPTION="Network focused portable C++ class library providing high level functions"
60 HOMEPAGE="http://www.opalvoip.org/"
61 SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
62 doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.bz2 )"
63
64 LICENSE="MPL-1.0"
65 SLOT="0/${PV}"
66 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
67 # default enabled are features from 'minsize', the most used according to ptlib
68 IUSE="alsa +asn +audio debug doc +dtmf examples ffmpeg ftp +http ipv6
69 jabber ldap lua mail odbc oss pch pulseaudio remote sasl sdl serial
70 shmvideo snmp soap socks ssl static-libs +stun telnet tts v4l +video
71 vxml wav xml xmlrpc"
72
73 CDEPEND="
74 audio? ( alsa? ( media-libs/alsa-lib ) )
75 ldap? ( net-nds/openldap )
76 lua? ( dev-lang/lua )
77 odbc? ( dev-db/unixODBC )
78 pulseaudio? ( media-sound/pulseaudio )
79 sasl? ( dev-libs/cyrus-sasl:2 )
80 sdl? ( media-libs/libsdl )
81 ssl? ( dev-libs/openssl )
82 video? ( v4l? ( media-libs/libv4l ) )
83 xml? ( dev-libs/expat )
84 !!dev-libs/pwlib"
85 RDEPEND="${CDEPEND}
86 ffmpeg? ( virtual/ffmpeg )"
87 DEPEND="${CDEPEND}
88 virtual/pkgconfig
89 sys-devel/bison
90 sys-devel/flex
91 video? ( v4l? ( sys-kernel/linux-headers ) )"
92
93 # NOTES:
94 # media-libs/libdc1394:2 should be supported but headers location have changed
95 # tools/ directory is ignored
96 # avc plugin is disabled to fix bug 276514, see upstream bug 2821744
97
98 REQUIRED_USE="sdl? ( video )
99 jabber? ( xml )
100 vxml? ( http tts xml )
101 xmlrpc? ( http xml )
102 soap? ( http xml )"
103
104 src_prepare() {
105 epatch "${FILESDIR}/${PN}-2.10.9-svn_revision_override.patch" \
106 "${FILESDIR}/${PN}-2.10.9-pkgconfig_ldflags.patch" \
107 "${FILESDIR}/${PN}-2.12.4-respect_cxxflags.patch" \
108 "${FILESDIR}/${PN}-2.12.4-sdl-linking.patch"
109
110 if ! use telnet; then
111 epatch "${FILESDIR}/${PN}-2.10.9-disable-telnet-symbols.patch"
112 fi
113
114 # remove visual studio related files from samples/
115 if use examples; then
116 rm -f samples/*/*.vcproj
117 rm -f samples/*/*.sln
118 rm -f samples/*/*.dsp
119 rm -f samples/*/*.dsw
120 fi
121
122 if [[ ! -z ${TARGET+set} ]]; then
123 ewarn "TARGET variable is set. Removing as it would break the build, bug #465722."
124 unset TARGET
125 fi
126 }
127
128 src_configure() {
129 local myconf=""
130
131 # plugins are disabled only if ! audio and ! video
132 if ! use audio && ! use video; then
133 myconf+=" --disable-plugins"
134 else
135 myconf+=" --enable-plugins"
136 fi
137
138 # minsize: presets of features (overwritten by use flags)
139 # ansi-bool, atomicity: there is no reason to disable those features
140 # internalregex: we want to use system one
141 # sunaudio and bsdvideo are respectively for SunOS and BSD's
142 # appshare, vfw: only for windows
143 # samples: no need to build samples
144 # avc: disabled, bug 276514, upstream bug 2821744
145 # mlib: SUN mediaLibs. Not in tree.
146 # pipechan, configfile, resolver, url: force enabling
147 econf ${myconf} \
148 --disable-minsize \
149 --enable-ansi-bool \
150 --enable-atomicity \
151 --disable-internalregex \
152 --disable-sunaudio \
153 --disable-bsdvideo \
154 --disable-appshare \
155 --disable-vfw \
156 --disable-samples \
157 --disable-avc \
158 --disable-mlib \
159 --enable-configfile \
160 --enable-pipechan \
161 --enable-resolver \
162 --enable-url \
163 $(use_enable audio) \
164 $(use_enable alsa) \
165 $(use_enable asn) \
166 $(use_enable debug exceptions) \
167 $(use_enable debug memcheck) \
168 $(use_enable debug tracing) \
169 $(use_enable dtmf) \
170 --disable-esd \
171 $(use_enable ffmpeg ffvdev) \
172 $(use_enable ftp) \
173 $(use_enable http) \
174 $(use_enable http httpforms) \
175 $(use_enable http httpsvc) \
176 --disable-dc \
177 $(use_enable ipv6) \
178 $(use_enable jabber) \
179 $(use_enable ldap openldap) \
180 $(use_enable lua) \
181 $(use_enable mail pop3smtp) \
182 $(use_enable pulseaudio pulse) \
183 $(use_enable odbc) \
184 $(use_enable oss) \
185 $(use_enable pch) \
186 $(use_enable remote remconn) \
187 $(use_enable sasl) \
188 $(use_enable sdl) \
189 $(use_enable serial) \
190 $(use_enable shmvideo) \
191 $(use_enable snmp) \
192 $(use_enable soap) \
193 $(use_enable socks) \
194 $(use_enable ssl openssl) \
195 $(use_enable stun) \
196 $(use_enable telnet) \
197 $(use_enable tts) \
198 --disable-v4l \
199 $(use_enable v4l v4l2) \
200 $(use_enable video) $(use_enable video vidfile) \
201 $(use_enable vxml) \
202 $(use_enable wav wavfile) \
203 $(use_enable xml expat) \
204 $(use_enable xmlrpc)
205 }
206
207 src_compile() {
208 local makeopts=""
209 tc-env_build
210
211 use debug && makeopts="debug"
212
213 emake ${makeopts}
214 }
215
216 src_install() {
217 local makeopts=""
218
219 use debug && makeopts="DEBUG=1"
220
221 emake DESTDIR="${D}" ${makeopts} install
222
223 # Get rid of static libraries if not requested
224 # There seems to be no easy way to disable this in the build system
225 if ! use static-libs; then
226 rm -v "${D}"/usr/lib*/*.a || die
227 fi
228
229 if use doc; then
230 dohtml -r "${WORKDIR}"/html/*
231 fi
232
233 dodoc History.txt ReadMe.txt ReadMe_QOS.txt
234
235 if use audio || use video; then
236 newdoc plugins/ReadMe.txt ReadMe-Plugins.txt
237 fi
238
239 if use examples; then
240 local exampledir="/usr/share/doc/${PF}/examples"
241 local basedir="samples"
242 local sampledirs="`ls samples --hide=Makefile`"
243
244 # first, install Makefile
245 insinto ${exampledir}/
246 doins ${basedir}/Makefile || die "doins failed"
247
248 # now, all examples
249 for x in ${sampledirs}; do
250 insinto ${exampledir}/${x}/
251 doins ${basedir}/${x}/* || die "doins failed"
252 done
253 fi
254 }
255
256 pkg_postinst() {
257 if use examples; then
258 ewarn "All examples have been installed, some of them will not work on your system"
259 ewarn "it will depend of the enabled USE flags."
260 ewarn "To test examples, you have to run PTLIBDIR=/usr/share/ptlib make"
261 fi
262
263 if ! use audio || ! use video; then
264 ewarn "You have disabled audio or video USE flags."
265 ewarn "Most audio/video have been disabled silently even if enabled via USE flags."
266 ewarn "Having a feature enabled via use flag but disabled can lead to issues."
267 fi
268
269 ewarn "If you've just removed pwlib to install ptlib, some packages will be broken."
270 ewarn "Please use 'revdep-rebuild' from app-portage/gentoolkit to check."
271 ewarn "If some packages need pwlib, consider removing ptlib and re-installing pwlib"
272 ewarn "or help us to make them live together."
273 }
274
275
276
277 1.1 net-libs/ptlib/ptlib-2.10.11.ebuild
278
279 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ptlib-2.10.11.ebuild?rev=1.1&view=markup
280 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ptlib-2.10.11.ebuild?rev=1.1&content-type=text/plain
281
282 Index: ptlib-2.10.11.ebuild
283 ===================================================================
284 # Copyright 1999-2014 Gentoo Foundation
285 # Distributed under the terms of the GNU General Public License v2
286 # $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ptlib-2.10.11.ebuild,v 1.1 2014/04/29 07:58:15 polynomial-c Exp $
287
288 EAPI="5"
289
290 inherit eutils
291
292 DESCRIPTION="Network focused portable C++ class library providing high level functions"
293 HOMEPAGE="http://www.opalvoip.org/"
294 SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
295 doc? ( mirror://sourceforge/opalvoip/${PN}-2.10.10-htmldoc.tar.bz2 )"
296
297 LICENSE="MPL-1.0"
298 SLOT="0/${PV}"
299 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
300 # default enabled are features from 'minsize', the most used according to ptlib
301 IUSE="alsa +asn +audio debug doc +dtmf examples ffmpeg ftp +http ipv6
302 jabber ldap lua mail odbc oss pch pulseaudio qos remote sasl sdl serial
303 shmvideo snmp soap socks ssl static-libs +stun telnet tts v4l +video
304 vxml wav xml xmlrpc"
305
306 CDEPEND="
307 audio? ( alsa? ( media-libs/alsa-lib ) )
308 ldap? ( net-nds/openldap )
309 lua? ( dev-lang/lua )
310 odbc? ( dev-db/unixODBC )
311 pulseaudio? ( media-sound/pulseaudio )
312 sasl? ( dev-libs/cyrus-sasl:2 )
313 sdl? ( media-libs/libsdl )
314 ssl? ( dev-libs/openssl )
315 video? ( v4l? ( media-libs/libv4l ) )
316 xml? ( dev-libs/expat )
317 !!dev-libs/pwlib"
318 RDEPEND="${CDEPEND}
319 ffmpeg? ( virtual/ffmpeg )"
320 DEPEND="${CDEPEND}
321 virtual/pkgconfig
322 sys-devel/bison
323 sys-devel/flex
324 video? ( v4l? ( sys-kernel/linux-headers ) )"
325
326 # NOTES:
327 # media-libs/libdc1394:2 should be supported but headers location have changed
328 # tools/ directory is ignored
329 # avc plugin is disabled to fix bug 276514, see upstream bug 2821744
330
331 conditional_use_warn_msg() {
332 ewarn "To enable ${1} USE flag, you need ${2} USE flag to be enabled"
333 ewarn "Please, enable ${2} or disable ${1}"
334 }
335
336 REQUIRED_USE="sdl? ( video )
337 jabber? ( xml )
338 vxml? ( http tts xml )
339 xmlrpc? ( http xml )
340 soap? ( http xml )"
341
342 src_prepare() {
343 epatch "${FILESDIR}/${PN}-2.10.9-svn_revision_override.patch" \
344 "${FILESDIR}/${PN}-2.10.9-pkgconfig_ldflags.patch" \
345 "${FILESDIR}/${PN}-2.10.9-respect_cxxflags.patch" \
346 "${FILESDIR}/${PN}-2.10.10-mga-bison-parameter.patch"
347
348 if ! use telnet; then
349 epatch "${FILESDIR}/${PN}-2.10.9-disable-telnet-symbols.patch"
350 fi
351
352 # remove visual studio related files from samples/
353 if use examples; then
354 rm -f samples/*/*.vcproj
355 rm -f samples/*/*.sln
356 rm -f samples/*/*.dsp
357 rm -f samples/*/*.dsw
358 fi
359
360 if [[ ! -z ${TARGET+set} ]]; then
361 ewarn "TARGET variable is set. Removing as it would break the build, bug #465722."
362 unset TARGET
363 fi
364 }
365
366 src_configure() {
367 local myconf=""
368
369 # plugins are disabled only if ! audio and ! video
370 if ! use audio && ! use video; then
371 myconf="${myconf} --disable-plugins"
372 else
373 myconf="${myconf} --enable-plugins"
374 fi
375
376 # minsize: presets of features (overwritten by use flags)
377 # ansi-bool, atomicity: there is no reason to disable those features
378 # internalregex: we want to use system one
379 # sunaudio and bsdvideo are respectively for SunOS and BSD's
380 # appshare, vfw: only for windows
381 # samples: no need to build samples
382 # avc: disabled, bug 276514, upstream bug 2821744
383 # mlib: SUN mediaLibs. Not in tree.
384 # pipechan, configfile, resolver, url: force enabling
385 econf ${myconf} \
386 --disable-minsize \
387 --enable-ansi-bool \
388 --enable-atomicity \
389 --disable-internalregex \
390 --disable-sunaudio \
391 --disable-bsdvideo \
392 --disable-appshare \
393 --disable-vfw \
394 --disable-samples \
395 --disable-avc \
396 --disable-mlib \
397 --enable-configfile \
398 --enable-pipechan \
399 --enable-resolver \
400 --enable-url \
401 $(use_enable audio) \
402 $(use_enable alsa) \
403 $(use_enable asn) \
404 $(use_enable debug exceptions) \
405 $(use_enable debug memcheck) \
406 $(use_enable debug tracing) \
407 $(use_enable dtmf) \
408 --disable-esd \
409 $(use_enable ffmpeg ffvdev) \
410 $(use_enable ftp) \
411 $(use_enable http) \
412 $(use_enable http httpforms) \
413 $(use_enable http httpsvc) \
414 --disable-dc \
415 $(use_enable ipv6) \
416 $(use_enable jabber) \
417 $(use_enable ldap openldap) \
418 $(use_enable lua) \
419 $(use_enable mail pop3smtp) \
420 $(use_enable pulseaudio pulse) \
421 $(use_enable odbc) \
422 $(use_enable oss) \
423 $(use_enable pch) \
424 $(use_enable qos) \
425 $(use_enable remote remconn) \
426 $(use_enable sasl) \
427 $(use_enable sdl) \
428 $(use_enable serial) \
429 $(use_enable shmvideo) \
430 $(use_enable snmp) \
431 $(use_enable soap) \
432 $(use_enable socks) \
433 $(use_enable ssl openssl) \
434 $(use_enable stun) \
435 $(use_enable telnet) \
436 $(use_enable tts) \
437 --disable-v4l \
438 $(use_enable v4l v4l2) \
439 $(use_enable video) $(use_enable video vidfile) \
440 $(use_enable vxml) \
441 $(use_enable wav wavfile) \
442 $(use_enable xml expat) \
443 $(use_enable xmlrpc)
444 }
445
446 src_compile() {
447 local makeopts=""
448 tc-env_build
449
450 use debug && makeopts="debug"
451
452 emake ${makeopts} || die "emake failed"
453 }
454
455 src_install() {
456 local makeopts=""
457
458 use debug && makeopts="DEBUG=1"
459
460 emake DESTDIR="${D}" ${makeopts} install || die "emake install failed"
461
462 # Get rid of static libraries if not requested
463 # There seems to be no easy way to disable this in the build system
464 if ! use static-libs; then
465 rm -v "${D}"/usr/lib*/*.a || die
466 fi
467
468 if use doc; then
469 dohtml -r "${WORKDIR}"/html/* || die "dohtml failed"
470 fi
471
472 dodoc History.txt ReadMe.txt ReadMe_QOS.txt || die "dodoc failed"
473
474 if use audio || use video; then
475 newdoc plugins/ReadMe.txt ReadMe-Plugins.txt || die "newdoc failed"
476 fi
477
478 if use examples; then
479 local exampledir="/usr/share/doc/${PF}/examples"
480 local basedir="samples"
481 local sampledirs="`ls samples --hide=Makefile`"
482
483 # first, install Makefile
484 insinto ${exampledir}/
485 doins ${basedir}/Makefile || die "doins failed"
486
487 # now, all examples
488 for x in ${sampledirs}; do
489 insinto ${exampledir}/${x}/
490 doins ${basedir}/${x}/* || die "doins failed"
491 done
492 fi
493 }
494
495 pkg_postinst() {
496 if use examples; then
497 ewarn "All examples have been installed, some of them will not work on your system"
498 ewarn "it will depend of the enabled USE flags."
499 ewarn "To test examples, you have to run PTLIBDIR=/usr/share/ptlib make"
500 fi
501
502 if ! use audio || ! use video; then
503 ewarn "You have disabled audio or video USE flags."
504 ewarn "Most audio/video have been disabled silently even if enabled via USE flags."
505 ewarn "Having a feature enabled via use flag but disabled can lead to issues."
506 fi
507
508 ewarn "If you've just removed pwlib to install ptlib, some packages will be broken."
509 ewarn "Please use 'revdep-rebuild' from app-portage/gentoolkit to check."
510 ewarn "If some packages need pwlib, consider removing ptlib and re-installing pwlib"
511 ewarn "or help us to make them live together."
512 }