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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Wed Jun 1 12:10:22 2011 UTC (3 years, 3 months ago) by klausman
Branch: MAIN
Changes since 1.8: +2 -2 lines
Stable on alpha, bug #355595

(Portage version: 2.1.9.50/cvs/Linux x86_64)

1 scarabeus 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 klausman 1.9 # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.21.4.ebuild,v 1.8 2011/05/29 22:10:40 hwoarang Exp $
4 scarabeus 1.1
5     # NOTE: If you bump this ebuild, make sure you bump dev-python/pycurl!
6    
7     EAPI=4
8    
9     inherit autotools multilib eutils libtool prefix
10    
11     DESCRIPTION="A Client that groks URLs"
12     HOMEPAGE="http://curl.haxx.se/"
13     SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2"
14    
15     LICENSE="MIT"
16     SLOT="0"
17 klausman 1.9 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"
18 scarabeus 1.1 IUSE="ares gnutls idn ipv6 kerberos ldap libssh2 nss ssl static-libs test threads"
19    
20     RDEPEND="ldap? ( net-nds/openldap )
21     ssl? (
22     gnutls? ( net-libs/gnutls dev-libs/libgcrypt app-misc/ca-certificates )
23     nss? ( !gnutls? ( dev-libs/nss app-misc/ca-certificates ) )
24     !gnutls? ( !nss? ( dev-libs/openssl ) )
25     )
26     idn? ( net-dns/libidn )
27     ares? ( >=net-dns/c-ares-1.4.0 )
28     kerberos? ( virtual/krb5 )
29     libssh2? ( >=net-libs/libssh2-0.16 )"
30    
31     # rtmpdump ( media-video/rtmpdump ) / --with-librtmp
32     # fbopenssl (not in gentoo) --with-spnego
33     # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
34    
35     DEPEND="${RDEPEND}
36     test? (
37     sys-apps/diffutils
38     dev-lang/perl
39     )"
40     # used - but can do without in self test: net-misc/stunnel
41    
42 scarabeus 1.2 # ares must be disabled for threads and both can be disabled
43 scarabeus 1.1 # one can use wether gnutls or nss if ssl is enabled
44 ulm 1.3 REQUIRED_USE="threads? ( !ares )
45 scarabeus 1.1 gnutls? ( ssl )
46     nss? ( ssl )"
47    
48     src_prepare() {
49     epatch "${FILESDIR}"/${PN}-7.20.0-strip-ldflags.patch \
50     "${FILESDIR}"/${PN}-7.19.7-test241.patch \
51     "${FILESDIR}"/${PN}-7.18.2-prefix.patch \
52     "${FILESDIR}"/${PN}-respect-cflags.patch
53    
54     eprefixify curl-config.in
55     eautoreconf
56     }
57    
58     src_configure() {
59     local myconf
60    
61     myconf="$(use_enable ldap)
62     $(use_enable ldap ldaps)
63     $(use_with idn libidn)
64     $(use_with kerberos gssapi "${EPREFIX}"/usr)
65     $(use_with libssh2)
66     $(use_enable static-libs static)
67     $(use_enable ipv6)
68     $(use_enable threads threaded-resolver)
69     $(use_enable ares)
70     --enable-http
71     --enable-ftp
72     --enable-gopher
73     --enable-file
74     --enable-dict
75     --enable-manual
76     --enable-telnet
77     --enable-smtp
78     --enable-pop3
79     --enable-imap
80     --enable-rtsp
81     --enable-nonblocking
82     --enable-largefile
83     --enable-maintainer-mode
84     --disable-sspi
85     --without-krb4
86     --without-librtmp
87     --without-spnego"
88    
89     if use ssl ; then
90     if use gnutls; then
91     myconf+=" --without-ssl --with-gnutls --without-nss"
92     myconf+=" --with-ca-bundle=${EPREFIX}/etc/ssl/certs/ca-certificates.crt"
93     elif use nss; then
94     myconf+=" --without-ssl --without-gnutls --with-nss"
95     myconf+=" --with-ca-bundle=${EPREFIX}/etc/ssl/certs/ca-certificates.crt"
96     else
97     myconf+=" --without-gnutls --without-nss --with-ssl"
98     myconf+=" --without-ca-bundle --with-ca-path=${EPREFIX}/etc/ssl/certs"
99     fi
100     else
101     myconf+=" --without-gnutls --without-nss --without-ssl"
102     fi
103    
104     econf ${myconf}
105     }
106    
107     src_install() {
108     emake DESTDIR="${D}" install
109     find "${ED}" -name '*.la' -exec rm -f {} +
110     rm -rf "${ED}"/etc/
111    
112     # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
113     insinto /usr/share/aclocal
114     doins docs/libcurl/libcurl.m4
115    
116     dodoc CHANGES README
117     dodoc docs/FEATURES docs/INTERNALS
118     dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
119     }

  ViewVC Help
Powered by ViewVC 1.1.20