blob: 5a56096f83fd200e8763fa823301eac873c14166 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/bitchx/bitchx-1.1-r4.ebuild,v 1.5 2009/11/17 00:10:50 cla 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="alpha amd64 arm hppa ~ia64 ppc sh sparc x86"
IUSE="cjk ipv6 ssl"
DEPEND=">=sys-libs/ncurses-5.1
ssl? ( >=dev-libs/openssl-0.9.6 )"
src_unpack() {
unpack ${A}
cd "${S}"
use cjk && epatch "${FILESDIR}"/${PV}/${P}-cjk.patch
epatch "${FILESDIR}"/${PV}/${P}-pbxs.patch
epatch "${FILESDIR}"/${PV}/${P}-hebrew.patch
epatch "${FILESDIR}"/${PV}/${P}-freenode.patch
epatch "${FILESDIR}"/${PV}/${P}-gcc34.patch
epatch "${FILESDIR}"/${PV}/${P}-gcc41.patch
epatch "${FILESDIR}"/${PV}/${P}-inline.patch
epatch "${FILESDIR}"/${PV}/${P}-headers.patch
epatch "${FILESDIR}"/${PV}/${P}-build.patch
epatch "${FILESDIR}"/${PV}/${P}-open-mode.patch
epatch "${FILESDIR}"/fPIC.patch
epatch "${FILESDIR}"/BitchX-64bit.patch
sed -i \
-e "s/#undef LATIN1/#define LATIN1 ON/;" \
include/config.h
}
src_compile() {
replace-flags -O[3-9] -O2
append-flags -fno-strict-aliasing
# Disable CDROM or else it will take over your CDROM drive
local myconf="--disable-cdrom --disable-sound --without-gtk"
# 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"
econf \
--with-plugins \
$(use_with ssl) \
$(use_enable ipv6) \
${myconf} || die
emake || die "make failed"
emake -C contrib vh1 || die "make vh1 failed"
}
src_install () {
einstall || die
dobin contrib/vh1 || die
dosym BitchX-1.1-final /usr/bin/BitchX
dosym BitchX-1.1-final /usr/bin/bitchx
cd "${S}"
dodoc bugs Changelog README* IPv6-support
cd "${S}"/doc
insinto /usr/include/X11/bitmaps
doins BitchX.xpm || die
dodoc README.* *.txt */*.txt tcl/*
dohtml -r *
cd "${S}"/dll
docinto plugins
dodoc nap/README.nap
newdoc acro/README README.acro
newdoc arcfour/README README.arcfour
newdoc blowfish/README README.blowfish
newdoc qbx/README README.qbx
}
|