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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (hide annotations) (download)
Tue Oct 29 17:55:11 2013 UTC (13 months, 3 weeks ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Cleanup for security bug #474354

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

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

  ViewVC Help
Powered by ViewVC 1.1.20