1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
12 DESCRIPTION="An IRC bot extensible with C or TCL"
13 HOMEPAGE="http://www.eggheads.org/"
15 ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/${MY_P}.tar.bz2
16 https://dev.gentoo.org/~binki/distfiles/${CATEGORY}/${PN}/${P}-patches-${PATCHSET_V}.tar.bz2"
18 KEYWORDS="alpha amd64 ia64 ~mips ppc sparc x86"
21 IUSE="debug mysql postgres ssl static vanilla"
23 REQUIRED_USE="vanilla? ( !mysql !postgres !ssl )"
27 sys-apps/gentoo-functions
29 mysql? ( virtual/mysql )
30 postgres? ( dev-db/postgresql[server] )
31 ssl? ( dev-libs/openssl )
39 rm -f "${WORKDIR}"/patch/[1-6]*.patch || die
42 EPATCH_SUFFIX="patch" epatch
46 -e '/\$(LD)/s/-o/$(CFLAGS) $(LDFLAGS) &/' \
47 src/mod/*.mod/Makefile* src/Makefile.in || die
51 use mysql || ( echo mysql ; echo mystats ) >>disabled_modules
52 use postgres || echo pgstats >>disabled_modules
53 use static && ( echo rijndael ; echo twofish ) >>disabled_modules
63 if use static && use debug; then
76 emake DEST="${D}"/opt/eggdrop install
79 [ -f ${a} ] && dodoc ${a}
82 for a in src/mod/*.mod; do
83 for b in README UPDATES INSTALL TODO CONTENTS; do
84 [[ -f ${a}/${b} ]] && newdoc ${a}/${b} ${b}.${a##*/}
90 use vanilla || dodoc \
91 src/mod/botnetop.mod/botnetop.conf \
92 src/mod/gseen.mod/gseen.conf \
93 src/mod/mc_greet.mod/mc_greet.conf \
94 src/mod/stats.mod/stats.conf \
95 src/mod/away.mod/away.doc \
96 src/mod/rcon.mod/matchbot.tcl \
97 src/mod/mystats.mod/tools/mystats.{conf,sql} \
98 src/mod/pgstats.mod/tools/{pgstats.conf,setup.sql}
100 dohtml doc/html/*.html
102 dobin "${FILESDIR}"/eggdrop-installer
103 doman doc/man1/eggdrop.1
107 elog "Please run /usr/bin/eggdrop-installer to install your eggdrop bot."