blob: 99c7a7a30a68c79deb867f7f8d25b42635980156 (
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
|
# Copyrigth 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>, Donny Davies <woodchip@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-irc/xchat/xchat-1.8.2-r2.ebuild,v 1.2 2001/10/06 12:58:46 hallski Exp $
S=${WORKDIR}/${P}
DESCRIPTION="xchat irc client"
SRC_URI="http://www.xchat.org/files/source/1.8/${P}.tar.bz2"
HOMEPAGE="http://www.xchat.org/"
DEPEND=">=x11-libs/gtk+-1.2.10-r4
perl? ( sys-devel/perl )
python? ( >=dev-lang/python-2.0-r4 )
nls? ( >=sys-devel/gettext-0.10.38 )
gnome? ( >=gnome-base/gnome-core-1.4.0.4-r1 >=media-libs/gdk-pixbuf-0.11.0-r1 )
ssl? ( >=dev-libs/openssl-0.9.6a )"
RDEPEND=">=x11-libs/gtk+-1.2.8
gnome? ( >=gnome-base/gnome-core-1.4.0.4-r1 >=media-libs/gdk-pixbuf-0.11.0-r1 )
ssl? ( >=dev-libs/openssl-0.9.6a )"
src_unpack() {
unpack ${A}
}
src_compile() {
local myopts myflags
use gnome && myopts="--enable-gnome --enable-panel"
use gnome || myopts="--enable-gtkfe --disable-gnome --disable-gdk-pixbuf --disable-zvt"
use ssl && myopts="$myopts --enable-openssl"
use perl && myopts="$myopts --disable-perl"
use python && myflags="`python-config --libs` -lm"
use python || myopts="$myopts --disable-python"
use nls || myopts="$myopts --disable-nls"
CFLAGS="$CFLAGS -I/usr/include/orbit-1.0"
./configure --prefix=/usr --host=${CHOST} ${myopts} --enable-ipv6 || die
if [ "$myflags" ] ; then
for i in src/fe-gtk src/fe-text
do
if [ -e $i/Makefile ] ; then
cp $i/Makefile $i/Makefile.orig
sed -e "s:-lpython2.0:$myflags:" \
$i/Makefile.orig > $i/Makefile
fi
done
fi
emake || die
}
src_install() {
make prefix=${D}/usr install || die
dodoc AUTHORS COPYING ChangeLog README
}
|