/[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.13 - (hide annotations) (download)
Thu Jan 26 19:20:26 2012 UTC (2 years, 5 months ago) by vapier
Branch: MAIN
Changes since 1.12: +3 -2 lines
Add pkgconfig to DEPEND since we use it for many libraries #393067 by Nikoli.

(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

1 vapier 1.13 # Copyright 1999-2012 Gentoo Foundation
2 scarabeus 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.13 # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.21.4.ebuild,v 1.12 2011/12/01 21:11:06 vapier 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 armin76 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"
18 vapier 1.12 IUSE="ares gnutls idn ipv6 kerberos ldap nss ssh ssl static-libs test threads"
19 scarabeus 1.1
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 vapier 1.12 ssh? ( >=net-libs/libssh2-0.16 )"
30 scarabeus 1.1
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 vapier 1.13 dev-util/pkgconfig
37 scarabeus 1.1 test? (
38     sys-apps/diffutils
39     dev-lang/perl
40     )"
41     # used - but can do without in self test: net-misc/stunnel
42    
43 scarabeus 1.2 # ares must be disabled for threads and both can be disabled
44 scarabeus 1.1 # one can use wether gnutls or nss if ssl is enabled
45 ulm 1.3 REQUIRED_USE="threads? ( !ares )
46 scarabeus 1.1 gnutls? ( ssl )
47     nss? ( ssl )"
48    
49     src_prepare() {
50     epatch "${FILESDIR}"/${PN}-7.20.0-strip-ldflags.patch \
51     "${FILESDIR}"/${PN}-7.19.7-test241.patch \
52     "${FILESDIR}"/${PN}-7.18.2-prefix.patch \
53     "${FILESDIR}"/${PN}-respect-cflags.patch
54    
55     eprefixify curl-config.in
56     eautoreconf
57     }
58    
59     src_configure() {
60     local myconf
61    
62     myconf="$(use_enable ldap)
63     $(use_enable ldap ldaps)
64     $(use_with idn libidn)
65     $(use_with kerberos gssapi "${EPREFIX}"/usr)
66 vapier 1.12 $(use_with ssh libssh2)
67 scarabeus 1.1 $(use_enable static-libs static)
68     $(use_enable ipv6)
69     $(use_enable threads threaded-resolver)
70     $(use_enable ares)
71     --enable-http
72     --enable-ftp
73     --enable-gopher
74     --enable-file
75     --enable-dict
76     --enable-manual
77     --enable-telnet
78     --enable-smtp
79     --enable-pop3
80     --enable-imap
81     --enable-rtsp
82     --enable-nonblocking
83     --enable-largefile
84     --enable-maintainer-mode
85     --disable-sspi
86     --without-krb4
87     --without-librtmp
88     --without-spnego"
89    
90     if use ssl ; then
91     if use gnutls; then
92     myconf+=" --without-ssl --with-gnutls --without-nss"
93     myconf+=" --with-ca-bundle=${EPREFIX}/etc/ssl/certs/ca-certificates.crt"
94     elif use nss; then
95     myconf+=" --without-ssl --without-gnutls --with-nss"
96     myconf+=" --with-ca-bundle=${EPREFIX}/etc/ssl/certs/ca-certificates.crt"
97     else
98     myconf+=" --without-gnutls --without-nss --with-ssl"
99     myconf+=" --without-ca-bundle --with-ca-path=${EPREFIX}/etc/ssl/certs"
100     fi
101     else
102     myconf+=" --without-gnutls --without-nss --without-ssl"
103     fi
104    
105     econf ${myconf}
106     }
107    
108     src_install() {
109     emake DESTDIR="${D}" install
110     find "${ED}" -name '*.la' -exec rm -f {} +
111     rm -rf "${ED}"/etc/
112    
113     # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
114     insinto /usr/share/aclocal
115     doins docs/libcurl/libcurl.m4
116    
117     dodoc CHANGES README
118     dodoc docs/FEATURES docs/INTERNALS
119     dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
120     }

  ViewVC Help
Powered by ViewVC 1.1.20