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

Contents of /net-misc/curl/curl-7.15.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Aug 26 01:13:21 2007 UTC (12 years, 3 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
purge vulnerable versions (sec bug #184934)
(Portage version: 2.1.2.12)

1 # Copyright 1999-2007 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.15.1-r1.ebuild,v 1.11 2007/04/14 00:35:26 dragonheart Exp $
4
5 # NOTE: If you bump this ebuild, make sure you bump dev-python/pycurl!
6
7 inherit eutils
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 X11"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
16 IUSE="ssl ipv6 ldap ares gnutls idn kerberos test"
17
18 RDEPEND="gnutls? ( net-libs/gnutls )
19 ssl? ( !gnutls? ( dev-libs/openssl ) )
20 ldap? ( net-nds/openldap )
21 idn? ( net-dns/libidn )
22 ares? ( net-dns/c-ares )
23 kerberos? ( virtual/krb5 )"
24
25 DEPEND="${RDEPEND}
26 test? (
27 sys-apps/diffutils
28 dev-lang/perl
29 )"
30 # used - but can do without in self test: net-misc/stunnel
31
32 src_unpack() {
33 unpack ${A}
34 cd "${S}"
35 epatch ${FILESDIR}/curl-7.15-libtftp.patch
36 epatch ${FILESDIR}/curl-7.15.1-test46.patch
37 epatch ${FILESDIR}/curl-7.15.1-test62.patch
38 }
39
40 src_compile() {
41 local myconf
42 myconf="$(use_enable ldap)
43 $(use_with idn libidn)
44 $(use_enable kerberos gssapi)
45 $(use_enable ipv6)
46 --enable-http
47 --enable-ftp
48 --enable-gopher
49 --enable-file
50 --enable-dict
51 --enable-manual
52 --enable-telnet
53 --enable-nonblocking
54 --enable-largefile"
55
56 if use ipv6 && use ares; then
57 ewarn "c-ares support disabled because it is incompatible with ipv6."
58 myconf="${myconf} --disable-ares"
59 else
60 myconf="${myconf} $(use_enable ares)"
61 fi
62
63 if use gnutls; then
64 myconf="${myconf} --without-ssl --with-gnutls=/usr"
65 elif use ssl; then
66 myconf="${myconf} --without-gnutls --with-ssl=/usr"
67 else
68 myconf="${myconf} --without-gnutls --without-ssl"
69 fi
70
71 if use kerberos; then
72 myconf="${myconf} --with-gssapi=/usr"
73 fi
74
75 econf ${myconf} || die 'configure failed'
76 emake || die "install failed for current version"
77 }
78
79 src_install() {
80 make DESTDIR="${D}" install || die "installed failed for current version"
81
82 insinto /usr/share/aclocal
83 doins docs/libcurl/libcurl.m4
84
85 #insinto /usr/lib/pkgconfig
86 #doins libcurl.pc
87
88 dodoc CHANGES README
89 dodoc docs/FEATURES docs/INTERNALS
90 dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
91 }

  ViewVC Help
Powered by ViewVC 1.1.20