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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20