summaryrefslogtreecommitdiff
blob: 38beb55b7df2f585d86305e2562035f6e82bc7eb (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/sim/sim-0.9.2.ebuild,v 1.11 2004/06/28 21:47:45 agriffis Exp $

if use kde; then
	inherit kde-base eutils
	need-kde 3
else
	inherit base kde-functions eutils
	need-qt 3
fi

LICENSE="GPL-2"
DESCRIPTION="An ICQ v8 Client. Supports File Transfer, Chat, Server-Side Contactlist, ..."
SRC_URI="mirror://sourceforge/sim-icq/${P}.tar.gz
	mirror://gentoo/sim-cvs-admin.tar.bz2 http://gentoo.tamperd.net/distfiles/sim-cvs-admin.tar.bz2"
RESTRICT="nomirror"
HOMEPAGE="http://sim-icq.sourceforge.net"
KEYWORDS="x86 ~ppc -amd64"
SLOT="0"
IUSE="ssl kde"

RDEPEND="ssl? ( dev-libs/openssl )
	app-text/sablotron"
DEPEND="$RDEPEND
	sys-devel/flex
	sys-devel/automake
	>=sys-devel/autoconf-2.58
	>=sys-apps/sed-4"

src_unpack() {
	unpack ${P}.tar.gz ; cd ${S}
	rm -rf admin/
	unpack sim-cvs-admin.tar.bz2

	sed -i 's:rm -rf $(sim_plugindir)/.*::g' plugins/*/Makefile.am
}

src_compile() {
	local myconf

	myconf="$( use_enable ssl openssl )"
	myconf="$myconf $( use_enable kde )"
	myconf="$myconf --without-gkrellm_plugin"
	myconf="$myconf --prefix=/usr"

	if use kde; then
		need-kde 3
	else
		need-qt 3
	fi

	export WANT_AUTOCONF=2.5
	export WANT_AUTOMAKE=1.7

	make -f admin/Makefile.common

	use kde && kde_src_compile myconf

	econf $myconf --without-gkrellm || die
	make clean  || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc TODO README ChangeLog COPYING AUTHORS
}