summaryrefslogtreecommitdiff
blob: 35e11d19110a45be6ab9abb375bc49bae9750ed3 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/centericq/centericq-4.9.12.ebuild,v 1.7 2004/07/01 22:17:29 eradicator Exp $

inherit eutils

IUSE="nls ssl"

S=${WORKDIR}/${P}
DESCRIPTION="A ncurses ICQ/Yahoo!/AIM/IRC/MSN/Jabber Client"
SRC_URI="http://konst.org.ua/download/${P}.tar.gz"
HOMEPAGE="http://konst.org.ua/eng/software/centericq/info.html"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc ~amd64 ~ppc hppa"

DEPEND="virtual/libc
	>=sys-libs/ncurses-5.2
	ssl? ( >=dev-libs/openssl-0.9.6g )
	bidi? ( dev-libs/fribidi )"

RDEPEND="nls? ( sys-devel/gettext )"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/centericq-4.9.12-gcc3.4.patch
}

src_compile() {
	# Options you can add to myopts
	# --disable-yahoo    Build without Yahoo!
	# --disable-aim      Build without AIM
	# --disable-irc      Build without IRC
	# --disable-msn      Build without MSN
	# --disable-jabber   Build without Jabber
	# --disable-rss      Build without RSS reader
	# --no-konst         Don't add contact list items
	# --disable-lj       Build without LiveJournal client"
	#                    supplied by author by default
	local myopts="--with-gnu-ld"

	use nls || myopts="${myopts} --disable-nls"

	use bidi && myopts="${myopts} --with-fribidi"

	use ssl && myopts="${myopts} --with-ssl"

	econf ${myopts} || die "Configure failed"
	emake || die "Compilation failed"
}

src_install () {
	einstall || die "Installation failed"

	dodoc ABOUT-NLS AUTHORS ChangeLog COPYING FAQ README THANKS TODO
}