Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/ptlib: ptlib-2.10.10.ebuild ChangeLog
Date: Tue, 05 Mar 2013 18:56:00
Message-Id: 20130305185555.03B962171D@flycatcher.gentoo.org
1 chithanh 13/03/05 18:55:54
2
3 Modified: ChangeLog
4 Added: ptlib-2.10.10.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.11.50/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.40 net-libs/ptlib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ChangeLog?rev=1.40&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ChangeLog?rev=1.40&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ChangeLog?r1=1.39&r2=1.40
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/ptlib/ChangeLog,v
20 retrieving revision 1.39
21 retrieving revision 1.40
22 diff -u -r1.39 -r1.40
23 --- ChangeLog 16 Dec 2012 14:59:09 -0000 1.39
24 +++ ChangeLog 5 Mar 2013 18:55:54 -0000 1.40
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-libs/ptlib
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ChangeLog,v 1.39 2012/12/16 14:59:09 pacho Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ChangeLog,v 1.40 2013/03/05 18:55:54 chithanh Exp $
31 +
32 +*ptlib-2.10.10 (05 Mar 2013)
33 +
34 + 05 Mar 2013; Chí-Thanh Christopher Nguyễn <chithanh@g.o>
35 + +ptlib-2.10.10.ebuild:
36 + Version bump.
37
38 16 Dec 2012; Pacho Ramos <pacho@g.o> metadata.xml:
39 Cleanup due retirement, #260683
40
41
42
43 1.1 net-libs/ptlib/ptlib-2.10.10.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ptlib-2.10.10.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/ptlib/ptlib-2.10.10.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ptlib-2.10.10.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-libs/ptlib/ptlib-2.10.10.ebuild,v 1.1 2013/03/05 18:55:54 chithanh Exp $
53
54 EAPI="5"
55
56 inherit eutils
57
58 DESCRIPTION="Network focused portable C++ class library providing high level functions"
59 HOMEPAGE="http://www.opalvoip.org/"
60 SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
61 doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.bz2 )"
62
63 LICENSE="MPL-1.0"
64 SLOT="0/${PV}"
65 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
66 # default enabled are features from 'minsize', the most used according to ptlib
67 IUSE="alsa +asn +audio debug doc +dtmf examples ffmpeg ftp +http ipv6
68 jabber ldap lua mail odbc oss pch pulseaudio qos remote sasl sdl serial
69 shmvideo snmp soap socks ssl static-libs +stun telnet tts v4l +video
70 vxml wav xml xmlrpc"
71
72 CDEPEND="
73 audio? ( alsa? ( media-libs/alsa-lib ) )
74 ldap? ( net-nds/openldap )
75 lua? ( dev-lang/lua )
76 odbc? ( dev-db/unixODBC )
77 pulseaudio? ( media-sound/pulseaudio )
78 sasl? ( dev-libs/cyrus-sasl:2 )
79 sdl? ( media-libs/libsdl )
80 ssl? ( dev-libs/openssl )
81 video? ( v4l? ( media-libs/libv4l ) )
82 xml? ( dev-libs/expat )
83 !!dev-libs/pwlib"
84 RDEPEND="${CDEPEND}
85 ffmpeg? ( virtual/ffmpeg )"
86 DEPEND="${CDEPEND}
87 virtual/pkgconfig
88 sys-devel/bison
89 sys-devel/flex
90 video? ( v4l? ( sys-kernel/linux-headers ) )"
91
92 # NOTES:
93 # media-libs/libdc1394:2 should be supported but headers location have changed
94 # tools/ directory is ignored
95 # avc plugin is disabled to fix bug 276514, see upstream bug 2821744
96
97 conditional_use_warn_msg() {
98 ewarn "To enable ${1} USE flag, you need ${2} USE flag to be enabled"
99 ewarn "Please, enable ${2} or disable ${1}"
100 }
101
102 REQUIRED_USE="sdl? ( video )
103 jabber? ( xml )
104 vxml? ( http tts xml )
105 xmlrpc? ( http xml )
106 soap? ( http xml )"
107
108 src_prepare() {
109 epatch "${FILESDIR}/${PN}-2.10.9-svn_revision_override.patch"
110 epatch "${FILESDIR}/${PN}-2.10.9-pkgconfig_ldflags.patch"
111 epatch "${FILESDIR}/${PN}-2.10.9-respect_cxxflags.patch"
112
113 if ! use telnet; then
114 epatch "${FILESDIR}/${PN}-2.10.9-disable-telnet-symbols.patch"
115 fi
116
117 # remove visual studio related files from samples/
118 if use examples; then
119 rm -f samples/*/*.vcproj
120 rm -f samples/*/*.sln
121 rm -f samples/*/*.dsp
122 rm -f samples/*/*.dsw
123 fi
124 }
125
126 src_configure() {
127 local myconf=""
128
129 # plugins are disabled only if ! audio and ! video
130 if ! use audio && ! use video; then
131 myconf="${myconf} --disable-plugins"
132 else
133 myconf="${myconf} --enable-plugins"
134 fi
135
136 # minsize: presets of features (overwritten by use flags)
137 # ansi-bool, atomicity: there is no reason to disable those features
138 # internalregex: we want to use system one
139 # sunaudio and bsdvideo are respectively for SunOS and BSD's
140 # appshare, vfw: only for windows
141 # samples: no need to build samples
142 # avc: disabled, bug 276514, upstream bug 2821744
143 # mlib: SUN mediaLibs. Not in tree.
144 # pipechan, configfile, resolver, url: force enabling
145 econf ${myconf} \
146 --disable-minsize \
147 --enable-ansi-bool \
148 --enable-atomicity \
149 --disable-internalregex \
150 --disable-sunaudio \
151 --disable-bsdvideo \
152 --disable-appshare \
153 --disable-vfw \
154 --disable-samples \
155 --disable-avc \
156 --disable-mlib \
157 --enable-configfile \
158 --enable-pipechan \
159 --enable-resolver \
160 --enable-url \
161 $(use_enable audio) \
162 $(use_enable alsa) \
163 $(use_enable asn) \
164 $(use_enable debug exceptions) \
165 $(use_enable debug memcheck) \
166 $(use_enable debug tracing) \
167 $(use_enable dtmf) \
168 --disable-esd \
169 $(use_enable ffmpeg ffvdev) \
170 $(use_enable ftp) \
171 $(use_enable http) \
172 $(use_enable http httpforms) \
173 $(use_enable http httpsvc) \
174 --disable-dc \
175 $(use_enable ipv6) \
176 $(use_enable jabber) \
177 $(use_enable ldap openldap) \
178 $(use_enable lua) \
179 $(use_enable mail pop3smtp) \
180 $(use_enable pulseaudio pulse) \
181 $(use_enable odbc) \
182 $(use_enable oss) \
183 $(use_enable pch) \
184 $(use_enable qos) \
185 $(use_enable remote remconn) \
186 $(use_enable sasl) \
187 $(use_enable sdl) \
188 $(use_enable serial) \
189 $(use_enable shmvideo) \
190 $(use_enable snmp) \
191 $(use_enable soap) \
192 $(use_enable socks) \
193 $(use_enable ssl openssl) \
194 $(use_enable stun) \
195 $(use_enable telnet) \
196 $(use_enable tts) \
197 --disable-v4l \
198 $(use_enable v4l v4l2) \
199 $(use_enable video) $(use_enable video vidfile) \
200 $(use_enable vxml) \
201 $(use_enable wav wavfile) \
202 $(use_enable xml expat) \
203 $(use_enable xmlrpc)
204 }
205
206 src_compile() {
207 local makeopts=""
208 tc-env_build
209
210 use debug && makeopts="debug"
211
212 emake ${makeopts} || die "emake failed"
213 }
214
215 src_install() {
216 local makeopts=""
217
218 use debug && makeopts="DEBUG=1"
219
220 emake DESTDIR="${D}" ${makeopts} install || die "emake install failed"
221
222 # Get rid of static libraries if not requested
223 # There seems to be no easy way to disable this in the build system
224 if ! use static-libs; then
225 rm -v "${D}"/usr/lib*/*.a || die
226 fi
227
228 if use doc; then
229 dohtml -r "${WORKDIR}"/html/* || die "dohtml failed"
230 fi
231
232 dodoc History.txt ReadMe.txt ReadMe_QOS.txt || die "dodoc failed"
233
234 if use audio || use video; then
235 newdoc plugins/ReadMe.txt ReadMe-Plugins.txt || die "newdoc failed"
236 fi
237
238 if use examples; then
239 local exampledir="/usr/share/doc/${PF}/examples"
240 local basedir="samples"
241 local sampledirs="`ls samples --hide=Makefile`"
242
243 # first, install Makefile
244 insinto ${exampledir}/
245 doins ${basedir}/Makefile || die "doins failed"
246
247 # now, all examples
248 for x in ${sampledirs}; do
249 insinto ${exampledir}/${x}/
250 doins ${basedir}/${x}/* || die "doins failed"
251 done
252 fi
253 }
254
255 pkg_postinst() {
256 if use examples; then
257 ewarn "All examples have been installed, some of them will not work on your system"
258 ewarn "it will depend of the enabled USE flags."
259 ewarn "To test examples, you have to run PTLIBDIR=/usr/share/ptlib make"
260 fi
261
262 if ! use audio || ! use video; then
263 ewarn "You have disabled audio or video USE flags."
264 ewarn "Most audio/video have been disabled silently even if enabled via USE flags."
265 ewarn "Having a feature enabled via use flag but disabled can lead to issues."
266 fi
267
268 ewarn "If you've just removed pwlib to install ptlib, some packages will be broken."
269 ewarn "Please use 'revdep-rebuild' from app-portage/gentoolkit to check."
270 ewarn "If some packages need pwlib, consider removing ptlib and re-installing pwlib"
271 ewarn "or help us to make them live together."
272 }