/[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.1 - (show annotations) (download)
Sat May 26 13:42:11 2012 UTC (2 years, 1 month ago) by blueness
Branch: MAIN
Version bump, restrict tests, bug #285669

(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.5 2012/05/26 06:11:41 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="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 #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_gnutls? (
26 || (
27 ( >=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 )
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 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 virtual/pkgconfig
53 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_cyassl
66 curl_ssl_gnutls
67 curl_ssl_openssl
68 curl_ssl_nss
69 curl_ssl_polarssl
70 )
71 )"
72
73 DOCS=( CHANGES README docs/FEATURES docs/INTERNALS \
74 docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE)
75
76 src_prepare() {
77 epatch \
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 einfo "SSL provided by axtls"
98 einfo "NOTE: axtls is meant for embedded systems and"
99 einfo "may not be the best choice as an ssl provider"
100 myconf+=( --with-axtls )
101 fi
102 if use curl_ssl_cyassl; then
103 einfo "SSL provided by cyassl"
104 einfo "NOTE: cyassl is meant for embedded systems and"
105 einfo "may not be the best choice as an ssl provider"
106 myconf+=( --with-cyassl )
107 fi
108 if use curl_ssl_gnutls; then
109 einfo "SSL provided by gnutls"
110 if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then
111 einfo "gnutls compiled with dev-libs/nettle"
112 myconf+=( --with-gnutls --with-nettle )
113 else
114 einfo "gnutls compiled with dev-libs/libgcrypt"
115 myconf+=( --with-gnutls --without-nettle )
116 fi
117 fi
118 if use curl_ssl_nss; then
119 einfo "SSL provided by nss"
120 myconf+=( --with-nss )
121 fi
122 if use curl_ssl_polarssl; then
123 einfo "SSL provided by polarssl"
124 einfo "NOTE: polarssl is meant for embedded systems and"
125 einfo "may not be the best choice as an ssl provider"
126 myconf+=( --with-polarssl )
127 fi
128 if use curl_ssl_openssl; then
129 einfo "SSL provided by openssl"
130 myconf+=( --with-ssl --without-ca-bundle --with-ca-path="${EPREFIX}"/etc/ssl/certs )
131 fi
132 else
133 einfo "SSL disabled"
134 fi
135 einfo "\033[1;32m**************************************************\033[00m"
136
137 # These configuration options are organized alphabetically
138 # within each category. This should make it easier if we
139 # ever decide to make any of them contingent on USE flags:
140 # 1) protocols first. To see them all do
141 # 'grep SUPPORT_PROTOCOLS configure.ac'
142 # 2) --enable/disable options second.
143 # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
144 # 3) --with/without options third.
145 # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
146 econf \
147 --enable-dict \
148 --enable-file \
149 --enable-ftp \
150 --enable-gopher \
151 --enable-http \
152 --enable-imap \
153 $(use_enable ldap) \
154 $(use_enable ldap ldaps) \
155 --enable-pop3 \
156 --without-librtmp \
157 --enable-rtsp \
158 $(use_with ssh libssh2) \
159 --enable-smtp \
160 --enable-telnet \
161 --enable-tftp \
162 $(use_enable ares) \
163 --enable-cookies \
164 --enable-hidden-symbols \
165 $(use_enable ipv6) \
166 --enable-largefile \
167 --enable-manual \
168 --enable-nonblocking \
169 --enable-proxy \
170 --disable-soname-bump \
171 --disable-sspi \
172 $(use_enable static-libs static) \
173 $(use_enable threads threaded-resolver) \
174 --disable-versioned-symbols \
175 $(use_with idn libidn) \
176 $(use_with kerberos gssapi "${EPREFIX}"/usr) \
177 --without-krb4 \
178 --without-spnego \
179 --with-zlib \
180 "${myconf[@]}"
181 }
182
183 src_install() {
184 default
185 find "${ED}" -name '*.la' -delete
186 rm -rf "${ED}"/etc/
187
188 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
189 insinto /usr/share/aclocal
190 doins docs/libcurl/libcurl.m4
191 }

  ViewVC Help
Powered by ViewVC 1.1.20