1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
4 inherit eutils fixheadtails
6 IUSE="ssl ipv6 diskbase debug pcre"
8 DESCRIPTION="A database-backed multi-user chat server."
9 SRC_URI="mirror://sourceforge/fbmuck/${P}.tar.gz"
10 HOMEPAGE="http://www.belfry.com/fuzzball/"
16 DEPEND=">=sys-apps/sed-4
17 ssl? ( dev-libs/openssl )"
19 RDEPEND="ssl? ( dev-libs/openssl )
20 pcre? ( dev-libs/libpcre )"
27 # epatch ${FILESDIR}/${P}-gentoo.patch
31 use diskbase && sed -i -e 's:#undef DISKBASE:#define DISKBASE:' include/config.h
33 `use_with ssl ssl=/usr` \
34 `use_with pcre pcre=/usr` \
37 || die "Could not configure"
38 emake || die "Could not make"
43 keepdir /usr/share/fbmuck
45 make DESTDIR=${D} install || die "Could not install"
48 doexe ${FILESDIR}/fbmuckctl
51 doexe ${FILESDIR}/fbmuck
54 doins ${FILESDIR}/fbmucks
56 dodoc CHANGESfb6 INSTALLATION README