summaryrefslogtreecommitdiff
blob: 399467fc2ae2ce2241ec1f5b56c3e05f7b35d350 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libwww/libwww-5.4.0-r1.ebuild,v 1.4 2002/12/09 04:33:13 manson Exp $

IUSE="ssl mysql"

inherit libtool

MY_P=w3c-${P}
S=${WORKDIR}/${MY_P}
DESCRIPTION="A general-purpose client side WEB API"
SRC_URI="http://www.w3.org/Library/Distribution/${MY_P}.tgz"
HOMEPAGE="http://www.w3.org/Library/"

SLOT="0"
LICENSE="W3C"
KEYWORDS="x86 ppc sparc "


DEPEND="sys-devel/perl
	>=sys-libs/zlib-1.1.4
	mysql? ( >=dev-db/mysql-3.23.26 )
	ssl? ( >=dev-libs/openssl-0.9.6 )"

src_compile() {

	local myconf

	use mysql \
		&& myconf="--with-mysql" \
		|| myconf="--without-mysql"
	
	use ssl \
		&& myconf="${myconf} --with-ssl" \
		|| myconf="${myconf} --without-ssl"

	elibtoolize

	./configure \
		--prefix=/usr \
		--with-zlib \
		--with-md5 \
		--with-expat \
		${myconf} || die

	emake || die

}

src_install () {

	make prefix=${D}/usr install || die
	dodoc COPYRIGH ChangeLog 
	dohtml -r .

}