/[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.2 - (show annotations) (download)
Thu Apr 26 15:20:52 2012 UTC (2 years, 2 months ago) by aballier
Branch: MAIN
Changes since 1.1: +2 -2 lines
keyword ~amd64-fbsd

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

  ViewVC Help
Powered by ViewVC 1.1.20