summaryrefslogtreecommitdiff
blob: 36fe3cf52390e63058860bd7683a6de6a3bbbe73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/emech/emech-2.8.5.1.ebuild,v 1.4 2005/04/24 13:10:55 hansmi Exp $

DESCRIPTION="The EnergyMech is a UNIX compatible IRC bot programmed in the C language"
HOMEPAGE="http://www.energymech.net/"
SRC_URI="http://www.energymech.net/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"
IUSE="debug session"

DEPEND=""

src_compile() {
	./configure \
		--with-alias \
		--with-dyncmd \
		--with-linkevents \
		--with-linking \
		--with-newbie \
		--with-pipeuser \
		--with-seen \
		--with-telnet \
		--with-wingate \
		--without-profiling \
		--without-superdebug \
		$(use_with session) \
		$(use_with debug) \
		|| die "./configure failed"
	emake CFLAGS="${CFLAGS} -c" || die "emake failed"
}

src_install() {
	dobin src/mech || die "dobin failed"
	newbin genuser mech-genuser || die "newbin failed"
	dodoc sample.set mech.help README VERSIONS checkmech || die "dodoc failed"
}

pkg_postinst() {
	einfo
	einfo "You can find a sample settings file at"
	einfo "/usr/share/doc/${PF}/sample.set.gz"
	einfo
	einfo "NOTE: You need to execute the binary with full path: /usr/bin/mech"
	einfo
}