Gentoo Archives: gentoo-commits

From: "Mart Raudsepp (leio)" <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/libproxy: libproxy-0.2.3-r2.ebuild ChangeLog libproxy-0.2.3-r1.ebuild
Date: Mon, 29 Jun 2009 19:26:15
Message-Id: E1MLMUX-000288-MY@stork.gentoo.org
1 leio 09/06/29 19:26:13
2
3 Modified: ChangeLog
4 Added: libproxy-0.2.3-r2.ebuild
5 Removed: libproxy-0.2.3-r1.ebuild
6 Log:
7 Fix automagic mozilla-js provider picking, so that with USE=xulrunner xulrunner-1.9 is always picked, and with USE="seamonkey -xulrunner" seamonkey-js is always picked. Depend on a xulrunner:1.9 that has its mozilla-js pkgconfig file usable for us while building to fix bug 275318 once and for all
8 (Portage version: 2.2_rc22/cvs/Linux 2.6.30-gentoo-r1 x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.16 net-libs/libproxy/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libproxy/ChangeLog?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libproxy/ChangeLog?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libproxy/ChangeLog?r1=1.15&r2=1.16
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/libproxy/ChangeLog,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- ChangeLog 25 Jun 2009 20:53:37 -0000 1.15
24 +++ ChangeLog 29 Jun 2009 19:26:13 -0000 1.16
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-libs/libproxy
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/ChangeLog,v 1.15 2009/06/25 20:53:37 mrpouet Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/ChangeLog,v 1.16 2009/06/29 19:26:13 leio Exp $
30 +
31 + 29 Jun 2009; Mart Raudsepp <leio@g.o>
32 + +files/libproxy-0.2.3-fix-automagic-mozjs.patch:
33 + Fix automagic mozilla-js provider picking, so that with USE=xulrunner
34 + xulrunner-1.9 is always picked, and with USE="seamonkey -xulrunner"
35 + seamonkey-js is always picked. Depend on a xulrunner:1.9 that has its
36 + mozilla-js pkgconfig file usable for us while building to fix bug 275318
37 + once and for all
38
39 25 Jun 2009; Romain Perier <mrpouet@g.o>
40 files/libproxy-0.2.3-fix-mozjs-cflags.patch:
41
42
43
44 1.1 net-libs/libproxy/libproxy-0.2.3-r2.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libproxy/libproxy-0.2.3-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libproxy/libproxy-0.2.3-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: libproxy-0.2.3-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/libproxy-0.2.3-r2.ebuild,v 1.1 2009/06/29 19:26:13 leio Exp $
54
55 EAPI="2"
56
57 inherit autotools eutils python portability
58
59 DESCRIPTION="Library for automatic proxy configuration management"
60 HOMEPAGE="http://code.google.com/p/libproxy/"
61 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
62
63 LICENSE="LGPL-2.1"
64 SLOT="0"
65 KEYWORDS="alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
66 IUSE="gnome kde networkmanager python seamonkey webkit xulrunner"
67
68 RDEPEND="
69 gnome? (
70 x11-libs/libX11
71 x11-libs/libXmu
72 gnome-base/gconf )
73 kde? (
74 x11-libs/libX11
75 x11-libs/libXmu )
76 networkmanager? ( net-misc/networkmanager )
77 python? ( >=dev-lang/python-2.5 )
78 webkit? ( net-libs/webkit-gtk )
79 xulrunner? ( >=net-libs/xulrunner-1.9.0.11-r1:1.9 )
80 !xulrunner? ( seamonkey? ( www-client/seamonkey ) )
81 "
82 # Since xulrunner-1.9.0.11-r1 its shipped mozilla-js.pc is fixed so we can use it
83
84 DEPEND="${RDEPEND}
85 >=dev-util/pkgconfig-0.19"
86
87 src_prepare() {
88 # http://code.google.com/p/libproxy/issues/detail?id=23
89 epatch "${FILESDIR}/${P}-fix-dbus-includes.patch"
90
91 # http://code.google.com/p/libproxy/issues/detail?id=24
92 epatch "${FILESDIR}/${P}-fix-python-automagic.patch"
93
94 # http://code.google.com/p/libproxy/issues/detail?id=25
95 epatch "${FILESDIR}/${P}-fix-as-needed-problem.patch"
96
97 # Bug 275127 and 275318
98 epatch "${FILESDIR}/${P}-fix-automagic-mozjs.patch"
99
100 # Fix implicit declaration QA, bug #268546
101 epatch "${FILESDIR}/${P}-implicit-declaration.patch"
102
103 epatch "${FILESDIR}/${P}-fbsd.patch" # drop at next bump
104
105 # Fix test to follow POSIX (for x86-fbsd).
106 # FIXME: This doesn't actually fix all == instances when two are on the same line
107 sed -e 's/\(test.*\)==/\1=/g' -i configure.ac configure || die "sed failed"
108
109 eautoreconf
110 }
111
112 src_configure() {
113 local myconf
114
115 # xulrunner:1.9 => mozilla; seamonkey => seamonkey;
116 # xulrunner:1.8 => xulrunner; (firefox => mozilla-firefox[-xulrunner] ?)
117 if use xulrunner; then myconf="--with-mozjs=mozilla"
118 elif use seamonkey; then myconf="--with-mozjs=seamonkey"
119 else myconf="--without-mozjs"
120 fi
121
122 econf --with-envvar \
123 --with-file \
124 --disable-static \
125 $(use_with gnome) \
126 $(use_with kde) \
127 $(use_with webkit) \
128 ${myconf} \
129 $(use_with networkmanager) \
130 $(use_with python)
131 }
132
133 src_compile() {
134 emake LIBDL="$(dlopen_lib)" || die
135 }
136
137 src_install() {
138 emake DESTDIR="${D}" LIBDL="$(dlopen_lib)" install || die "emake install failed!"
139 dodoc AUTHORS NEWS README ChangeLog || die "dodoc failed"
140 }
141
142 pkg_postinst() {
143 if use python; then
144 python_need_rebuild
145 python_mod_optimize "$(python_get_sitedir)/${PN}.py"
146 fi
147 }
148
149 pkg_postrm() {
150 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/${PN}.py
151 }