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

  ViewVC Help
Powered by ViewVC 1.1.20