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

Contents of /net-im/licq/licq-1.2.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Oct 19 15:13:57 2003 UTC (14 years, 7 months ago) by lanius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
changelog:P

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

  ViewVC Help
Powered by ViewVC 1.1.20