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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue May 1 13:43:16 2012 UTC (2 years, 4 months ago) by blueness
Branch: MAIN
Changes since 1.2: +7 -5 lines
Update dependencies for >=net-libs/gnutls-3, bug #412427

(Portage version: 2.1.10.49/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20