Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/curl: curl-7.35.0-r1.ebuild ChangeLog
Date: Wed, 02 Apr 2014 15:29:46
Message-Id: 20140402152940.4830C20061@flycatcher.gentoo.org
1 blueness 14/04/02 15:29:40
2
3 Modified: ChangeLog
4 Added: curl-7.35.0-r1.ebuild
5 Log:
6 Fix polarssl bug #503558, re-introduce tests bug #285669
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.344 net-misc/curl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/ChangeLog?rev=1.344&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/ChangeLog?rev=1.344&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/ChangeLog?r1=1.343&r2=1.344
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/curl/ChangeLog,v
20 retrieving revision 1.343
21 retrieving revision 1.344
22 diff -u -r1.343 -r1.344
23 --- ChangeLog 31 Mar 2014 13:42:39 -0000 1.343
24 +++ ChangeLog 2 Apr 2014 15:29:40 -0000 1.344
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-misc/curl
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/curl/ChangeLog,v 1.343 2014/03/31 13:42:39 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/curl/ChangeLog,v 1.344 2014/04/02 15:29:40 blueness Exp $
30 +
31 +*curl-7.35.0-r1 (02 Apr 2014)
32 +
33 + 02 Apr 2014; Anthony G. Basile <blueness@g.o> +curl-7.35.0-r1.ebuild,
34 + +files/curl-7.35.0-tests.patch:
35 + Fix polarssl bug #503558, re-introduce tests bug #285669
36
37 31 Mar 2014; Anthony G. Basile <blueness@g.o> curl-7.36.0.ebuild:
38 Enable tests, bug #285669
39
40
41
42 1.1 net-misc/curl/curl-7.35.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/curl-7.35.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/curl-7.35.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: curl-7.35.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.35.0-r1.ebuild,v 1.1 2014/04/02 15:29:40 blueness Exp $
52
53 EAPI="5"
54
55 PYTHON_COMPAT=( python2_6 python2_7 )
56 inherit autotools eutils prefix python-any-r1
57
58 DESCRIPTION="A Client that groks URLs"
59 HOMEPAGE="http://curl.haxx.se/"
60 SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2
61 http://dev.gentoo.org/~hasufell/distfiles/${P}-polarssl-1.3.x.tar.xz"
62
63 LICENSE="MIT"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
66 IUSE="adns idn ipv6 kerberos ldap metalink rtmp ssh ssl static-libs test threads"
67 IUSE="${IUSE} curl_ssl_axtls curl_ssl_cyassl curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl curl_ssl_polarssl"
68
69 RDEPEND="ldap? ( net-nds/openldap )
70 ssl? (
71 curl_ssl_axtls? ( net-libs/axtls app-misc/ca-certificates )
72 curl_ssl_cyassl? ( net-libs/cyassl app-misc/ca-certificates )
73 curl_ssl_gnutls? (
74 || (
75 ( >=net-libs/gnutls-3[static-libs?] dev-libs/nettle )
76 ( =net-libs/gnutls-2.12*[nettle,static-libs?] dev-libs/nettle )
77 ( =net-libs/gnutls-2.12*[-nettle,static-libs?] dev-libs/libgcrypt[static-libs?] )
78 )
79 app-misc/ca-certificates
80 )
81 curl_ssl_openssl? ( dev-libs/openssl[static-libs?] )
82 curl_ssl_nss? ( dev-libs/nss app-misc/ca-certificates )
83 curl_ssl_polarssl? ( net-libs/polarssl app-misc/ca-certificates )
84 )
85 idn? ( net-dns/libidn[static-libs?] )
86 adns? ( net-dns/c-ares )
87 kerberos? ( virtual/krb5 )
88 metalink? ( >=media-libs/libmetalink-0.1.0 )
89 rtmp? ( media-video/rtmpdump )
90 ssh? ( net-libs/libssh2[static-libs?] )
91 sys-libs/zlib"
92
93 # Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303
94 # rtmp? (
95 # media-video/rtmpdump
96 # curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] )
97 # curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] )
98 # )
99
100 # ssl providers to be added:
101 # fbopenssl $(use_with spnego)
102
103 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
104
105 DEPEND="${RDEPEND}
106 virtual/pkgconfig
107 test? (
108 ${PYTHON_DEPS}
109 sys-apps/diffutils
110 dev-lang/perl
111 )"
112
113 # c-ares must be disabled for threads
114 # only one ssl provider can be enabled
115 REQUIRED_USE="
116 threads? ( !adns )
117 ssl? (
118 ^^ (
119 curl_ssl_axtls
120 curl_ssl_cyassl
121 curl_ssl_gnutls
122 curl_ssl_openssl
123 curl_ssl_nss
124 curl_ssl_polarssl
125 )
126 )"
127
128 DOCS=( CHANGES README docs/FEATURES docs/INTERNALS \
129 docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE)
130
131 pkg_setup() {
132 if use test ; then
133 python-any-r1_pkg_setup
134 fi
135 }
136
137 src_prepare() {
138 epatch \
139 "${FILESDIR}"/${PN}-7.30.0-prefix.patch \
140 "${FILESDIR}"/${PN}-7.30.0-configure.patch \
141 "${FILESDIR}"/${PN}-respect-cflags-3.patch \
142 "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch \
143 "${FILESDIR}"/${PN}-7.35.0-tests.patch
144
145 EPATCH_SUFFIX="patch" \
146 EPATCH_FORCE="yes" \
147 epatch "${WORKDIR}"/${P}-polarssl-1.3.x
148
149 sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
150
151 epatch_user
152 eprefixify curl-config.in
153 eautoreconf
154 }
155
156 src_configure() {
157 einfo "\033[1;32m**************************************************\033[00m"
158
159 # We make use of the fact that later flags override earlier ones
160 # So start with all ssl providers off until proven otherwise
161 local myconf=()
162 myconf+=( --without-axtls --without-cyassl --without-gnutls --without-nss --without-polarssl --without-ssl )
163 myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
164 if use ssl ; then
165 if use curl_ssl_axtls; then
166 einfo "SSL provided by axtls"
167 einfo "NOTE: axtls is meant for embedded systems and"
168 einfo "may not be the best choice as an ssl provider"
169 myconf+=( --with-axtls )
170 fi
171 if use curl_ssl_cyassl; then
172 einfo "SSL provided by cyassl"
173 einfo "NOTE: cyassl is meant for embedded systems and"
174 einfo "may not be the best choice as an ssl provider"
175 myconf+=( --with-cyassl )
176 fi
177 if use curl_ssl_gnutls; then
178 einfo "SSL provided by gnutls"
179 if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then
180 einfo "gnutls compiled with dev-libs/nettle"
181 myconf+=( --with-gnutls --with-nettle )
182 else
183 einfo "gnutls compiled with dev-libs/libgcrypt"
184 myconf+=( --with-gnutls --without-nettle )
185 fi
186 fi
187 if use curl_ssl_nss; then
188 einfo "SSL provided by nss"
189 myconf+=( --with-nss )
190 fi
191 if use curl_ssl_polarssl; then
192 einfo "SSL provided by polarssl"
193 einfo "NOTE: polarssl is meant for embedded systems and"
194 einfo "may not be the best choice as an ssl provider"
195 myconf+=( --with-polarssl )
196 fi
197 if use curl_ssl_openssl; then
198 einfo "SSL provided by openssl"
199 myconf+=( --with-ssl --without-ca-bundle --with-ca-path="${EPREFIX}"/etc/ssl/certs )
200 fi
201 else
202 einfo "SSL disabled"
203 fi
204 einfo "\033[1;32m**************************************************\033[00m"
205
206 # These configuration options are organized alphabetically
207 # within each category. This should make it easier if we
208 # ever decide to make any of them contingent on USE flags:
209 # 1) protocols first. To see them all do
210 # 'grep SUPPORT_PROTOCOLS configure.ac'
211 # 2) --enable/disable options second.
212 # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
213 # 3) --with/without options third.
214 # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
215 econf \
216 --enable-dict \
217 --enable-file \
218 --enable-ftp \
219 --enable-gopher \
220 --enable-http \
221 --enable-imap \
222 $(use_enable ldap) \
223 $(use_enable ldap ldaps) \
224 --enable-pop3 \
225 --enable-rtsp \
226 $(use_with ssh libssh2) \
227 --enable-smtp \
228 --enable-telnet \
229 --enable-tftp \
230 $(use_enable adns ares) \
231 --enable-cookies \
232 --enable-hidden-symbols \
233 $(use_enable ipv6) \
234 --enable-largefile \
235 --enable-manual \
236 --enable-proxy \
237 --disable-soname-bump \
238 --disable-sspi \
239 $(use_enable static-libs static) \
240 $(use_enable threads threaded-resolver) \
241 --disable-versioned-symbols \
242 --without-darwinssl \
243 $(use_with idn libidn) \
244 $(use_with kerberos gssapi "${EPREFIX}"/usr) \
245 --without-krb4 \
246 $(use_with metalink libmetalink) \
247 --without-nghttp2 \
248 $(use_with rtmp librtmp) \
249 --without-spnego \
250 --without-winidn \
251 --without-winssl \
252 --with-zlib \
253 "${myconf[@]}"
254 }
255
256 src_install() {
257 default
258 find "${ED}" -name '*.la' -delete
259 rm -rf "${ED}"/etc/
260
261 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
262 insinto /usr/share/aclocal
263 doins docs/libcurl/libcurl.m4
264 }