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