summaryrefslogtreecommitdiff
blob: 0f733b60bd4ee8576abd4e31dc7fd9cdf0eb8e56 (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
48
49
50
51
52
53
54
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/bobotpp/bobotpp-2.2.3.ebuild,v 1.1 2011/06/15 04:06:52 binki Exp $

EAPI=4

inherit autotools autotools-utils eutils

DESCRIPTION="A flexible IRC bot scriptable in scheme"
HOMEPAGE="http://unknownlamer.org/code/bobot.html"
SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="guile"

DEPEND="guile? ( dev-scheme/guile )"
RDEPEND="${DEPEND}"

src_prepare() {
	epatch "${FILESDIR}"/${PN}-2.2.2-asneeded.patch \
		"${FILESDIR}"/${P}-stdout.patch
	eautoreconf
}

src_configure() {
	local myeconfargs=(
		--enable-crypt
		$(use_enable guile scripting)
	)

	autotools-utils_src_configure
}

src_install() {
	autotools-utils_src_install

	dosym bobot++.info /usr/share/info/bobotpp.info

	dodoc AUTHORS ChangeLog NEWS README TODO
	dohtml documentation/index.html

	docinto examples/config
	dodoc examples/config/*

	docinto examples/scripts
	dodoc examples/scripts/*
}

pkg_postinst() {
	elog "You can find a sample configuration file set in"
	elog "${EPREFIX}/usr/share/doc/${PF}/example-config"
}