summaryrefslogtreecommitdiff
blob: 271d3a0cf6e0776227e5482a1dabc1fa2d8ca9d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.10.8-r1.ebuild,v 1.2 2004/04/27 21:26:36 agriffis Exp $

inherit eutils

DESCRIPTION="A Client that groks URLs"
SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2"
HOMEPAGE="http://curl.haxx.se/"

SLOT="0"
LICENSE="MIT X11"
KEYWORDS="x86 ~ppc sparc alpha hppa ~amd64 ia64 ~mips"
IUSE="ssl ipv6 ldap"

DEPEND="ssl? ( >=dev-libs/openssl-0.9.6a )
	ldap? ( net-nds/openldap )"

src_unpack() {
	unpack ${A}
	cd ${S}/lib
	epatch ${FILESDIR}/${P}-transfer-segv.patch
}

src_compile() {
	local myconf="--with-gnu-ld	--enable-http
		--enable-ftp --enable-gopher
		--enable-file --enable-dict
		--enable-telnet --enable-nonblocking"

	econf ${myconf} \
		`use_enable ipv6` \
		`use_enable ldap` \
		`use_with ssl` || die

	emake || die
}

src_install() {
	make install DESTDIR=${D} || die
	dodoc LEGAL CHANGES README
	dodoc docs/FEATURES docs/INSTALL docs/INTERNALS docs/LIBCURL
	dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
}