# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/obby/obby-0.4.1.ebuild,v 1.1 2006/08/29 23:02:28 humpback Exp $ inherit eutils DESCRIPTION="Library for collaborative text editing" HOMEPAGE="http://darcs.0x539.de/libobby" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="howl avahi ipv6" SRC_URI="http://releases.0x539.de/${PN}/${P/_/}.tar.gz" DEPEND=">=net-libs/net6-1.3.3 >=dev-libs/libsigc++-2.0 >=dev-libs/gmp-4.1.4 avahi? ( net-dns/avahi ) howl? ( || (>=net-misc/howl-0.9.8 net-dns/avahi))" RDEPEND="" S=${WORKDIR}/${P/_/} src_unpack() { unpack ${A} } src_compile() { local myconf if use avahi then if use howl then elog "Cannot build against howl and avahi. Assuming avahi" fi built_with_use net-dns/avahi howl-compat \ || die "net-dns/avahi must be built with howl-compat" myconf="${myconf} $(use_with avahi zeroconf)" else if use howl then myconf="${myconf} $(use_with howl zeroconf)" fi fi econf ${myconf} $(use_enable ipv6) || die "./configure failed" emake || die "make failed" } src_install() { make DESTDIR=${D} install || die }