blob: cf2adf8475cdadcf0711789ca79cbe80767403aa (
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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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"
}
|