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