blob: 20f702c89c9ada7d771b7784feb11de3e3b7db46 (
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
55
56
57
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/bip/bip-0.6.1.ebuild,v 1.1 2007/11/20 09:15:58 hawking Exp $
DESCRIPTION="Multiuser IRC proxy with ssl support"
HOMEPAGE="http://bip.t1r.net/"
SRC_URI="http://bip.t1r.net/downloads/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="ssl vim-syntax"
DEPEND="ssl? ( dev-libs/openssl )"
RDEPEND="${DEPEND}
vim-syntax? ( || ( app-editors/vim
app-editors/gvim ) )"
src_unpack() {
unpack ${A}
cd "${S}"
# Fix bip.vim
if use vim-syntax; then
sed -i \
-e 's/^\(no_client_away_msg\)/\t\\ \1/' \
-e 's/always_backlog/backlog_always/' \
-e 's/bl_msg_only/backlog_msg_only/' \
samples/bip.vim || die "sed failed"
fi
}
src_compile() {
econf $(use_enable ssl)
emake CFLAGS="${CFLAGS}" || die "emake failed"
}
src_install() {
dobin src/bip src/bipmkpw
dodoc AUTHORS ChangeLog README README.floodcontrol NEWS TODO
newdoc samples/bip.conf bip.conf.sample
doman bip.1 bip.conf.1 bipmkpw.1
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins samples/bip.vim
insinto /usr/share/vim/vimfiles/ftdetect
doins "${FILESDIR}"/bip.vim
fi
}
pkg_postinst() {
elog 'Default configuration file is "~/.bip/bip.conf"'
elog "You can find a sample configuration file in"
elog "/usr/share/doc/bip-0.6.1/bip.conf.sample.bz2"
}
|