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

Contents of /net-im/licq/licq-1.3.2_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Oct 21 16:08:34 2005 UTC (12 years, 8 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
* bump
(Portage version: 2.0.53_rc6)

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.2_rc1.ebuild,v 1.1 2005/10/01 14:58:52 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/_rc/RC}.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 S="${WORKDIR}/${P/_rc/RC}"
30
31 src_unpack() {
32 unpack ${A}
33
34 cd ${S}
35
36 use ncurses && epatch ${FILESDIR}/1.3.0-suse_bool.patch
37
38 if use kde
39 then
40 # fix for #12436
41 inherit
42 ebegin "Setting kde plugin as default"
43 cp ${S}/src/licq.conf.h ${T}
44 sed "s:Plugin1 = qt-gui:Plugin1 = kde-gui:" \
45 ${T}/licq.conf.h > ${S}/src/licq.conf.h
46 eend $?
47 else
48 if ! use qt
49 then
50 ebegin "Setting console plugin as default..."
51 cp ${S}/src/licq.conf.h ${T}
52 sed "s:Plugin1 = qt-gui:Plugin1 = console:" \
53 ${T}/licq.conf.h > ${S}/src/licq.conf.h
54 eend $?
55 fi
56 fi
57
58 # Install plugins in the correct libdir
59 sed -i -e "s:lib/licq/:$(get_libdir)/licq/:" \
60 ${S}/include/licq_constants.h || die "sed failed"
61 sed -i -e 's:$(prefix)/lib:@libdir@:' \
62 ${S}/plugins/*/src/Makefile.{in,am} || die "sed failed"
63 }
64
65 src_compile() {
66
67 use ssl || myconf="${myconf} --disable-openssl"
68 use socks5 && myconf="${myconf} --enable-socks5"
69
70 if use crypt
71 then
72 myconf="${myconf} --enable-gpgme"
73 else
74 myconf="${myconf} --disable-gpgme"
75 fi
76
77 for n in `echo auto-reply console email msn osd qt-gui rms`; do
78 cd ${S}/plugins/${n}
79
80 ebegin "Recreating configure in plugins/${n}"
81 rm -f Makefile && make -f Makefile.cvs 2>&1 > /dev/null
82 eend ${?}
83 done
84
85 cd ${S}
86
87 # bug #21009
88 find . -name 'configure' -exec sed -e "s:sed 's/-g:sed 's/^-g:" -i {} \;
89
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 econf ${myconf} || die
122 emake || die
123 fi
124
125 # Now the console plug-in
126 if use ncurses
127 then
128 cd ${S}/plugins/console
129 einfo "Compiling the Console plug-in"
130 econf || die
131 emake || die
132 fi
133
134 # The Auto-Responder plug-in
135 cd ${S}/plugins/auto-reply
136 einfo "Compiling the Auto-Reply plug-in"
137 econf || die
138 emake || die
139
140 # The Remote Management Service
141 cd ${S}/plugins/rms
142 einfo "Compiling Remote Management Services plug-in"
143 econf || die
144 emake || die
145
146 # MSN PLugin
147 if use msn
148 then
149 cd ${S}/plugins/msn
150 einfo "Compiling MSN plug-in"
151 econf || die
152 emake || die
153 fi
154
155 # Email PLugin
156 cd ${S}/plugins/email
157 einfo "Compiling Email plug-in"
158 econf || die
159 emake || die
160 }
161
162 src_install() {
163 make DESTDIR=${D} install || die
164
165 dodoc ChangeLog INSTALL README* doc/*
166
167 # Install the plug-ins
168 if use qt
169 then
170 cd ${S}/plugins/qt-gui
171 make DESTDIR=${D} install || die
172 docinto plugins/qt-gui
173 dodoc README*
174
175 fi
176
177 if use ncurses
178 then
179 cd ${S}/plugins/console
180 make DESTDIR=${D} install || die
181 docinto plugins/console
182 dodoc README
183 fi
184
185 if use msn
186 then
187 cd ${S}/plugins/msn
188 make DESTDIR=${D} install || die
189 docinto plugins/msn
190 dodoc README
191 fi
192
193 cd ${S}/plugins/auto-reply
194 make DESTDIR=${D} install || die
195 docinto plugins/auto-reply
196 dodoc README licq_autoreply.conf
197
198 cd ${S}/plugins/rms
199 make DESTDIR=${D} install || die
200 docinto plugins/rms
201 dodoc README licq_rms.conf
202
203 exeinto /usr/share/${PN}/upgrade
204 doexe ${S}/upgrade/*
205
206 # fixes bug #22136
207 rm -fR ${D}/var
208 }
209
210 pkg_postinst() {
211 echo
212 ewarn
213 ewarn "If you're upgrading from <=licq-1.3.0 - you have to manually "
214 ewarn "upgrade your existing licq installation. Please backup your "
215 ewarn "settings and look into: /usr/share/licq/upgrade for scripts."
216 ewarn
217 echo
218 }

  ViewVC Help
Powered by ViewVC 1.1.20