# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup/libsoup-1.99.26.ebuild,v 1.9 2004/02/22 23:06:23 agriffis Exp $ inherit gnome.org libtool DESCRIPTION="Soup is a SOAP implementation" HOMEPAGE="http://www.gnome.org/" IUSE="gnutls" SLOT="0" LICENSE="LGPL-2" KEYWORDS="x86 sparc ~ppc alpha ~hppa ~amd64" RDEPEND=">=dev-libs/glib-2.0 !gnutls? ( dev-libs/openssl ) gnutls? ( net-libs/gnutls )" DEPEND=">=dev-util/pkgconfig-0.12.0 dev-libs/popt ${RDEPEND}" src_unpack() { unpack ${A} # added --with-ssl=openssl|gnutls to choose between the two. epatch ${FILESDIR}/${P}-with_ssl.patch cd ${S}; autoconf } src_compile() { local myconf elibtoolize # current build system deems ssl as NOT AN OPTION. # use ssl && myconf="--enable-ssl --enable-openssl" use gnutls \ && myconf="${myconf} --with-ssl=gnutls" \ || myconf="${myconf} --with-ssl=openssl" econf ${myconf} || die "configure failed" emake || die "make failed" } src_install() { einstall || die "install failed" dodoc AUTHORS COPYING* ChangeLog README* TODO }