1 |
commit: f35c9dc3b866b0cf581ae180130f38c8f39df602 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jul 6 14:26:12 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Jul 6 14:37:32 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=f35c9dc3 |
7 |
|
8 |
net-libs/libproxy: punt |
9 |
|
10 |
The reason for putting libproxy in the overlay was for webkit-gtk:3 |
11 |
support. Since USE=webkit has been disabled, keeping the ebuild in the |
12 |
overlay is pointless; it's basically just an outdated version of the |
13 |
gx86 ebuild. Fixes bug #374211. |
14 |
|
15 |
--- |
16 |
.../libproxy-0.4.6-mozjs-link_directory.patch | 30 ----- |
17 |
.../files/libproxy-0.4.6-webkit-gtk-3.patch | 24 ---- |
18 |
.../files/libproxy-0.4.6-xulrunner-2.patch | 133 -------------------- |
19 |
net-libs/libproxy/libproxy-0.4.6-r300.ebuild | 85 ------------- |
20 |
4 files changed, 0 insertions(+), 272 deletions(-) |
21 |
|
22 |
diff --git a/net-libs/libproxy/files/libproxy-0.4.6-mozjs-link_directory.patch b/net-libs/libproxy/files/libproxy-0.4.6-mozjs-link_directory.patch |
23 |
deleted file mode 100644 |
24 |
index cab138e..0000000 |
25 |
--- a/net-libs/libproxy/files/libproxy-0.4.6-mozjs-link_directory.patch |
26 |
+++ /dev/null |
27 |
@@ -1,30 +0,0 @@ |
28 |
-From 18fbf794ffc2cab9f4b8df3c4132b094fc4ef281 Mon Sep 17 00:00:00 2001 |
29 |
-From: nicolas.dufresne <nicolas.dufresne@c587cffe-e639-0410-9787-d7902ae8ed56> |
30 |
-Date: Tue, 12 Oct 2010 17:39:18 +0000 |
31 |
-Subject: [PATCH 1/2] Disable transient linking |
32 |
- |
33 |
-As explained at |
34 |
-http://www.cmake.org/Wiki/CMake_FAQ#Why_do_I_have_unwanted_semicolons_.3B_in_my_compiler_flags.3F |
35 |
-if CMake links A to B and B to C, all the flags from A will be appended when |
36 |
-C is linked. This behaviour is wrong, but CMake provides a workaround which |
37 |
-is implemented in this patch. |
38 |
- |
39 |
-git-svn-id: https://libproxy.googlecode.com/svn/trunk@774 c587cffe-e639-0410-9787-d7902ae8ed56 |
40 |
---- |
41 |
- libproxy/cmake/libproxy.cmk | 1 + |
42 |
- 1 files changed, 1 insertions(+), 0 deletions(-) |
43 |
- |
44 |
-diff --git a/libproxy/cmake/libproxy.cmk b/libproxy/cmake/libproxy.cmk |
45 |
-index 5625d4e..dc9fa0f 100644 |
46 |
---- a/libproxy/cmake/libproxy.cmk |
47 |
-+++ b/libproxy/cmake/libproxy.cmk |
48 |
-@@ -18,5 +18,6 @@ endif() |
49 |
- set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/proxy.cpp |
50 |
- PROPERTY COMPILE_DEFINITIONS MODULEDIR="${MODULEDIR}";BUILTIN_MODULES=${BUILTIN_MODULES}) |
51 |
- set_target_properties(libproxy PROPERTIES PREFIX "" VERSION 1.0.0 SOVERSION 1) |
52 |
-+set_target_properties(libproxy PROPERTIES LINK_INTERFACE_LIBRARIES "") |
53 |
- install(TARGETS libproxy DESTINATION ${LIB_INSTALL_DIR}) |
54 |
- install(FILES proxy.h DESTINATION ${INCLUDE_INSTALL_DIR}) |
55 |
--- |
56 |
-1.7.2.3 |
57 |
- |
58 |
|
59 |
diff --git a/net-libs/libproxy/files/libproxy-0.4.6-webkit-gtk-3.patch b/net-libs/libproxy/files/libproxy-0.4.6-webkit-gtk-3.patch |
60 |
deleted file mode 100644 |
61 |
index b2383da..0000000 |
62 |
--- a/net-libs/libproxy/files/libproxy-0.4.6-webkit-gtk-3.patch |
63 |
+++ /dev/null |
64 |
@@ -1,24 +0,0 @@ |
65 |
-diff -Naur libproxy-0.4.6/.cproject libproxy-0.4.6.new/.cproject |
66 |
---- libproxy-0.4.6/.cproject 2010-09-02 01:53:34.000000000 +0530 |
67 |
-+++ libproxy-0.4.6.new/.cproject 2011-01-24 22:57:36.767000067 +0530 |
68 |
-@@ -167,7 +167,7 @@ |
69 |
- <pathentry include="/usr/include/NetworkManager" kind="inc" path="" system="true"/> |
70 |
- <pathentry include="/usr/include/dbus-1.0" kind="inc" path="" system="true"/> |
71 |
- <pathentry include="/usr/lib64/dbus-1.0/include" kind="inc" path="" system="true"/> |
72 |
--<pathentry include="/usr/include/webkit-1.0" kind="inc" path="" system="true"/> |
73 |
-+<pathentry include="/usr/include/webkit-3.0" kind="inc" path="" system="true"/> |
74 |
- <pathentry include="/usr/include/glib-2.0" kind="inc" path="" system="true"/> |
75 |
- <pathentry include="/usr/lib64/glib-2.0/include" kind="inc" path="" system="true"/> |
76 |
- <pathentry include="/usr/include/gtk-2.0" kind="inc" path="" system="true"/> |
77 |
-diff -Naur libproxy-0.4.6/libproxy/cmake/modules/pacrunner_webkit.cmk libproxy-0.4.6.new/libproxy/cmake/modules/pacrunner_webkit.cmk |
78 |
---- libproxy-0.4.6/libproxy/cmake/modules/pacrunner_webkit.cmk 2010-09-02 01:53:34.000000000 +0530 |
79 |
-+++ libproxy-0.4.6.new/libproxy/cmake/modules/pacrunner_webkit.cmk 2011-01-24 22:57:46.410000066 +0530 |
80 |
-@@ -12,5 +12,5 @@ |
81 |
- set(WEBKIT_FOUND 1) |
82 |
- endif() |
83 |
- else() |
84 |
-- px_check_modules(WEBKIT webkit-1.0) |
85 |
--endif() |
86 |
-\ No newline at end of file |
87 |
-+ px_check_modules(WEBKIT webkitgtk-3.0) |
88 |
-+endif() |
89 |
|
90 |
diff --git a/net-libs/libproxy/files/libproxy-0.4.6-xulrunner-2.patch b/net-libs/libproxy/files/libproxy-0.4.6-xulrunner-2.patch |
91 |
deleted file mode 100644 |
92 |
index 5f3de3c..0000000 |
93 |
--- a/net-libs/libproxy/files/libproxy-0.4.6-xulrunner-2.patch |
94 |
+++ /dev/null |
95 |
@@ -1,133 +0,0 @@ |
96 |
-http://bugs.gentoo.org/359879 |
97 |
-http://code.google.com/p/libproxy/issues/detail?id=158 |
98 |
- |
99 |
---- libproxy/cmake/modules/pacrunner_mozjs.cmk |
100 |
-+++ libproxy/cmake/modules/pacrunner_mozjs.cmk |
101 |
-@@ -7,16 +7,23 @@ |
102 |
- include_directories("${MOZJS_INCLUDE_DIR}") |
103 |
- endif() |
104 |
- elseif(NOT APPLE) |
105 |
-- set(MOZJS_SEARCH_ORDER "xulrunner-js;firefox-js;mozilla-js;seamonkey-js" CACHE STRING "MozJS search order") |
106 |
-+ set(MOZJS_SEARCH_ORDER "mozilla-js;xulrunner-js;firefox-js;seamonkey-js" CACHE STRING "MozJS search order") |
107 |
- option(WITH_MOZJS "Search for MOZJS package" ON) |
108 |
- if (WITH_MOZJS) |
109 |
-- pkg_search_module(MOZJS ${MOZJS_SEARCH_ORDER}) |
110 |
-- if(MOZJS_FOUND) |
111 |
-- include_directories(${MOZJS_INCLUDE_DIRS}) |
112 |
-- link_directories(${MOZJS_LIBRARY_DIRS}) |
113 |
-- else() |
114 |
-- set(MOZJS_FOUND 0) |
115 |
-- endif() |
116 |
-+ foreach(MOZJSLIB ${MOZJS_SEARCH_ORDER}) |
117 |
-+ pkg_search_module(MOZJS ${MOZJSLIB}) |
118 |
-+ if(MOZJS_FOUND) |
119 |
-+ include_directories(${MOZJS_INCLUDE_DIRS}) |
120 |
-+ link_directories(${MOZJS_LIBRARY_DIRS}) |
121 |
-+ pkg_search_module(MOZJS2 ${MOZJSLIB}>=2.0b10) |
122 |
-+ if(MOZJS2_FOUND) |
123 |
-+ add_definitions(-DHAVE_MOZJS_2) |
124 |
-+ endif(MOZJS2_FOUND) |
125 |
-+ break() |
126 |
-+ else() |
127 |
-+ set(MOZJS_FOUND 0) |
128 |
-+ endif() |
129 |
-+ endforeach() |
130 |
- else() |
131 |
- set(MOZJS_FOUND 0) |
132 |
- endif() |
133 |
---- libproxy/modules/pacrunner_mozjs.cpp |
134 |
-+++ libproxy/modules/pacrunner_mozjs.cpp |
135 |
-@@ -42,12 +42,12 @@ |
136 |
- #define INET6_ADDRSTRLEN 46 |
137 |
- #endif |
138 |
- |
139 |
--static JSBool dnsResolve(JSContext *cx, JSObject * /*obj*/, uintN /*argc*/, jsval *argv, jsval *rval) { |
140 |
-+static JSBool dnsResolve_(JSContext *cx, jsval hostname, jsval *vp) { |
141 |
- // Get hostname argument |
142 |
-- char *tmp = JS_strdup(cx, JS_GetStringBytes(JS_ValueToString(cx, argv[0]))); |
143 |
-+ char *tmp = JS_EncodeString(cx, JS_ValueToString(cx, hostname)); |
144 |
- |
145 |
- // Set the default return value |
146 |
-- *rval = JSVAL_NULL; |
147 |
-+ JS_SET_RVAL(cx, vp, JSVAL_NULL); |
148 |
- |
149 |
- // Look it up |
150 |
- struct addrinfo *info = NULL; |
151 |
-@@ -66,7 +66,7 @@ |
152 |
- NI_NUMERICHOST)) goto out; |
153 |
- |
154 |
- // We succeeded |
155 |
-- *rval = STRING_TO_JSVAL(JS_NewString(cx, tmp, strlen(tmp))); |
156 |
-+ JS_SET_RVAL(cx, vp, STRING_TO_JSVAL(JS_NewStringCopyN(cx, tmp, strlen(tmp)))); |
157 |
- tmp = NULL; |
158 |
- |
159 |
- out: |
160 |
-@@ -75,15 +75,20 @@ |
161 |
- return true; |
162 |
- } |
163 |
- |
164 |
--static JSBool myIpAddress(JSContext *cx, JSObject *obj, uintN /*argc*/, jsval * /*argv*/, jsval *rval) { |
165 |
-+static JSBool dnsResolve(JSContext *cx, uintN /*argc*/, jsval *vp) { |
166 |
-+ jsval *argv = JS_ARGV(cx, vp); |
167 |
-+ return dnsResolve_(cx, argv[0], vp); |
168 |
-+} |
169 |
-+ |
170 |
-+static JSBool myIpAddress(JSContext *cx, uintN /*argc*/, jsval *vp) { |
171 |
- char *hostname = (char *) JS_malloc(cx, 1024); |
172 |
- if (!gethostname(hostname, 1023)) { |
173 |
-- JSString *myhost = JS_NewString(cx, hostname, strlen(hostname)); |
174 |
-+ JSString *myhost = JS_NewStringCopyN(cx, hostname, strlen(hostname)); |
175 |
- jsval arg = STRING_TO_JSVAL(myhost); |
176 |
-- return dnsResolve(cx, obj, 1, &arg, rval); |
177 |
-+ return dnsResolve_(cx, 1, &arg); |
178 |
- } |
179 |
- JS_free(cx, hostname); |
180 |
-- *rval = JSVAL_NULL; |
181 |
-+ JS_SET_RVAL(cx, vp, JSVAL_NULL); |
182 |
- return true; |
183 |
- } |
184 |
- |
185 |
-@@ -91,7 +96,7 @@ |
186 |
- // This MUST be a static global |
187 |
- static JSClass cls = { |
188 |
- "global", JSCLASS_GLOBAL_FLAGS, |
189 |
-- JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, |
190 |
-+ JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_StrictPropertyStub, |
191 |
- JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub, |
192 |
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL |
193 |
- }; |
194 |
-@@ -111,7 +116,11 @@ |
195 |
- //JS_SetOptions(this->jsctx, JSOPTION_VAROBJFIX); |
196 |
- //JS_SetVersion(this->jsctx, JSVERSION_LATEST); |
197 |
- //JS_SetErrorReporter(cx, reportError); |
198 |
-+ #ifdef HAVE_MOZJS_2 |
199 |
-+ if (!(this->jsglb = JS_NewCompartmentAndGlobalObject(this->jsctx, &cls, NULL))) goto error; |
200 |
-+ #else |
201 |
- if (!(this->jsglb = JS_NewObject(this->jsctx, &cls, NULL, NULL))) goto error; |
202 |
-+ #endif |
203 |
- if (!JS_InitStandardClasses(this->jsctx, this->jsglb)) goto error; |
204 |
- |
205 |
- // Define Javascript functions |
206 |
-@@ -147,15 +156,19 @@ |
207 |
- throw bad_alloc(); |
208 |
- } |
209 |
- jsval args[2] = { |
210 |
-- STRING_TO_JSVAL(JS_NewString(this->jsctx, tmpurl, strlen(tmpurl))), |
211 |
-- STRING_TO_JSVAL(JS_NewString(this->jsctx, tmphost, strlen(tmphost))) |
212 |
-+ STRING_TO_JSVAL(JS_NewStringCopyN(this->jsctx, tmpurl, strlen(tmpurl))), |
213 |
-+ STRING_TO_JSVAL(JS_NewStringCopyN(this->jsctx, tmphost, strlen(tmphost))) |
214 |
- }; |
215 |
- |
216 |
- // Find the proxy (call FindProxyForURL()) |
217 |
- jsval rval; |
218 |
- JSBool result = JS_CallFunctionName(this->jsctx, this->jsglb, "FindProxyForURL", 2, args, &rval); |
219 |
- if (!result) return ""; |
220 |
-- string answer = string(JS_GetStringBytes(JS_ValueToString(this->jsctx, rval))); |
221 |
-+ |
222 |
-+ char * tmpanswer = JS_EncodeString(this->jsctx, JS_ValueToString(this->jsctx, rval)); |
223 |
-+ string answer = string(tmpanswer); |
224 |
-+ JS_free(this->jsctx, tmpanswer); |
225 |
-+ |
226 |
- if (answer == "undefined") return ""; |
227 |
- return answer; |
228 |
- } |
229 |
|
230 |
diff --git a/net-libs/libproxy/libproxy-0.4.6-r300.ebuild b/net-libs/libproxy/libproxy-0.4.6-r300.ebuild |
231 |
deleted file mode 100644 |
232 |
index 24f5aca..0000000 |
233 |
--- a/net-libs/libproxy/libproxy-0.4.6-r300.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,85 +0,0 @@ |
236 |
-# Copyright 1999-2010 Gentoo Foundation |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/libproxy-0.4.6-r1.ebuild,v 1.2 2010/11/02 15:10:38 ssuominen Exp $ |
239 |
- |
240 |
-EAPI="2" |
241 |
-PYTHON_DEPEND="python? 2:2.5" |
242 |
- |
243 |
-inherit cmake-utils eutils multilib python portability |
244 |
- |
245 |
-DESCRIPTION="Library for automatic proxy configuration management" |
246 |
-HOMEPAGE="http://code.google.com/p/libproxy/" |
247 |
-SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" |
248 |
- |
249 |
-LICENSE="LGPL-2.1" |
250 |
-SLOT="0" |
251 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
252 |
-IUSE="gnome kde mono networkmanager perl python test vala xulrunner" #webkit |
253 |
- |
254 |
-RDEPEND=" |
255 |
- gnome? ( gnome-base/gconf ) |
256 |
- kde? ( >=kde-base/kdelibs-4.3 ) |
257 |
- mono? ( dev-lang/mono ) |
258 |
- networkmanager? ( net-misc/networkmanager ) |
259 |
- perl? ( dev-lang/perl ) |
260 |
- vala? ( dev-lang/vala ) |
261 |
- xulrunner? ( >=net-libs/xulrunner-1.9.1:1.9 )" |
262 |
- # Disable till we figure out how to fix problems with gtk2/gtk3 apps |
263 |
- #webkit? ( net-libs/webkit-gtk:3 ) |
264 |
- |
265 |
-DEPEND="${RDEPEND} |
266 |
- >=dev-util/pkgconfig-0.19" |
267 |
- |
268 |
-DOCS="AUTHORS NEWS README ChangeLog" |
269 |
- |
270 |
-PATCHES=( |
271 |
- "${FILESDIR}"/${P}-mozjs-link_directory.patch |
272 |
- "${FILESDIR}"/${P}-xulrunner-2.patch ) |
273 |
- # "${FILESDIR}"/${P}-webkit-gtk-3.patch ) |
274 |
- |
275 |
-pkg_setup() { |
276 |
- if use python; then |
277 |
- python_set_active_version 2 |
278 |
- fi |
279 |
-} |
280 |
- |
281 |
-src_configure() { |
282 |
- mycmakeargs=( |
283 |
- -DPERL_VENDORINSTALL=ON |
284 |
- -DCMAKE_C_FLAGS="${CFLAGS}" |
285 |
- -DCMAKE_CXX_FLAGS="${CXXFLAGS}" |
286 |
- -DWITH_WEBKIT=OFF |
287 |
- $(cmake-utils_use_with gnome GNOME) |
288 |
- $(cmake-utils_use_with kde KDE4) |
289 |
- $(cmake-utils_use_with mono DOTNET) |
290 |
- $(cmake-utils_use_with networkmanager NM) |
291 |
- $(cmake-utils_use_with perl PERL) |
292 |
- $(cmake-utils_use_with python PYTHON) |
293 |
- $(cmake-utils_use_with vala VALA) |
294 |
- $(cmake-utils_use_with xulrunner MOZJS) |
295 |
- $(cmake-utils_use test BUILD_TESTING) |
296 |
- ) |
297 |
- #$(cmake-utils_use_with webkit WEBKIT) |
298 |
- cmake-utils_src_configure |
299 |
-} |
300 |
- |
301 |
-src_compile() { |
302 |
- # Prevent access violation when building with mono support |
303 |
- export MONO_SHARED_DIR="${T}/shared" |
304 |
- cmake-utils_src_compile |
305 |
-} |
306 |
- |
307 |
-pkg_postinst() { |
308 |
- preserve_old_lib_notify /usr/$(get_libdir)/libproxy.so.0 |
309 |
- |
310 |
- if use python; then |
311 |
- python_need_rebuild |
312 |
- python_mod_optimize $(python_get_sitedir)/${PN}.py |
313 |
- fi |
314 |
-} |
315 |
- |
316 |
-pkg_postrm() { |
317 |
- if use python; then |
318 |
- python_mod_cleanup $(python_get_sitedir)/${PN}.py |
319 |
- fi |
320 |
-} |