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

Contents of /net-misc/curl/curl-7.27.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Nov 11 00:27:44 2012 UTC (2 years, 1 month ago) by blueness
Branch: MAIN
Changes since 1.2: +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.27.0-r3.ebuild,v 1.2 2012/10/18 17:20:39 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 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.27.0-curl-config.patch \
89 "${FILESDIR}"/${PN}-7.27.0-prefix.patch \
90 "${FILESDIR}"/${PN}-respect-cflags-3.patch \
91 "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch \
92 "${FILESDIR}"/${PN}-7.27.0-fix-nettle-include.patch \
93 "${FILESDIR}"/${PN}-7.27.0-fix-metalink-gnutls.patch
94 sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
95
96 eprefixify curl-config.in
97 eautoreconf
98 }
99
100 src_configure() {
101 einfo "\033[1;32m**************************************************\033[00m"
102
103 # We make use of the fact that later flags override earlier ones
104 # So start with all ssl providers off until proven otherwise
105 local myconf=()
106 myconf+=( --without-axtls --without-cyassl --without-gnutls --without-nss --without-polarssl --without-ssl )
107 myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
108 if use ssl ; then
109 if use curl_ssl_axtls; then
110 einfo "SSL provided by axtls"
111 einfo "NOTE: axtls is meant for embedded systems and"
112 einfo "may not be the best choice as an ssl provider"
113 myconf+=( --with-axtls )
114 fi
115 if use curl_ssl_cyassl; then
116 einfo "SSL provided by cyassl"
117 einfo "NOTE: cyassl is meant for embedded systems and"
118 einfo "may not be the best choice as an ssl provider"
119 myconf+=( --with-cyassl )
120 fi
121 if use curl_ssl_gnutls; then
122 einfo "SSL provided by gnutls"
123 if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then
124 einfo "gnutls compiled with dev-libs/nettle"
125 myconf+=( --with-gnutls --with-nettle )
126 else
127 einfo "gnutls compiled with dev-libs/libgcrypt"
128 myconf+=( --with-gnutls --without-nettle )
129 fi
130 fi
131 if use curl_ssl_nss; then
132 einfo "SSL provided by nss"
133 myconf+=( --with-nss )
134 fi
135 if use curl_ssl_polarssl; then
136 einfo "SSL provided by polarssl"
137 einfo "NOTE: polarssl is meant for embedded systems and"
138 einfo "may not be the best choice as an ssl provider"
139 myconf+=( --with-polarssl )
140 fi
141 if use curl_ssl_openssl; then
142 einfo "SSL provided by openssl"
143 myconf+=( --with-ssl --without-ca-bundle --with-ca-path="${EPREFIX}"/etc/ssl/certs )
144 fi
145 else
146 einfo "SSL disabled"
147 fi
148 einfo "\033[1;32m**************************************************\033[00m"
149
150 # These configuration options are organized alphabetically
151 # within each category. This should make it easier if we
152 # ever decide to make any of them contingent on USE flags:
153 # 1) protocols first. To see them all do
154 # 'grep SUPPORT_PROTOCOLS configure.ac'
155 # 2) --enable/disable options second.
156 # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
157 # 3) --with/without options third.
158 # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
159 econf \
160 --enable-dict \
161 --enable-file \
162 --enable-ftp \
163 --enable-gopher \
164 --enable-http \
165 --enable-imap \
166 $(use_enable ldap) \
167 $(use_enable ldap ldaps) \
168 --enable-pop3 \
169 --enable-rtsp \
170 $(use_with ssh libssh2) \
171 --enable-smtp \
172 --enable-telnet \
173 --enable-tftp \
174 $(use_enable adns ares) \
175 --enable-cookies \
176 --enable-hidden-symbols \
177 $(use_enable ipv6) \
178 --enable-largefile \
179 --enable-manual \
180 --enable-nonblocking \
181 --enable-proxy \
182 --disable-soname-bump \
183 --disable-sspi \
184 $(use_enable static-libs static) \
185 $(use_enable threads threaded-resolver) \
186 --disable-versioned-symbols \
187 --without-darwinssl \
188 $(use_with idn libidn) \
189 $(use_with kerberos gssapi "${EPREFIX}"/usr) \
190 --without-krb4 \
191 $(use_with metalink libmetalink) \
192 $(use_with rtmp librtmp) \
193 --without-spnego \
194 --without-winidn \
195 --without-winssl \
196 --with-zlib \
197 "${myconf[@]}"
198 }
199
200 src_install() {
201 default
202 find "${ED}" -name '*.la' -delete
203 rm -rf "${ED}"/etc/
204
205 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
206 insinto /usr/share/aclocal
207 doins docs/libcurl/libcurl.m4
208 }

  ViewVC Help
Powered by ViewVC 1.1.20