# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A simple session server" HOMEPAGE="http://sharedance.pureftpd.org/project/sharedance" SRC_URI="http://download.pureftpd.org/pub/sharedance/sharedance-0.6.tar.bz2" LICENSE="MIT" SLOT="0" KEYWORDS="~x86" IUSE="doc dmalloc largefile debug" DEPEND=">=dev-libs/libevent-0.9 dmalloc? ( dev-libs/dmalloc )" RDEPEND="${DEPEND}" src_compile() { econf \ $(use_with debug) \ $(use_with dmalloc) \ $(use_enable largefile) \ $(use_with largefile) \ || die emake || die } src_install() { make DESTDIR="${D}" install || die if use doc; then dodoc AUTHORS COPYING INSTALL NEWS README php/s*.php || die fi cp "${FILESDIR}/conf.d" "${T}/sharedance" || die doconfd "${T}/sharedance" || die cp "${FILESDIR}/init.d" "${T}/sharedance" || die doinitd "${T}/sharedance" || die dodir /var/spool/sharedance }