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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Oct 22 15:28:54 2006 UTC (11 years, 7 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
* #149464 and #151980
(Portage version: 2.1.2_pre3-r6)
 (Signed Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/licq/licq-1.3.4.ebuild,v 1.2 2006/10/19 09:37:22 voxus Exp $
4
5 inherit eutils kde-functions multilib
6
7 DESCRIPTION="ICQ Client with v8 support"
8 HOMEPAGE="http://www.licq.org/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="2"
13 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~ia64 ~amd64"
14 IUSE="ssl socks5 qt kde ncurses crypt msn"
15
16 # we can't have conditional dependencies so "use kde && inherit kde"
17 # won't work -- messes up dep caching.
18
19 # need-kde and their eclass friends inject things into DEPEND. But we only
20 # want them enabled if the kde USE flag is set. We get around this in the
21 # following dep lines:
22 RDEPEND="kde? ( >=kde-base/kdelibs-3.0 )"
23 DEPEND="kde? ( >=kde-base/kdelibs-3.0 )
24 ssl? ( >=dev-libs/openssl-0.9.6 )
25 qt? ( =x11-libs/qt-3* )
26 ncurses? ( sys-libs/ncurses >=dev-libs/cdk-4.9.11.20031210-r1 )
27 crypt? ( >=app-crypt/gpgme-1.0.0 )"
28
29 src_unpack() {
30 unpack ${A}
31
32 cd ${S}
33
34 use ncurses && epatch ${FILESDIR}/1.3.0-suse_bool.patch
35
36 if use kde
37 then
38 # fix for #12436
39 ebegin "Setting kde plugin as default"
40 cp ${S}/src/licq.conf.h ${T}
41 sed "s:Plugin1 = qt-gui:Plugin1 = kde-gui:" \
42 ${T}/licq.conf.h > ${S}/src/licq.conf.h
43 eend $?
44 else
45 if ! use qt
46 then
47 ebegin "Setting console plugin as default..."
48 cp ${S}/src/licq.conf.h ${T}
49 sed "s:Plugin1 = qt-gui:Plugin1 = console:" \
50 ${T}/licq.conf.h > ${S}/src/licq.conf.h
51 eend $?
52 fi
53 fi
54
55 # Install plugins in the correct libdir
56 sed -i -e "s:lib/licq/:$(get_libdir)/licq/:" \
57 ${S}/include/licq_constants.h || die "sed failed"
58 sed -i -e 's:$(prefix)/lib:@libdir@:' \
59 ${S}/plugins/*/src/Makefile.{in,am} || die "sed failed"
60 }
61
62 src_compile() {
63
64 use ssl || myconf="${myconf} --disable-openssl"
65 use socks5 && myconf="${myconf} --enable-socks5"
66
67 if use crypt
68 then
69 myconf="${myconf} --enable-gpgme"
70 else
71 myconf="${myconf} --disable-gpgme"
72 fi
73
74 for n in `echo auto-reply console email msn qt-gui rms`; do
75 cd ${S}/plugins/${n}
76
77 ebegin "Recreating configure in plugins/${n}"
78 rm -f Makefile && make -f Makefile.cvs 2>&1 > /dev/null
79 eend ${?}
80 done
81
82 cd ${S}
83
84 # bug #21009
85 find . -name 'configure' -exec sed -e "s:sed 's/-g:sed 's/^-g:" -i {} \;
86
87 econf ${myconf} || die
88
89 use crypt && {
90 # workaround for gpgme's headers inclusion path
91 sed \
92 -e "s:FAULT_INCLUDES =:FAULT_INCLUDES = -I/usr/include/gpgme:" \
93 -i ${S}/src/Makefile
94 }
95
96 emake || die
97
98 # Create the various plug-ins
99
100 # First, the Qt plug-in
101 if use qt
102 then
103 set-qtdir 3
104 set-kdedir 3
105
106 use kde && myconf="${myconf} --with-kde"
107
108 # Problems finding qt on multilib systems
109 myconf="${myconf} --with-qt-libraries=${QTDIR}/$(get_libdir)"
110
111 # note! watch the --prefix=/usr placement;
112 # licq itself installs into /usr, but the
113 # optional kde/qt interface (to which second_conf belogns)
114 # installs its files in $KDE3DIR/{lib,share}/licq
115
116 cd ${S}/plugins/qt-gui
117 einfo "Compiling Qt GUI plug-in"
118 econf ${myconf} || die
119 emake || die
120 fi
121
122 # Now the console plug-in
123 if use ncurses
124 then
125 cd ${S}/plugins/console
126 einfo "Compiling the Console plug-in"
127 econf || die
128 emake || die
129 fi
130
131 # The Auto-Responder plug-in
132 cd ${S}/plugins/auto-reply
133 einfo "Compiling the Auto-Reply plug-in"
134 econf || die
135 emake || die
136
137 # The Remote Management Service
138 cd ${S}/plugins/rms
139 einfo "Compiling Remote Management Services plug-in"
140 econf || die
141 emake || die
142
143 # MSN PLugin
144 if use msn
145 then
146 cd ${S}/plugins/msn
147 einfo "Compiling MSN plug-in"
148 econf || die
149 emake || die
150 fi
151
152 # Email PLugin
153 cd ${S}/plugins/email
154 einfo "Compiling Email plug-in"
155 econf || die
156 emake || die
157 }
158
159 src_install() {
160 make DESTDIR=${D} install || die
161
162 dodoc ChangeLog INSTALL README* doc/*
163
164 # Install the plug-ins
165 if use qt
166 then
167 cd ${S}/plugins/qt-gui
168 make DESTDIR=${D} install || die
169 docinto plugins/qt-gui
170 dodoc README*
171
172 fi
173
174 if use ncurses
175 then
176 cd ${S}/plugins/console
177 make DESTDIR=${D} install || die
178 docinto plugins/console
179 dodoc README
180 fi
181
182 if use msn
183 then
184 cd ${S}/plugins/msn
185 make DESTDIR=${D} install || die
186 docinto plugins/msn
187 dodoc README
188 fi
189
190 cd ${S}/plugins/auto-reply
191 make DESTDIR=${D} install || die
192 docinto plugins/auto-reply
193 dodoc README licq_autoreply.conf
194
195 cd ${S}/plugins/rms
196 make DESTDIR=${D} install || die
197 docinto plugins/rms
198 dodoc README licq_rms.conf
199
200 exeinto /usr/share/${PN}/upgrade
201 doexe ${S}/upgrade/*
202
203 # fixes bug #22136
204 rm -fR ${D}/var
205 }
206
207 pkg_postinst() {
208 echo
209 ewarn
210 ewarn "If you're upgrading from <=licq-1.3.0 - you have to manually "
211 ewarn "upgrade your existing licq installation. Please backup your "
212 ewarn "settings and look into: /usr/share/licq/upgrade for scripts."
213 ewarn
214 echo
215 }

  ViewVC Help
Powered by ViewVC 1.1.20