Gentoo Archives: gentoo-commits

From: Kacper Kowalik <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/xarthisius:master commit in: net-libs/libproxy/files/, net-libs/libproxy/
Date: Mon, 30 Apr 2012 10:32:13
Message-Id: 1335781945.5a29793058c13aff7aa60fea6fe47e3dd66e77b0.xarthisius@gentoo
1 commit: 5a29793058c13aff7aa60fea6fe47e3dd66e77b0
2 Author: Kacper Kowalik (Xarthisius) <xarthisius.kk <AT> gmail <DOT> com>
3 AuthorDate: Mon Apr 30 10:32:25 2012 +0000
4 Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 30 10:32:25 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/xarthisius.git;a=commit;h=5a297930
7
8 [net-libs/libproxy] fix for gcc-4.7
9
10 ---
11 net-libs/libproxy/Manifest | 3 +
12 net-libs/libproxy/files/libproxy-0.4.7-gcc47.patch | 57 +++++++++++++++
13 net-libs/libproxy/libproxy-0.4.7.ebuild | 77 ++++++++++++++++++++
14 3 files changed, 137 insertions(+), 0 deletions(-)
15
16 diff --git a/net-libs/libproxy/Manifest b/net-libs/libproxy/Manifest
17 new file mode 100644
18 index 0000000..c94d965
19 --- /dev/null
20 +++ b/net-libs/libproxy/Manifest
21 @@ -0,0 +1,3 @@
22 +AUX libproxy-0.4.7-gcc47.patch 1674 RMD160 db229a421000667e169cc85f2210e099c94aefab SHA1 537a5d1f4b69c352fbdf5d4fc5c38171392fe951 SHA256 fce5b8fbc96cbf9aa16b2b783052fbb90130452b5f72005ff604d087d81d049a
23 +DIST libproxy-0.4.7.tar.gz 91092 RMD160 a09c8320cbabed23c84ceddf3c9b572cf89c9c0e SHA1 b01ebbdf837babf63f38ee34e261d76f23dad319 SHA256 8fe0a58810139ba3c2e186deccf3e68adcd127aa0e972b0862b30b3dde493797
24 +EBUILD libproxy-0.4.7.ebuild 2314 RMD160 2f94088b4ff21ccf4c7a714b8a3b8981d905c475 SHA1 d5cd46e411ba8a0f08b2cb0529cef1b6ccc977a7 SHA256 7c01df9dc8cc5297561d9f3b45df8c969e169466b88642e8c00f13601f757ee0
25
26 diff --git a/net-libs/libproxy/files/libproxy-0.4.7-gcc47.patch b/net-libs/libproxy/files/libproxy-0.4.7-gcc47.patch
27 new file mode 100644
28 index 0000000..ac01466
29 --- /dev/null
30 +++ b/net-libs/libproxy/files/libproxy-0.4.7-gcc47.patch
31 @@ -0,0 +1,57 @@
32 +http://code.google.com/p/libproxy/source/detail?r=833
33 +http://code.google.com/p/libproxy/issues/detail?id=173
34 +https://bugs.gentoo.org/show_bug.cgi?id=412363
35 +
36 +--- a/libproxy/url.cpp
37 ++++ b/libproxy/url.cpp
38 +@@ -33,6 +33,7 @@
39 + #include <cstdlib> // For atoi()
40 + #include <sys/stat.h> // For stat()
41 + #include <algorithm> // For transform()
42 ++#include <unistd.h> // For read() close()
43 +
44 + #ifdef WIN32
45 + #include <io.h>
46 +--- a/libproxy/modules/pacrunner_webkit.cpp
47 ++++ b/libproxy/modules/pacrunner_webkit.cpp
48 +@@ -18,6 +18,7 @@
49 + ******************************************************************************/
50 +
51 + #include "../extension_pacrunner.hpp"
52 ++#include <unistd.h> // gethostname
53 + using namespace libproxy;
54 +
55 + #ifdef __APPLE__
56 +--- a/libproxy/modules/pacrunner_natus.cpp
57 ++++ b/libproxy/modules/pacrunner_natus.cpp
58 +@@ -18,6 +18,7 @@
59 + ******************************************************************************/
60 +
61 + #include "../extension_pacrunner.hpp"
62 ++#include <unistd.h> // gethostname
63 + using namespace libproxy;
64 +
65 + #define I_ACKNOWLEDGE_THAT_NATUS_IS_NOT_STABLE
66 +--- a/libproxy/modules/pacrunner_mozjs.cpp
67 ++++ b/libproxy/modules/pacrunner_mozjs.cpp
68 +@@ -18,6 +18,7 @@
69 + ******************************************************************************/
70 +
71 + #include <cstring> // ?
72 ++#include <unistd.h> // gethostname
73 +
74 + #include "../extension_pacrunner.hpp"
75 + using namespace libproxy;
76 +--- a/libproxy/modules/config_sysconfig.cpp
77 ++++ b/libproxy/modules/config_sysconfig.cpp
78 +@@ -21,7 +21,10 @@
79 + #include <cstdlib>
80 + #include <map>
81 + #include <fstream>
82 ++#include <unistd.h>
83 ++#include <sys/types.h>
84 +
85 ++
86 + #include "../extension_config.hpp"
87 + using namespace libproxy;
88 + using std::map;
89
90 diff --git a/net-libs/libproxy/libproxy-0.4.7.ebuild b/net-libs/libproxy/libproxy-0.4.7.ebuild
91 new file mode 100644
92 index 0000000..9e144d3
93 --- /dev/null
94 +++ b/net-libs/libproxy/libproxy-0.4.7.ebuild
95 @@ -0,0 +1,77 @@
96 +# Copyright 1999-2012 Gentoo Foundation
97 +# Distributed under the terms of the GNU General Public License v2
98 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/libproxy-0.4.7.ebuild,v 1.9 2012/02/01 02:00:47 ssuominen Exp $
99 +
100 +EAPI=4
101 +PYTHON_DEPEND="python? 2:2.6"
102 +
103 +inherit cmake-utils mono python
104 +
105 +DESCRIPTION="Library for automatic proxy configuration management"
106 +HOMEPAGE="http://code.google.com/p/libproxy/"
107 +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
108 +
109 +LICENSE="LGPL-2.1"
110 +SLOT="0"
111 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-linux"
112 +IUSE="gnome kde mono networkmanager perl python test"
113 +
114 +# FIXME: Disable webkit support due problems like bug #366791
115 +# FIXME: Also disable xulrunner support due bug #360893, will be readded
116 +# in the future when only spidermonkey mozjs is provided.
117 +# NOTE: USE=xulrunner also causes problems like bug 373397, re-add carefully.
118 +
119 +RDEPEND="gnome? ( >=dev-libs/glib-2.26:2 )
120 + kde? ( >=kde-base/kdelibs-4.4.5 )
121 + mono? ( dev-lang/mono )
122 + networkmanager? ( net-misc/networkmanager )
123 + perl? ( dev-lang/perl )"
124 +# xulrunner? ( >=net-libs/xulrunner-1.9.1:1.9 )
125 +# webkit? ( net-libs/webkit-gtk:2 )
126 +# Since 0.4.7, webkit gtk3 support is also available
127 +DEPEND="${RDEPEND}
128 + dev-util/pkgconfig"
129 +
130 +PATCHES=( "${FILESDIR}"/${P}-gcc47.patch )
131 +
132 +pkg_setup() {
133 + DOCS="AUTHORS ChangeLog NEWS README"
134 +
135 + if use python; then
136 + python_set_active_version 2
137 + python_pkg_setup
138 + fi
139 +}
140 +
141 +src_configure() {
142 + # WITH_VALA just copies the .vapi file over and needs no deps,
143 + # hence always enable it unconditionally
144 + local mycmakeargs=(
145 + -DPERL_VENDORINSTALL=ON
146 + -DCMAKE_C_FLAGS="${CFLAGS}"
147 + -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
148 + $(cmake-utils_use_with gnome GNOME)
149 + $(cmake-utils_use_with gnome GNOME3)
150 + $(cmake-utils_use_with kde KDE4)
151 + $(cmake-utils_use_with mono DOTNET)
152 + $(cmake-utils_use_with networkmanager NM)
153 + $(cmake-utils_use_with perl PERL)
154 + $(cmake-utils_use_with python PYTHON)
155 + -DWITH_VALA=ON
156 + -DWITH_WEBKIT=OFF
157 + -DWITH_WEBKIT3=OFF
158 + -DWITH_MOZJS=OFF
159 + $(cmake-utils_use test BUILD_TESTING)
160 + )
161 + #$(cmake-utils_use_with webkit WEBKIT)
162 + #$(cmake-utils_use_with xulrunner MOZJS)
163 + cmake-utils_src_configure
164 +}
165 +
166 +pkg_postinst() {
167 + use python && python_mod_optimize ${PN}.py
168 +}
169 +
170 +pkg_postrm() {
171 + use python && python_mod_cleanup ${PN}.py
172 +}