/[gentoo-x86]/net-im/licq/licq-1.2.4-r2.ebuild
Gentoo

Contents of /net-im/licq/licq-1.2.4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Apr 22 22:36:12 2003 UTC (14 years, 6 months ago) by drobbins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
new 1.2.6 upstream release and closing 3 bug reports (see ChangeLog)

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-im/licq/licq-1.2.4-r2.ebuild,v 1.7 2003/02/11 01:10:29 seemant Exp $
4
5 IUSE="ssl socks5 qt kde gtk ncurses"
6
7 use kde && inherit kde-base
8 use kde && need-kde 3.0
9
10 DESCRIPTION="ICQ Client with v8 support"
11 HOMEPAGE="http://www.licq.org"
12 LICENSE="GPL-2"
13
14 DEPEND="${DEPEND}
15 ssl? ( >=dev-libs/openssl-0.9.6 )
16 qt? ( >=x11-libs/qt-3.0.0 )
17 gtk? ( =x11-libs/gtk+-1.2* )
18 ncurses? ( sys-libs/ncurses )"
19
20 SRC_URI="http://download.sourceforge.net/licq/${P}.tar.bz2"
21 SLOT="2"
22 KEYWORDS="x86"
23
24 src_unpack() {
25 unpack ${A}
26
27 if [ "`use kde`" ]
28 then
29 # fix for #12436
30 ebegin "Setting kde plugin as default..."
31 cp ${S}/src/licq.conf.h ${T}
32 sed "s:Plugin1 = qt-gui:Plugin1 = kde-gui:" \
33 ${T}/licq.conf.h > ${S}/src/licq.conf.h
34 eend $?
35 else
36 if [ -z "`use qt`" ]
37 then
38 if [ -z "`use gtk`" ]
39 then
40 ebegin "Setting console plugin as default..."
41 cp ${S}/src/licq.conf.h ${T}
42 sed "s:Plugin1 = qt-gui:Plugin1 = console:" \
43 ${T}/licq.conf.h > ${S}/src/licq.conf.h
44 eend $?
45 else
46 ebegin "Setting GTK plugin as default..."
47 cp ${S}/src/licq.conf.h ${T}
48 sed "s:Plugin1 = qt-gui:Plugin1 = jons-gtk-gui:" \
49 ${T}/licq.conf.h > ${S}/src/licq.conf.h
50 eend $?
51 fi
52 fi
53 fi
54 }
55
56 src_compile() {
57
58 local first_conf
59 use ssl || first_conf="${first_conf} --disable-openssl"
60 use socks5 && first_conf="${first_conf} --enable-socks5"
61
62 econf ${first_conf} || die
63 emake || die
64
65
66 # Create the various plug-ins
67
68 # First, the Qt plug-in
69 if [ "`use qt`" ]
70 then
71 # A hack to build against the latest QT:
72 local v
73 for v in /usr/qt/[0-9]
74 do
75 [ -d "${v}" ] && export QTDIR="${v}"
76 done
77 use kde && kde_src_compile myconf
78 use kde && second_conf="${second_conf} ${myconf} --with-kde"
79
80 # note! watch the --prefix=/usr placement;
81 # licq itself installs into /usr, but the
82 # optional kde/qt interface (to which second_conf belogns)
83 # installs its files in $KDE3DIR/{lib,share}/licq
84
85 cd ${S}/plugins/qt-gui
86 einfo "Compiling Qt GUI plug-in"
87 econf ${second_conf} || die
88 emake || die
89 fi
90
91 # Now Jon's GTK plug-in
92 if [ "`use gtk`" ]
93 then
94 cd ${S}/plugins/jons-gtk-gui
95 einfo "Compiling GTK GUI plug-in"
96 econf || die
97 emake || die
98 fi
99
100 # Now the console plug-in
101 if [ "`use ncurses `" ]
102 then
103 cd ${S}/plugins/console
104 einfo "Compiling the Console plug-in"
105 econf || die
106 emake || die
107 fi
108
109 # The Auto-Responder plug-in
110 cd ${S}/plugins/auto-reply
111 einfo "Compiling the Auto-Reply plug-in"
112 econf || die
113 emake || die
114
115 # The Remote Management Service
116 cd ${S}/plugins/rms
117 einfo "Compiling Remote Management Services plug-in"
118 econf || die
119 emake || die
120 }
121
122 src_install() {
123
124 cd ${S}
125 make DESTDIR=${D} install || die
126
127 dodoc ChangeLog INSTALL README*
128
129 # Install the plug-ins
130 if [ "`use qt`" ]
131 then
132 cd ${S}/plugins/qt-gui
133 make DESTDIR=${D} install || die
134 docinto plugins/qt-gui
135 dodoc README*
136
137 # fix bug #12436, see my comment there
138 ## if [ "`use kde`" ]; then
139 ## cd $D/usr/lib/licq
140 ## ln -s licq_kde-gui.la licq_qt-gui.la
141 ## ln -s licq_kde-gui.so licq_qt-gui.so
142 ## fi
143 fi
144
145 if [ "`use gtk`" ]
146 then
147 cd ${S}/plugins/jons-gtk-gui
148 make DESTDIR=${D} install || die
149 docinto plugins/jons-gtk-gui
150 dodoc TODO
151 fi
152
153 if [ "`use ncurses`" ]
154 then
155 cd ${S}/plugins/console
156 make DESTDIR=${D} install || die
157 docinto plugins/console
158 dodoc README
159 fi
160
161
162 cd ${S}/plugins/auto-reply
163 make DESTDIR=${D} install || die
164 docinto plugins/auto-reply
165 dodoc README licq_autoreply.conf
166
167 cd ${S}/plugins/rms
168 make DESTDIR=${D} install || die
169 docinto plugins/rms
170 dodoc README licq_rms.conf
171 }

  ViewVC Help
Powered by ViewVC 1.1.20