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

Contents of /net-misc/curl/curl-7.28.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Nov 11 00:27:44 2012 UTC (21 months, 1 week ago) by blueness
Branch: MAIN
Changes since 1.1: +1 -2 lines
Remove DEPEND on sys-apps/ed, bug #442596

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

1 # Copyright 1999-2012 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.28.0-r1.ebuild,v 1.1 2012/10/18 18:16:20 blueness Exp $
4
5 EAPI="4"
6
7 inherit autotools eutils prefix
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 ~hppa ~ia64 ~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 ~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 +nonblocking rtmp ssh ssl static-libs test threads"
17 IUSE="${IUSE} curl_ssl_axtls curl_ssl_cyassl curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl curl_ssl_polarssl"
18
19 #lead to lots of false negatives, bug #285669
20 RESTRICT="test"
21
22 RDEPEND="ldap? ( net-nds/openldap )
23 ssl? (
24 curl_ssl_axtls? ( net-libs/axtls app-misc/ca-certificates )
25 curl_ssl_cyassl? ( net-libs/cyassl app-misc/ca-certificates )
26 curl_ssl_gnutls? (
27 || (
28 ( >=net-libs/gnutls-3[static-libs?] dev-libs/nettle )
29 ( =net-libs/gnutls-2.12*[nettle,static-libs?] dev-libs/nettle )
30 ( =net-libs/gnutls-2.12*[-nettle,static-libs?] dev-libs/libgcrypt[static-libs?] )
31 )
32 app-misc/ca-certificates
33 )
34 curl_ssl_openssl? ( dev-libs/openssl[static-libs?] )
35 curl_ssl_nss? ( dev-libs/nss app-misc/ca-certificates )
36 curl_ssl_polarssl? ( net-libs/polarssl app-misc/ca-certificates )
37 )
38 idn? ( net-dns/libidn[static-libs?] )
39 adns? ( net-dns/c-ares )
40 kerberos? ( virtual/krb5 )
41 metalink? ( >=media-libs/libmetalink-0.1.0 )
42 rtmp? ( media-video/rtmpdump )
43 ssh? ( net-libs/libssh2[static-libs?] )
44 sys-libs/zlib"
45
46 # Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303
47 # rtmp? (
48 # media-video/rtmpdump
49 # curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] )
50 # curl_ssl_polarssl? ( media-video/rtmpdump[polarssl] )
51 # curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,-polarssl,ssl] )
52 # )
53
54 # ssl providers to be added:
55 # fbopenssl $(use_with spnego)
56
57 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
58
59 DEPEND="${RDEPEND}
60 virtual/pkgconfig
61 test? (
62 sys-apps/diffutils
63 dev-lang/perl
64 )"
65
66 # c-ares must be disabled for threads
67 # metalink cannot use nss for its backend #433822
68 # only one ssl provider can be enabled
69 REQUIRED_USE="
70 threads? ( !adns )
71 metalink? ( !curl_ssl_nss )
72 ssl? (
73 ^^ (
74 curl_ssl_axtls
75 curl_ssl_cyassl
76 curl_ssl_gnutls
77 curl_ssl_openssl
78 curl_ssl_nss
79 curl_ssl_polarssl
80 )
81 )"
82
83 DOCS=( CHANGES README docs/FEATURES docs/INTERNALS \
84 docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE)
85
86 src_prepare() {
87 epatch \
88 "${FILESDIR}"/${PN}-7.28.0-prefix.patch \
89 "${FILESDIR}"/${PN}-respect-cflags-3.patch \
90 "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch \
91 "${FILESDIR}"/${P}-fix-http-auth.patch
92 sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
93
94 eprefixify curl-config.in
95 eautoreconf
96 }
97
98 src_configure() {
99 einfo "\033[1;32m**************************************************\033[00m"
100
101 # We make use of the fact that later flags override earlier ones
102 # So start with all ssl providers off until proven otherwise
103 local myconf=()
104 myconf+=( --without-axtls --without-cyassl --without-gnutls --without-nss --without-polarssl --without-ssl )
105 myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
106 if use ssl ; then
107 if use curl_ssl_axtls; then
108 einfo "SSL provided by axtls"
109 einfo "NOTE: axtls is meant for embedded systems and"
110 einfo "may not be the best choice as an ssl provider"
111 myconf+=( --with-axtls )
112 fi
113 if use curl_ssl_cyassl; then
114 einfo "SSL provided by cyassl"
115 einfo "NOTE: cyassl is meant for embedded systems and"
116 einfo "may not be the best choice as an ssl provider"
117 myconf+=( --with-cyassl )
118 fi
119 if use curl_ssl_gnutls; then
120 einfo "SSL provided by gnutls"
121 if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then
122 einfo "gnutls compiled with dev-libs/nettle"
123 myconf+=( --with-gnutls --with-nettle )
124 else
125 einfo "gnutls compiled with dev-libs/libgcrypt"
126 myconf+=( --with-gnutls --without-nettle )
127 fi
128 fi
129 if use curl_ssl_nss; then
130 einfo "SSL provided by nss"
131 myconf+=( --with-nss )
132 fi
133 if use curl_ssl_polarssl; then
134 einfo "SSL provided by polarssl"
135 einfo "NOTE: polarssl is meant for embedded systems and"
136 einfo "may not be the best choice as an ssl provider"
137 myconf+=( --with-polarssl )
138 fi
139 if use curl_ssl_openssl; then
140 einfo "SSL provided by openssl"
141 myconf+=( --with-ssl --without-ca-bundle --with-ca-path="${EPREFIX}"/etc/ssl/certs )
142 fi
143 else
144 einfo "SSL disabled"
145 fi
146 einfo "\033[1;32m**************************************************\033[00m"
147
148 # These configuration options are organized alphabetically
149 # within each category. This should make it easier if we
150 # ever decide to make any of them contingent on USE flags:
151 # 1) protocols first. To see them all do
152 # 'grep SUPPORT_PROTOCOLS configure.ac'
153 # 2) --enable/disable options second.
154 # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
155 # 3) --with/without options third.
156 # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
157 econf \
158 --enable-dict \
159 --enable-file \
160 --enable-ftp \
161 --enable-gopher \
162 --enable-http \
163 --enable-imap \
164 $(use_enable ldap) \
165 $(use_enable ldap ldaps) \
166 --enable-pop3 \
167 --enable-rtsp \
168 $(use_with ssh libssh2) \
169 --enable-smtp \
170 --enable-telnet \
171 --enable-tftp \
172 $(use_enable adns ares) \
173 --enable-cookies \
174 --enable-hidden-symbols \
175 $(use_enable ipv6) \
176 --enable-largefile \
177 --enable-manual \
178 $(use_enable nonblocking) \
179 --enable-proxy \
180 --disable-soname-bump \
181 --disable-sspi \
182 $(use_enable static-libs static) \
183 $(use_enable threads threaded-resolver) \
184 --disable-versioned-symbols \
185 --without-darwinssl \
186 $(use_with idn libidn) \
187 $(use_with kerberos gssapi "${EPREFIX}"/usr) \
188 --without-krb4 \
189 $(use_with metalink libmetalink) \
190 $(use_with rtmp librtmp) \
191 --without-spnego \
192 --without-winidn \
193 --without-winssl \
194 --with-zlib \
195 "${myconf[@]}"
196 }
197
198 src_install() {
199 default
200 find "${ED}" -name '*.la' -delete
201 rm -rf "${ED}"/etc/
202
203 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
204 insinto /usr/share/aclocal
205 doins docs/libcurl/libcurl.m4
206 }

  ViewVC Help
Powered by ViewVC 1.1.20