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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Jul 29 14:46:03 2012 UTC (20 months, 2 weeks ago) by blueness
Branch: MAIN
Version bump, add metalink and rtmp support, bugs #423303, #428446

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 blueness 1.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.26.0.ebuild,v 1.5 2012/07/24 14:16:29 jer 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="~amd64 ~arm ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~ppc-aix ~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 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     ares? ( net-dns/c-ares )
40     kerberos? ( virtual/krb5 )
41     metalink? ( media-libs/libmetalink )
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     sys-apps/ed
61     virtual/pkgconfig
62     test? (
63     sys-apps/diffutils
64     dev-lang/perl
65     )"
66    
67     # ares must be disabled for threads
68     # only one ssl provider can be enabled
69     REQUIRED_USE="
70     threads? ( !ares )
71     ssl? (
72     ^^ (
73     curl_ssl_axtls
74     curl_ssl_cyassl
75     curl_ssl_gnutls
76     curl_ssl_openssl
77     curl_ssl_nss
78     curl_ssl_polarssl
79     )
80     )"
81    
82     DOCS=( CHANGES README docs/FEATURES docs/INTERNALS \
83     docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE)
84    
85     src_prepare() {
86     epatch \
87     "${FILESDIR}"/${PN}-7.27.0-prefix.patch \
88     "${FILESDIR}"/${PN}-respect-cflags-3.patch \
89     "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch
90     sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
91    
92     eprefixify curl-config.in
93     eautoreconf
94     }
95    
96     src_configure() {
97     einfo "\033[1;32m**************************************************\033[00m"
98    
99     # We make use of the fact that later flags override earlier ones
100     # So start with all ssl providers off until proven otherwise
101     local myconf=()
102     myconf+=( --without-axtls --without-cyassl --without-gnutls --without-nss --without-polarssl --without-ssl )
103     myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
104     if use ssl ; then
105     if use curl_ssl_axtls; then
106     einfo "SSL provided by axtls"
107     einfo "NOTE: axtls is meant for embedded systems and"
108     einfo "may not be the best choice as an ssl provider"
109     myconf+=( --with-axtls )
110     fi
111     if use curl_ssl_cyassl; then
112     einfo "SSL provided by cyassl"
113     einfo "NOTE: cyassl is meant for embedded systems and"
114     einfo "may not be the best choice as an ssl provider"
115     myconf+=( --with-cyassl )
116     fi
117     if use curl_ssl_gnutls; then
118     einfo "SSL provided by gnutls"
119     if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then
120     einfo "gnutls compiled with dev-libs/nettle"
121     myconf+=( --with-gnutls --with-nettle )
122     else
123     einfo "gnutls compiled with dev-libs/libgcrypt"
124     myconf+=( --with-gnutls --without-nettle )
125     fi
126     fi
127     if use curl_ssl_nss; then
128     einfo "SSL provided by nss"
129     myconf+=( --with-nss )
130     fi
131     if use curl_ssl_polarssl; then
132     einfo "SSL provided by polarssl"
133     einfo "NOTE: polarssl is meant for embedded systems and"
134     einfo "may not be the best choice as an ssl provider"
135     myconf+=( --with-polarssl )
136     fi
137     if use curl_ssl_openssl; then
138     einfo "SSL provided by openssl"
139     myconf+=( --with-ssl --without-ca-bundle --with-ca-path="${EPREFIX}"/etc/ssl/certs )
140     fi
141     else
142     einfo "SSL disabled"
143     fi
144     einfo "\033[1;32m**************************************************\033[00m"
145    
146     # These configuration options are organized alphabetically
147     # within each category. This should make it easier if we
148     # ever decide to make any of them contingent on USE flags:
149     # 1) protocols first. To see them all do
150     # 'grep SUPPORT_PROTOCOLS configure.ac'
151     # 2) --enable/disable options second.
152     # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
153     # 3) --with/without options third.
154     # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
155     econf \
156     --enable-dict \
157     --enable-file \
158     --enable-ftp \
159     --enable-gopher \
160     --enable-http \
161     --enable-imap \
162     $(use_enable ldap) \
163     $(use_enable ldap ldaps) \
164     --enable-pop3 \
165     --enable-rtsp \
166     $(use_with ssh libssh2) \
167     --enable-smtp \
168     --enable-telnet \
169     --enable-tftp \
170     $(use_enable ares) \
171     --enable-cookies \
172     --enable-hidden-symbols \
173     $(use_enable ipv6) \
174     --enable-largefile \
175     --enable-manual \
176     --enable-nonblocking \
177     --enable-proxy \
178     --disable-soname-bump \
179     --disable-sspi \
180     $(use_enable static-libs static) \
181     $(use_enable threads threaded-resolver) \
182     --disable-versioned-symbols \
183     --without-darwinssl \
184     $(use_with idn libidn) \
185     $(use_with kerberos gssapi "${EPREFIX}"/usr) \
186     --without-krb4 \
187     $(use_with metalink libmetalink) \
188     $(use_with rtmp librtmp) \
189     --without-spnego \
190     --without-winidn \
191     --without-winssl \
192     --with-zlib \
193     "${myconf[@]}"
194     }
195    
196     src_install() {
197     default
198     find "${ED}" -name '*.la' -delete
199     rm -rf "${ED}"/etc/
200    
201     # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
202     insinto /usr/share/aclocal
203     doins docs/libcurl/libcurl.m4
204     }

  ViewVC Help
Powered by ViewVC 1.1.20