# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/obby/obby-0.3.0-r1.ebuild,v 1.2 2006/10/28 14:43:07 mabi Exp $ #MY_P=${P/_rc/rc} #S=${WORKDIR}/${MY_P} inherit eutils DESCRIPTION="Library for collaborative text editing" HOMEPAGE="http://darcs.0x539.de/libobby" SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="avahi howl ipv6" DEPEND=">=net-libs/net6-1.3.3 >=dev-libs/libsigc++-2.0 >=dev-libs/gmp-4.1.4 howl? ( !avahi? ( >=net-misc/howl-0.9.8 ) ) avahi? ( net-dns/avahi )" RDEPEND="${DEPEND}" pkg_setup() { if use avahi && ! built_with_use net-dns/avahi howl-compat ; then eerror "You need to compile net-dns/avahi with howl-compat" eerror "USE flag or install net-misc/howl." die "avahi without howl-compat" fi } src_unpack() { unpack ${A} #cd ${S} #epatch ${FILESDIR}/dual_subscribe.patch } src_compile() { local myconf="" if use avahi || use howl ; then myconf="${myconf} --with-zeroconf" fi econf ${myconf} \ $(use_enable ipv6) || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR=${D} install || die "emake install failed" }