/[gentoo-x86]/net-im/licq/licq-1.2.0a-r3.ebuild
Gentoo

Contents of /net-im/licq/licq-1.2.0a-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Dec 27 04:16:05 2002 UTC (14 years, 10 months ago) by mkennedy
Branch: MAIN
CVS Tags: GENTOO_1_4_SNAP_2003010800
Changes since 1.1: +2 -2 lines
marked stable after positive user testing

1 mkennedy 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 mkennedy 1.2 # $Header: /home/cvsroot/gentoo-x86/net-im/licq/licq-1.2.0a-r3.ebuild,v 1.1 2002/12/26 08:30:41 mkennedy Exp $
4 mkennedy 1.1
5     IUSE="ssl socks5 qt kde"
6    
7     DESCRIPTION="ICQ Client with v8 support"
8     HOMEPAGE="http://www.licq.org"
9     LICENSE="GPL-2"
10    
11     DEPEND="${DEPEND}
12     ssl? ( >=dev-libs/openssl-0.9.6 )
13     qt? ( >=x11-libs/qt-3.0.0 )"
14    
15     SRC_URI="http://download.sourceforge.net/licq/${P}.tar.bz2"
16     SLOT="2"
17 mkennedy 1.2 KEYWORDS="x86"
18 mkennedy 1.1 S=${WORKDIR}/${P}
19    
20     use kde && inherit kde-base
21     use kde && need-kde 3.0
22    
23    
24     src_unpack() {
25     cd ${WORKDIR}
26     unpack ${A}
27     cd ${S}
28     patch -p0 < ${FILESDIR}/${PV}-config.patch || die
29     patch -p1 < ${FILESDIR}/${PV}-qt31.patch || die
30     patch -p1 < ${FILESDIR}/${PV}-gcc3-gentoo.patch || die
31     }
32    
33     src_compile() {
34    
35     local first_conf
36     use ssl || first_conf = "${first_conf} --disable-openssl"
37     use socks5 && first_conf = "${first_conf} --enable-socks5"
38    
39     ./configure --host=${CHOST} --prefix=/usr ${first_conf} || die
40     emake || die
41    
42     if [ "`use qt`" ]
43     then
44     # A hack to build against the latest QT:
45     local v
46     for v in /usr/qt/[0-9]
47     do
48     [ -d "${v}" ] && export QTDIR="${v}"
49     done
50     use kde && kde_src_compile myconf
51     use kde && second_conf="${second_conf} ${myconf} --with-kde"
52    
53     # note! watch the --prefix=/usr placement;
54     # licq itself installs into /usr, but the
55     # optional kde/qt interface (to which second_conf belogns)
56     # installs its files in $KDE3DIR/{lib,share}/licq
57    
58     cd plugins/qt-gui-1.2.0
59     ./configure --host=${CHOST} ${second_conf} --prefix=/usr || die
60     emake || die
61     fi
62    
63     }
64    
65     src_install() {
66    
67     cd ${S}
68     make DESTDIR=${D} install || die
69     if [ "`use qt`" ]
70     then
71     cd plugins/qt-gui-1.2.0
72     make DESTDIR=${D} install || die
73     fi
74    
75     }

  ViewVC Help
Powered by ViewVC 1.1.20