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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed May 20 20:54:21 2015 UTC (4 years, 6 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
sparc stable wrt bug #548130

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

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

  ViewVC Help
Powered by ViewVC 1.1.20