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