summaryrefslogtreecommitdiff
blob: 8bb0abb2caec95aa5b16952ed7d97d129d4a672c (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
# Distributed under the terms of the GNU General Public License, v2 or later
# A Gnome ICQ Clone
# Author Ben Lutgens <blutgens@gentoo.org>

A=${P}.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="Gnome ICQ Client"
SRC_URI="http://download.sourceforge.net/gnomeicu/${A}"
HOMEPAGE="http://gnomeicu.sourceforge.net/"

DEPEND="virtual/glibc sys-devel/gettext
	>=gnome-base/gnome-core-1.2.4
        >=sys-libs/gdbm-1.8.0"
RDEPEND="=gnome-base/gnome-core-1.2.4
        >=sys-libs/gdbm-1.8.0"

src_unpack() {
  unpack ${A}
  cd ${S}/src
  cp ${FILESDIR}/userserver.patch .
  patch -p0 < userserver.patch
}

src_compile() {                           
  

  local myconf
  local myprefix
  myprefix="/opt/gnome"
  if [ -z "`use esd`" ]
  then
  	myconf="--disable-esd-test"
  fi
  if [ "`use socks5`" ];
  then
  	myconf="${myconf} --enable-socks5"
  fi

# This is busted, I'm not sure if it's my box or what, I don't have nls in use
# so the disabling should work perfectly.
#
#  if [ -z "`use nls`" ]
#  then
#	myconf="${myconf} --disable-nls"
#  fi
  try ./configure --host=${CHOST} ${myconf} --prefix=${myprefix}
  try make
}

src_install() {

  try make DESTDIR=${D}  install
  dodoc AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README TODO ABOUT-NLS
}