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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Oct 29 16:13:13 2008 UTC (9 years, 6 months ago) by tester
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Version bump, bug #237816, remove old
(Portage version: 2.1.4.5)

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.2.ebuild,v 1.7 2006/08/14 15:33:29 genstef 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="alpha amd64 ia64 ~ppc ~sparc ~x86"
14 IUSE="ssl socks5 qt3 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 qt3? ( =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 qt3
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 qt3
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 epatch ${FILESDIR}/${PV}-email_typo.patch
155 einfo "Compiling Email plug-in"
156 econf || die
157 emake || die
158 }
159
160 src_install() {
161 make DESTDIR=${D} install || die
162
163 dodoc ChangeLog INSTALL README* doc/*
164
165 # Install the plug-ins
166 if use qt3
167 then
168 cd ${S}/plugins/qt-gui
169 make DESTDIR=${D} install || die
170 docinto plugins/qt-gui
171 dodoc README*
172
173 fi
174
175 if use ncurses
176 then
177 cd ${S}/plugins/console
178 make DESTDIR=${D} install || die
179 docinto plugins/console
180 dodoc README
181 fi
182
183 if use msn
184 then
185 cd ${S}/plugins/msn
186 make DESTDIR=${D} install || die
187 docinto plugins/msn
188 dodoc README
189 fi
190
191 cd ${S}/plugins/auto-reply
192 make DESTDIR=${D} install || die
193 docinto plugins/auto-reply
194 dodoc README licq_autoreply.conf
195
196 cd ${S}/plugins/rms
197 make DESTDIR=${D} install || die
198 docinto plugins/rms
199 dodoc README licq_rms.conf
200
201 exeinto /usr/share/${PN}/upgrade
202 doexe ${S}/upgrade/*
203
204 # fixes bug #22136
205 rm -fR ${D}/$(echo ${D} | awk -F / '{print $2}')
206 }
207
208 pkg_postinst() {
209 echo
210 ewarn
211 ewarn "If you're upgrading from <=licq-1.3.0 - you have to manually "
212 ewarn "upgrade your existing licq installation. Please backup your "
213 ewarn "settings and look into: /usr/share/licq/upgrade for scripts."
214 ewarn
215 echo
216 }

  ViewVC Help
Powered by ViewVC 1.1.20