summaryrefslogtreecommitdiff
blob: a85c7b0657dc7db36c9486a6e24342a666157680 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/irc-client/irc-client-2.10.3_p3.ebuild,v 1.8 2004/07/12 23:05:42 swegener Exp $

MY_P=irc${PV/_/}

DESCRIPTION="A simplistic RFC compliant IRC client"
HOMEPAGE="http://www.irc.org"
SRC_URI="ftp://ftp.irc.org/irc/server/${MY_P}.tgz"
LICENSE="GPL-1"
SLOT="0"

KEYWORDS="x86 ~ppc"
IUSE="ipv6"

DEPEND="virtual/libc
	sys-libs/ncurses
	sys-libs/zlib"

S=${WORKDIR}/${MY_P}

src_compile () {
	use ipv6 && myconf="--with-ip6" || myconf="--without-ip6"

	./configure \
		--prefix=/usr \
		--host=${CHOST} \
		--mandir=/usr/share/man \
		--sysconfdir=/etc/ircd \
		--localstatedir=/var/run/ircd \
		$myconf || die "Configure failed"

	# irc doesnt recognize the proper CHOST properly in some cases.
	# Cheap hack to get it working properly. - zul
	cd `support/config.guess`
	emake client || die "client build failed"
}

src_install() {
	# See note above.
	cd `support/config.guess`
	make \
		prefix=${D}/usr \
		client_man_dir=${D}/usr/share/man/man1 \
		install-client || die "client installed failed"
	dodoc ../doc/Etiquette ../doc/alt-irc-faq ../doc/rfc*
}