blob: 203d643adea2f9992cf453a8cf639cce994f267f (
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
|
# 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>
# $Header: /var/cvsroot/gentoo-x86/net-irc/xchat/xchat-1.8.1.ebuild,v 1.2 2001/07/29 10:53:03 hallski Exp $
S=${WORKDIR}/${P}
DESCRIPTION="xchat"
SRC_URI="http://www.xchat.org/files/source/1.8/${P}.tar.bz2"
HOMEPAGE="http://www.xchat.org/"
DEPEND=">=media-libs/gdk-pixbuf-0.11
perl? ( sys-devel/perl )
python? ( >=dev-lang/python-2.0-r4 )
nls? ( >=sys-devel/gettext-0.10.38 )
gnome? ( >=gnome-base/gnome-core-1.2.2.1 )
ssl? ( >=dev-libs/openssl-0.9.6a )"
RDEPEND=">=media-libs/gdk-pixbuf-0.11
gnome? ( >=gnome-base/gnome-core-1.2.2.1 )
ssl? ( >=dev-libs/openssl-0.9.6a )"
src_compile() {
local myopts
local myflags
if [ "`use gnome`" ]
then
myopts="--enable-gnome --enable-panel --prefix=/opt/gnome"
else
myopts="--enable-gtkfe --disable-gnome --prefix=/usr/X11R6 --disable-gdk-pixbuf"
fi
if [ "`use ssl`" ] ; then
myopts="$myopts --enable-openssl"
fi
if [ -z "`use perl`" ] ; then
myopts="$myopts --disable-perl"
fi
if [ "`use python`" ] ; then
myflags="`python-config --libs`"
else
myopts="$myopts --disable-python"
fi
if [ -z "`use nls`" ] ; then
myopts="$myopts --disable-nls"
fi
try ./configure --host=${CHOST} ${myopts} --enable-ipv6
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
try pmake
}
src_install() {
cd ${S}
if [ -n "`use gnome`" ]
then
try make prefix=${D}/opt/gnome install
else
try make prefix=${D}/usr/X11R6 install
fi
dodoc AUTHORS COPYING ChangeLog README
}
|