1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils fixheadtails
7 IUSE="ssl ipv6 diskbase debug pcre"
9 DESCRIPTION="A database-backed multi-user chat server."
10 SRC_URI="mirror://sourceforge/fbmuck/${P}.tar.gz"
11 HOMEPAGE="http://www.belfry.com/fuzzball/"
17 DEPEND=">=sys-apps/sed-4
18 ssl? ( dev-libs/openssl )"
20 RDEPEND="ssl? ( dev-libs/openssl )
21 pcre? ( dev-libs/libpcre )"
28 # epatch ${FILESDIR}/${P}-gentoo.patch
32 use diskbase && sed -i -e 's:#undef DISKBASE:#define DISKBASE:' include/config.h
34 `use_with ssl ssl=/usr` \
35 `use_with pcre pcre=/usr` \
38 || die "Could not configure"
39 emake || die "Could not make"
44 keepdir /usr/share/fbmuck
46 make DESTDIR="${D}" install || die "Could not install"
49 doexe "${FILESDIR}"/fbmuckctl
52 doexe "${FILESDIR}"/fbmuck
55 doins "${FILESDIR}"/fbmucks
57 dodoc CHANGESfb6 INSTALLATION README