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

Contents of /net-im/licq/licq-1.3.0-r4.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, 2 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-r4.ebuild,v 1.2 2005/07/07 04:52:24 caleb 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
12 LICENSE="GPL-2"
13 SLOT="2"
14 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~ia64 ~amd64"
15 IUSE="ssl socks5 qt kde ncurses crypt msn"
16
17 # we can't have conditional dependencies so "use kde && inherit kde"
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? ( >=kde-base/kdelibs-3.0 )"
24 DEPEND="kde? ( >=kde-base/kdelibs-3.0 )
25 ssl? ( >=dev-libs/openssl-0.9.6 )
26 qt? ( =x11-libs/qt-3* )
27 ncurses? ( sys-libs/ncurses =dev-libs/cdk-4.9.11.20031210-r1 )
28 crypt? ( >=app-crypt/gpgme-1.0.0 )"
29
30 src_unpack() {
31 unpack ${A}
32
33 cd ${S} && epatch ${DISTDIR}/${PN}-branch-update-20050315.patch.bz2
34
35 if use msn
36 then
37 epatch ${FILESDIR}/${PV}-msnpacket_sync.patch || die "msn fix failed"
38 fi
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 else
55 if ! use qt
56 then
57 ebegin "Setting console plugin as default..."
58 cp ${S}/src/licq.conf.h ${T}
59 sed "s:Plugin1 = qt-gui:Plugin1 = console:" \
60 ${T}/licq.conf.h > ${S}/src/licq.conf.h
61 eend $?
62 fi
63 fi
64
65 cd ${S}/plugins/qt-gui && \
66 epatch ${FILESDIR}/${PV}-no_stupid_koloboks.patch || \
67 ewarn "Fail to kill koloboks, forget it"
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 econf ${myconf} || die
82 emake || die
83
84 # Create the various plug-ins
85
86 # First, the Qt plug-in
87 if use qt
88 then
89 set-qtdir 3
90 set-kdedir 3
91
92 use kde && myconf="${myconf} --with-kde"
93
94 # note! watch the --prefix=/usr placement;
95 # licq itself installs into /usr, but the
96 # optional kde/qt interface (to which second_conf belogns)
97 # installs its files in $KDE3DIR/{lib,share}/licq
98
99 cd ${S}/plugins/qt-gui
100 einfo "Compiling Qt GUI plug-in"
101 econf ${myconf} || die
102 emake || die
103 fi
104
105 # Now the console plug-in
106 if use ncurses
107 then
108 cd ${S}/plugins/console
109 einfo "Compiling the Console plug-in"
110 econf || die
111 emake || die
112 fi
113
114 # The Auto-Responder plug-in
115 cd ${S}/plugins/auto-reply
116 einfo "Compiling the Auto-Reply plug-in"
117 econf || die
118 emake || die
119
120 # The Remote Management Service
121 cd ${S}/plugins/rms
122 einfo "Compiling Remote Management Services plug-in"
123 econf || die
124 emake || die
125
126 # MSN PLugin
127 if use msn
128 then
129 cd ${S}/plugins/msn
130 einfo "Compiling MSN plug-in"
131 econf || die
132 emake || die
133 fi
134
135 # Email PLugin
136 cd ${S}/plugins/email
137 einfo "Compiling Email plug-in"
138 econf || die
139 emake || die
140 }
141
142 src_install() {
143 make DESTDIR=${D} install || die
144
145 dodoc ChangeLog INSTALL README* doc/*
146
147 # Install the plug-ins
148 if use qt
149 then
150 cd ${S}/plugins/qt-gui
151 make DESTDIR=${D} install || die
152 docinto plugins/qt-gui
153 dodoc README*
154
155 fi
156
157 if use ncurses
158 then
159 cd ${S}/plugins/console
160 make DESTDIR=${D} install || die
161 docinto plugins/console
162 dodoc README
163 fi
164
165 if use msn
166 then
167 cd ${S}/plugins/msn
168 make DESTDIR=${D} install || die
169 docinto plugins/msn
170 dodoc README
171 fi
172
173 cd ${S}/plugins/auto-reply
174 make DESTDIR=${D} install || die
175 docinto plugins/auto-reply
176 dodoc README licq_autoreply.conf
177
178 cd ${S}/plugins/rms
179 make DESTDIR=${D} install || die
180 docinto plugins/rms
181 dodoc README licq_rms.conf
182
183 exeinto /usr/share/${PN}/upgrade
184 doexe ${S}/upgrade/*
185
186 # fixes bug #22136
187 rm -fR ${D}/var
188 }
189
190 pkg_postinst() {
191 echo
192 ewarn
193 ewarn "If you're upgrading from <=licq-1.3.0 - you have to manually "
194 ewarn "upgrade your existing licq installation. Please backup your "
195 ewarn "settings and look into: /usr/share/licq/upgrade for scripts."
196 ewarn
197 echo
198 }

  ViewVC Help
Powered by ViewVC 1.1.20