# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/xmlrpc-c-1.03.14.ebuild,v 1.1 2006/06/24 09:14:51 hollow Exp $ inherit eutils DESCRIPTION="A lightweigt RPC library based on XML and HTTP" SRC_URI="mirror://sourceforge/xmlrpc-c/${P}.tgz" HOMEPAGE="http://xmlrpc-c.sourceforge.net/" KEYWORDS="~alpha ~amd64 ~ppc ~x86" IUSE="curl libwww" LICENSE="GPL-2" SLOT="0" DEPEND="virtual/libc dev-libs/libxml2 libwww? ( net-libs/libwww ) curl? ( net-misc/curl )" pkg_setup() { # paralell make doesn't work MAKEOPTS="-j1" if ! use curl && ! use libwww; then ewarn "Neither CURL nor libwww support was selected" ewarn "No client library will be be built" fi } src_compile() { econf --disable-wininet-client \ $(use_enable curl curl-client) \ $(use_enable libwww libwww-client) || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die }