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

Contents of /net-im/licq/licq-1.3.0-r7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Oct 1 14:58:52 2005 UTC (12 years, 9 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
* bump and cleanups
(Portage version: 2.0.52-r1)

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

  ViewVC Help
Powered by ViewVC 1.1.20