blob: dca5a9f9e62aae255680ace29c399acb5595cfff (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/bitchx/bitchx-1.2.ebuild,v 1.3 2013/01/28 19:32:19 jer Exp $
EAPI=4
inherit autotools eutils flag-o-matic
MY_PN=BitchX
MY_P=${MY_PN}-${PV}-final
S=${WORKDIR}/${MY_PN}-${PV}
DESCRIPTION="An IRC Client"
HOMEPAGE="http://www.bitchx.ca/"
SRC_URI="http://bitchx.ca/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sh ~sparc ~x86"
IUSE="ipv6 ssl"
DEPEND="sys-libs/ncurses
ssl? ( dev-libs/openssl )"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i \
-e "s/#undef LATIN1/#define LATIN1 ON/;" \
include/config.h || die
epatch "${FILESDIR}"/${P}-build.patch
# Do epatch_user since even BX-1.2 has A LOT of patches and A LOT
# of behaviour controlled by manually editing config.h
epatch_user
sed -i \
-e 's|$(SHLIB_LD)|& $(LDFLAGS)|g' \
dll/*/Makefile.in || die
eautoreconf
}
src_configure() {
# Disable CDROM or else it will take over your CDROM drive
local myconf="--disable-cdrom --disable-sound --without-gtk"
econf \
--with-plugins \
$(use_with ssl) \
$(use_enable ipv6) \
${myconf}
}
src_compile() {
replace-flags -O[3-9] -O2
append-flags -fno-strict-aliasing
emake
emake -C contrib vh1
}
src_install () {
einstall
dobin contrib/vh1
dosym BitchX /usr/bin/bitchx
cd "${S}"
dodoc bugs Changelog README* IPv6-support
cd "${S}"/doc
insinto /usr/include/X11/bitmaps
doins BitchX.xpm
dodoc *.txt */*.txt
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
}
|