blob: e024bddde026c252f3668c84e43ebc669d88ec7a (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/centericq/centericq-4.20.0-r3.ebuild,v 1.3 2005/07/24 17:09:06 dertobi123 Exp $
inherit eutils
IUSE="bidi nls ssl crypt icq jabber aim msn yahoo gg irc rss lj"
DESCRIPTION="A ncurses ICQ/Yahoo!/AIM/IRC/MSN/Jabber/GaduGadu/RSS/LiveJournal Client"
SRC_URI="http://thekonst.net/download/${P}.tar.bz2"
HOMEPAGE="http://thekonst.net/en/centericq"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~sparc ~amd64 ppc ~hppa"
DEPEND="virtual/libc
gg? ( >=net-libs/libgadu-20050719 )
>=sys-libs/ncurses-5.2
bidi? ( dev-libs/fribidi )
jabber? ( crypt? ( >=app-crypt/gpgme-1.0.2 ) )
ssl? ( >=dev-libs/openssl-0.9.6g )
msn? ( net-misc/curl )"
RDEPEND="${DEPEND}
nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd ${S}
# security fix, see CAN-2005-1914 -- from CenterICQ CVS, 20050718
epatch ${FILESDIR}/${P}.CAN-2005-1914.patch.bz2
epatch ${FILESDIR}/${P}-libgadu.patch
use amd64 && epatch ${FILESDIR}/${PN}-amd64.patch
}
src_compile() {
local myopts="--with-gnu-ld --disable-konst"
use nls >&/dev/null && myopts="${myopts} --enable-locales-fix" || myopts="${myopts} --disable-nls"
use bidi >&/dev/null && myopts="${myopts} --with-fribidi"
use ssl >&/dev/null && myopts="${myopts} --with-ssl"
use ssl >&/dev/null && myopts="${myopts} --with-ssl"
use icq >&/dev/null || myopts="${myopts} --disable-icq"
use jabber >&/dev/null && {
use crypt >&/dev/null || myopts="${myopts} --without-gpgme"
} || myopts="${myopts} --disable-jabber"
use aim >&/dev/null || myopts="${myopts} --disable-aim"
use msn >&/dev/null || myopts="${myopts} --disable-msn"
if use msn >&/dev/null && ! use ssl >&/dev/null; then
eerror ""
eerror "USE flag problem"
eerror "================"
eerror "'msn' USE flag detected, but 'ssl' USE flag missing:"
eerror "MSN support needs libcurl with SSL support."
eerror ""
die "Please either activate the 'ssl' USE flag or deactivate the 'msn' USE flag for net-im/centericq"
fi
use yahoo >&/dev/null || myopts="${myopts} --disable-yahoo"
use gg >&/dev/null || myopts="${myopts} --disable-gg"
use irc >&/dev/null || myopts="${myopts} --disable-irc"
use rss >&/dev/null || myopts="${myopts} --disable-rss"
use lj >&/dev/null || myopts="${myopts} --disable-lj"
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
}
|