blob: e604b5a4be27ead29157ae5f58631187450877b1 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/bitchx/bitchx-1.1-r1.ebuild,v 1.9 2006/11/19 02:10:35 compnerd Exp $
inherit flag-o-matic eutils
MY_P=ircii-pana-${PV}-final
S=${WORKDIR}/BitchX
DESCRIPTION="An IRC Client"
HOMEPAGE="http://www.bitchx.org/"
SRC_URI="http://www.bitchx.org/files/source/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc alpha arm hppa amd64"
IUSE="cjk ipv6 ssl"
DEPEND=">=sys-libs/ncurses-5.1
ssl? ( >=dev-libs/openssl-0.9.6 )"
src_unpack() {
unpack ${MY_P}.tar.gz
cd ${S}
use cjk && epatch ${FILESDIR}/${PV}/${P}-cjk.patch
epatch ${FILESDIR}/${PV}/${P}-hebrew.patch
epatch ${FILESDIR}/${PV}/${P}-freenode.patch
epatch ${FILESDIR}/${PV}/${P}-gcc34.patch
use amd64 && epatch ${FILESDIR}/BitchX-64bit.patch
}
src_compile() {
# BitchX needs to be merged with -fPIC on alpha/hppa boxes #10932
[ "${ARCH}" == "alpha" ] && append-flags "-fPIC"
[ "${ARCH}" == "hppa" ] && append-flags "-fPIC"
[ "${ARCH}" == "amd64" ] && append-flags "-fPIC"
replace-flags -O[3-9] -O2
local myconf="--disable-sound --without-gtk --disable-cdrom"
if [ "${DEBUG}" ]
then
einfo "debugging"
myconf="${myconf} --enable-debug"
fi
# lamer@gentoo.org BROKEN, will not work with our socks
# implementations, is looking for a SOCKSConnect function that our
# dante packages don't have :-(
# use socks5 \
# && myconf="${myconf} --with-socks=5" \
# || myconf="${myconf} --without-socks"
mv ${S}/include/config.h ${S}/include/config.h.orig
sed -e "s/#undef LATIN1/#define LATIN1 ON/;" \
${S}/include/config.h.orig > \
${S}/include/config.h
econf \
CFLAGS="${CFLAGS}" \
--with-plugins \
`use_with ssl` \
`use_enable ipv6` \
${myconf} || die
emake || die
cd contrib && make vh1
}
src_install () {
einstall || die
[ -f contrib/vh1 ] && cp contrib/vh1 ${D}/usr/bin/
rm ${D}/usr/share/man/man1/BitchX*
doman doc/BitchX.1
dosym BitchX-1.1-final /usr/bin/BitchX
fperms a-x /usr/lib/bx/plugins/BitchX.hints
cd ${S}
dodoc Changelog README* IPv6-support
cd doc
insinto /usr/X11R6/include/bitmaps
doins BitchX.xpm
dodoc BitchX-* BitchX.bot *.doc BitchX.faq README.hooks
dodoc bugs *.txt functions ideas mode tcl-ideas watch
dodoc *.tcl
dohtml *.html
docinto plugins
dodoc plugins
cd ../dll
dodoc nap/README.nap
newdoc acro/README README.acro
newdoc arcfour/README README.arcfour
newdoc blowfish/README README.blowfish
newdoc qbx/README README.qbx
}
|