blob: ddcb6d95315d0f7cb9c480f93d910d6c8b64defc (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/gaim/gaim-0.59.3.ebuild,v 1.3 2002/10/04 06:04:32 vapier Exp $
S=${WORKDIR}/${P}
DESCRIPTION="GTK Instant Messenger client"
SRC_URI="mirror://sourceforge/gaim/${P}.tar.bz2"
HOMEPAGE="http://gaim.sourceforge.net"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc"
DEPEND="=sys-libs/db-1*
esd? ( >=media-sound/esound-0.2.22-r2 )
nls? ( sys-devel/gettext )
nas? ( >=media-libs/nas-1.4.1-r1 )
arts? ( >=kde-base/arts-0.9.5 )
perl? ( >=sys-devel/perl-5.6.1 )
gtk2? ( =x11-libs/gtk+-2.0* =dev-libs/glib-2.0* )
|| ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2*
( gnome? ( =gnome-base/gnome-panel-1.4* >=media-libs/gdk-pixbuf-0.16.0 ) ) )"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${P}.tar.bz2
# patch for korean encoding
# It should be ok with other languages
# the patch only works with nls
# PULLED -- got complaints it was hosing gtk2 non-korean users
# use nls && patch -p0 < ${FILESDIR}/${P}-korean.patch
}
src_compile() {
local myconf gnomeopts
use esd || myconf="--disable-esd"
use perl || myconf="${myconf} --disable-perl"
use nas \
&& myconf="${myconf} --enable-nas" \
|| myconf="${myconf} --disable-nas"
if [ "` use arts`" ]; then
inherit kde-functions
set-kdedir 3
# $KDEDIR now points to arts location
else
myconf="${myconf} --disable-artsc"
fi
use nls || myconf="${myconf} --disable-nls"
gnomeopts="${myconf}"
if [ "`use gtk2`" ];
then
# GTK+ 2 support
myconf="${myconf} --enable-gtk2"
fi
gnomeopts="${myconf}"
# Gnome is disabled for GTK+ 2.0 build and first build of GTK 1.4 version
myconf="${myconf} --disable-gnome"
# always build standalone gaim program
econf ${myconf} || die
emake || die
# if gnome support is enabled (and gtk2 disabled), then build gaim_applet
if [ use gnome -a -z "`use gtk2`" ];
then
gnomeopts="${gnomeopts} --with-gnome=${GNOME_PATH} --enable-panel"
# save appletless version and clean up
cp src/gaim ${S}/gaim || die "standalone version failed to build"
make distclean || die
econf ${gnomeopts} || die
emake || die
fi
}
src_install () {
make DESTDIR=${D} install || die
# if gnome enabled, make sure to install standalone version also
use gnome && dobin ${S}/gaim
dodoc ABOUT-NLS AUTHORS HACKING INSTALL NEWS README TODO
}
|