summaryrefslogtreecommitdiff
blob: 2d2922e3f5fb7d9cf0d11fe225e82221a3b5c888 (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-irc/bitchx/bitchx-1.0.19.ebuild,v 1.1 2002/04/16 13:46:11 seemant Exp $

MY_P=ircii-pana-${PV/.0./.0c}
S=${WORKDIR}/BitchX
DESCRIPTION="An IRC Client"
SRC_URI="ftp://ftp.bitchx.com/pub/BitchX/source/${MY_P}.tar.gz"
HOMEPAGE="http://www.bitchx.com/"

DEPEND=">=sys-libs/ncurses-5.1 
	ssl? ( >=dev-libs/openssl-0.9.6 )
	xmms? ( media-sound/xmms )
	gnome? ( >=gnome-base/gnome-libs-1.4.1.2-r1 )
	ncurses? ( sys-libs/ncurses )
	esd? ( >=media-sound/esound-0.2.5
		>=media-libs/audiofile-0.1.5 )
	gtk? ( >=x11-libs/gtk+-1.2*
		>=media-libs/imlib-1.9.10-r1 )"

#src_unpack() {
#	unpack ${A}
#	cd ${S}
#	patch -p1 < ${FILESDIR}/${PF}-gentoo.diff || die
#	patch -p1 < ${FILESDIR}/${P}-dupver.patch || die
#}

src_compile() {

	local myconf

	use ssl \
		&& myconf="${myconf} --with-ssl" \
		|| myconf="${myconf} --without-ssl"

	use esd && use gtk \
		&& myconf="${myconf} --enable-sound" \
		|| myconf="${myconf} --disable-sound"
	
	use gtk \
	    || myconf="${myconf} --without-gtk"

	use ipv6 \
		&& myconf="${myconf} --enable-ipv6" \
		|| myconf="${myconf} --disable-ipv6"

	#not tested
#	use ncurses \
#		&& myconf="${myconf} --without-tgetent" \
#		|| myconf="${myconf} --with-tgetent"
	
	use socks5 \
		&& myconf="${myconf} --with-socks=5" \
		|| myconf="${myconf} --without-socks"

	./configure \
		--prefix=/usr \
		--host=${CHOST} \
		--build=${CHOST} \
		--enable-cdrom \
		--with-plugins \
		${myconf} || die

	emake || die

}

src_install () {

	make \
		prefix=${D}/usr \
		install || die

	cd ${D}/usr/bin

	use gnome && ( \
		exeinto /usr/bin
		newexe ${S}/source/BitchX BitchX-1.0c18
		dosym gtkBitchX-1.0c18 /usr/bin/gtkBitchX
	)

	dosym BitchX-1.0c18 /usr/bin/BitchX

	chmod -x ${D}/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
		insinto /usr/lib/bx/wav
		doins wavplay/*.wav
		cp acro/README acro/README.acro
		dodoc acro/README.acro
		cp arcfour/README arcfour/README.arcfour
		dodoc arcfour/README.arcfour
		cp blowfish/README blowfish/README.blowfish
		dodoc blowfish/README.blowfish
		dodoc nap/README.nap
		cp qbx/README qbx/README.qbx
		dodoc qbx/README.qbx
}