summaryrefslogtreecommitdiff
blob: 0de15856153b93e1f16cf22ac68aa46169ee5154 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/neon/neon-0.25.3.ebuild,v 1.5 2006/07/12 17:34:13 wolf31o2 Exp $

DESCRIPTION="HTTP and WebDAV client library"
HOMEPAGE="http://www.webdav.org/neon/"
SRC_URI="http://www.webdav.org/neon/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh sparc x86"
IUSE="ssl zlib expat"
# socks5

DEPEND="expat? ( dev-libs/expat )
	!expat? ( dev-libs/libxml2 )
	ssl? ( >=dev-libs/openssl-0.9.6f )
	zlib? ( sys-libs/zlib )"

# gnutls not supported yet
#	gnutls? ( net-libs/gnutls )
#	!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6f ) )

src_unpack() {
	unpack ${A}
	if use userland_Darwin ; then
		sed -i -e "s:GXX:GCC:g" ${S}/configure || die "sed failed"
	fi
}

src_compile() {
	local myc=""
	use expat && myc="${myc} --with-expat" || myc="${myc} --with-xml2"

#	if use gnutls
#	then
#		myc="${myc} --with-ssl=gnutls"		
#	else
#		myc="${myc} $(use_with ssl ssl openssl)"
#	fi

#	Socks5 not quite there yet
#		$(use_enable socks5 socks) \

	econf \
		--enable-shared \
		--without-gssapi \
		$(use_with zlib) \
		$(use_with ssl) \
		${myc} \
		|| die "econf failed"
	emake || die 'make failed'
}

src_install() {
	make DESTDIR=${D} install || die 'install failed'
	dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO doc/*
}