1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils fixheadtails git-2
8 IUSE="ssl ipv6 +diskbase -scary_prims debug pcre"
10 DESCRIPTION="A database-backed multi-user chat server."
11 HOMEPAGE="http://www.belfry.com/fuzzball/"
12 EGIT_REPO_URI="git://git.code.sf.net/p/fbmuck/code"
13 EGIT_PROJECT="fbmuck.git"
14 EGIT_SOURCEDIR="${WORKDIR}/${P}"
21 ssl? ( dev-libs/openssl )
22 pcre? ( dev-libs/libpcre )
31 S="${WORKDIR}/${P}/fbmuck"
34 epatch "${FILESDIR}/${P}-gentoo.patch"
36 einfo "ensuring configure script is executable"
39 ht_fix_file game/restart.in game/resurrect
41 einfo "disabling DB_DOUBLING define"
42 sed -i -e 's:#define DB_DOUBLING:#undef DB_DOUBLING:' include/config.h || die "sed failed"
46 einfo "enabling DISKBASE define"
47 sed -i -e 's:#undef DISKBASE:#define DISKBASE:' include/config.h || die "sed failed"
51 einfo "enabling SCARY_MUF_PRIMS define"
52 sed -i -e 's:#undef SCARY_MUF_PRIMS:#define SCARY_MUF_PRIMS:' include/config.h || die "sed failed"
58 $(use_with ssl ssl=/usr) \
59 $(use_with pcre pcre=/usr) \
65 einfo "entering ${S}/src"
72 keepdir /usr/share/fbmuck
74 emake DESTDIR="${D}" install
76 dobin "${FILESDIR}/fbmuckctl"
78 doinitd "${FILESDIR}/fbmuck"
81 doins "${FILESDIR}/fbmucks"
83 dodoc src/CHANGESfb6 INSTALLATION README