/[gentoo-x86]/net-misc/curl/curl-7.43.0.ebuild
Gentoo

Contents of /net-misc/curl/curl-7.43.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Thu Jul 23 09:33:50 2015 UTC (4 years, 4 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -2 lines
Stable for sparc, wrt bug #552618

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.43.0.ebuild,v 1.10 2015/07/20 06:50:02 vapier Exp $
4
5 EAPI="5"
6
7 inherit autotools eutils prefix multilib-minimal
8
9 DESCRIPTION="A Client that groks URLs"
10 HOMEPAGE="http://curl.haxx.se/"
11 SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2"
12
13 LICENSE="MIT"
14 SLOT="0"
15 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"
16 IUSE="adns http2 idn ipv6 kerberos ldap metalink rtmp samba ssh ssl static-libs test threads"
17 IUSE+=" curl_ssl_axtls curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl curl_ssl_polarssl curl_ssl_winssl"
18 IUSE+=" elibc_Winnt"
19
20 #lead to lots of false negatives, bug #285669
21 RESTRICT="test"
22
23 RDEPEND="ldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
24 ssl? (
25 curl_ssl_axtls? (
26 >=net-libs/axtls-1.4.9-r1[${MULTILIB_USEDEP}]
27 app-misc/ca-certificates
28 )
29 curl_ssl_gnutls? (
30 || (
31 (
32 >=net-libs/gnutls-3.2.15[static-libs?,${MULTILIB_USEDEP}]
33 >=dev-libs/nettle-2.6[${MULTILIB_USEDEP}]
34 )
35 (
36 =net-libs/gnutls-2.12*[nettle,static-libs?,${MULTILIB_USEDEP}]
37 >=dev-libs/nettle-2.6[${MULTILIB_USEDEP}]
38 )
39 (
40 =net-libs/gnutls-2.12*[-nettle,static-libs?,${MULTILIB_USEDEP}]
41 >=dev-libs/libgcrypt-1.5.3[static-libs?,${MULTILIB_USEDEP}]
42 )
43 )
44 app-misc/ca-certificates
45 )
46 curl_ssl_openssl? (
47 >=dev-libs/openssl-1.0.1h-r2[static-libs?,${MULTILIB_USEDEP}]
48 )
49 curl_ssl_nss? (
50 >=dev-libs/nss-3.15.4[${MULTILIB_USEDEP}]
51 app-misc/ca-certificates
52 )
53 curl_ssl_polarssl? (
54 >=net-libs/polarssl-1.3.4:=[${MULTILIB_USEDEP}]
55 app-misc/ca-certificates
56 )
57 )
58 http2? ( net-libs/nghttp2[${MULTILIB_USEDEP}] )
59 idn? ( >=net-dns/libidn-1.28[static-libs?,${MULTILIB_USEDEP}] )
60 adns? ( >=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}] )
61 kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
62 metalink? ( >=media-libs/libmetalink-0.1.1[${MULTILIB_USEDEP}] )
63 rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
64 ssh? ( >=net-libs/libssh2-1.4.3[static-libs?,${MULTILIB_USEDEP}] )
65 >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
66 abi_x86_32? (
67 !<=app-emulation/emul-linux-x86-baselibs-20140508-r13
68 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
69 )"
70
71 # Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303
72 # rtmp? (
73 # media-video/rtmpdump
74 # curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] )
75 # curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] )
76 # )
77
78 # ssl providers to be added:
79 # fbopenssl $(use_with spnego)
80
81 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
82
83 DEPEND="${RDEPEND}
84 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
85 test? (
86 sys-apps/diffutils
87 dev-lang/perl
88 )"
89
90 # c-ares must be disabled for threads
91 # only one ssl provider can be enabled
92 REQUIRED_USE="
93 curl_ssl_winssl? ( elibc_Winnt )
94 threads? ( !adns )
95 ssl? (
96 ^^ (
97 curl_ssl_axtls
98 curl_ssl_gnutls
99 curl_ssl_openssl
100 curl_ssl_nss
101 curl_ssl_polarssl
102 curl_ssl_winssl
103 )
104 )"
105
106 DOCS=( CHANGES README docs/FEATURES docs/INTERNALS \
107 docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE)
108
109 MULTILIB_WRAPPED_HEADERS=(
110 /usr/include/curl/curlbuild.h
111 )
112
113 MULTILIB_CHOST_TOOLS=(
114 /usr/bin/curl-config
115 )
116
117 src_prepare() {
118 epatch \
119 "${FILESDIR}"/${PN}-7.30.0-prefix.patch \
120 "${FILESDIR}"/${PN}-respect-cflags-3.patch \
121 "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch
122
123 sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
124
125 epatch_user
126 eprefixify curl-config.in
127 eautoreconf
128 }
129
130 multilib_src_configure() {
131 einfo "\033[1;32m**************************************************\033[00m"
132
133 # We make use of the fact that later flags override earlier ones
134 # So start with all ssl providers off until proven otherwise
135 local myconf=()
136 myconf+=( --without-axtls --without-gnutls --without-nss --without-polarssl --without-ssl --without-winssl )
137 myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
138 if use ssl ; then
139 if use curl_ssl_axtls; then
140 einfo "SSL provided by axtls"
141 einfo "NOTE: axtls is meant for embedded systems and"
142 einfo "may not be the best choice as an ssl provider"
143 myconf+=( --with-axtls )
144 fi
145 if use curl_ssl_gnutls; then
146 einfo "SSL provided by gnutls"
147 if has_version ">=net-libs/gnutls-3.2.15[${MULTILIB_USEDEP}]" || has_version "=net-libs/gnutls-2.12*[nettle,${MULTILIB_USEDEP}]"; then
148 einfo "gnutls compiled with dev-libs/nettle"
149 myconf+=( --with-gnutls --with-nettle )
150 else
151 einfo "gnutls compiled with dev-libs/libgcrypt"
152 myconf+=( --with-gnutls --without-nettle )
153 fi
154 fi
155 if use curl_ssl_nss; then
156 einfo "SSL provided by nss"
157 myconf+=( --with-nss )
158 fi
159 if use curl_ssl_polarssl; then
160 einfo "SSL provided by polarssl"
161 einfo "NOTE: polarssl is meant for embedded systems and"
162 einfo "may not be the best choice as an ssl provider"
163 myconf+=( --with-polarssl )
164 fi
165 if use curl_ssl_openssl; then
166 einfo "SSL provided by openssl"
167 myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs )
168 fi
169 if use curl_ssl_winssl; then
170 einfo "SSL provided by Windows"
171 myconf+=( --with-winssl )
172 fi
173 else
174 einfo "SSL disabled"
175 fi
176 einfo "\033[1;32m**************************************************\033[00m"
177
178 # These configuration options are organized alphabetically
179 # within each category. This should make it easier if we
180 # ever decide to make any of them contingent on USE flags:
181 # 1) protocols first. To see them all do
182 # 'grep SUPPORT_PROTOCOLS configure.ac'
183 # 2) --enable/disable options second.
184 # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
185 # 3) --with/without options third.
186 # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
187 ECONF_SOURCE="${S}" \
188 econf \
189 --enable-dict \
190 --enable-file \
191 --enable-ftp \
192 --enable-gopher \
193 --enable-http \
194 --enable-imap \
195 $(use_enable ldap) \
196 $(use_enable ldap ldaps) \
197 --enable-pop3 \
198 --enable-rtsp \
199 $(use_enable samba smb) \
200 $(use_with ssh libssh2) \
201 --enable-smtp \
202 --enable-telnet \
203 --enable-tftp \
204 $(use_enable adns ares) \
205 --enable-cookies \
206 --enable-hidden-symbols \
207 $(use_enable ipv6) \
208 --enable-largefile \
209 --enable-manual \
210 --enable-proxy \
211 --disable-soname-bump \
212 --disable-sspi \
213 $(use_enable static-libs static) \
214 $(use_enable threads threaded-resolver) \
215 --disable-versioned-symbols \
216 --without-cyassl \
217 --without-darwinssl \
218 $(use_with idn libidn) \
219 $(use_with kerberos gssapi "${EPREFIX}"/usr) \
220 --without-krb4 \
221 $(use_with metalink libmetalink) \
222 $(use_with http2 nghttp2) \
223 $(use_with rtmp librtmp) \
224 --without-spnego \
225 --without-winidn \
226 --with-zlib \
227 "${myconf[@]}"
228
229 if ! multilib_is_native_abi; then
230 # avoid building the client
231 sed -i -e '/SUBDIRS/s:src::' Makefile || die
232 fi
233 }
234
235 multilib_src_install_all() {
236 einstalldocs
237 prune_libtool_files --all
238
239 rm -rf "${ED}"/etc/
240
241 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
242 insinto /usr/share/aclocal
243 doins docs/libcurl/libcurl.m4
244 }

  ViewVC Help
Powered by ViewVC 1.1.20