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

Contents of /net-im/licq/licq-1.3.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Dec 11 15:11:08 2009 UTC (8 years, 5 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
amd64 stable wrt #274070
(Portage version: 2.2_rc58/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.5-r1.ebuild,v 1.7 2009/05/31 11:05:13 scarabeus Exp $
4
5 EAPI="1"
6 WANT_AUTOMAKE=1.9
7
8 inherit autotools eutils kde-functions multilib
9
10 DESCRIPTION="ICQ Client with v8 support"
11 HOMEPAGE="http://www.licq.org/"
12 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="2"
16 KEYWORDS="alpha amd64 ia64 ppc sparc x86 ~x86-fbsd"
17 IUSE="ssl socks5 qt3 kde ncurses crypt msn debug"
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:3.5 )"
26 DEPEND="kde? ( >=kde-base/kdelibs-3.0:3.5 )
27 ssl? ( >=dev-libs/openssl-0.9.6 )
28 qt3? ( =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 cd "${S}"
35
36 epatch "${FILESDIR}"/${P}-logonfix.patch
37 epatch "${FILESDIR}"/${P}-prevent-dos.patch
38 epatch "${FILESDIR}"/${P}-gcc43.patch
39
40 use ncurses && epatch "${FILESDIR}"/1.3.0-suse_bool.patch
41
42 if use kde
43 then
44 # fix for #12436
45 ebegin "Setting kde plugin as default"
46 cp "${S}"/src/licq.conf.h "${T}"
47 sed "s:Plugin1 = qt-gui:Plugin1 = kde-gui:" \
48 "${T}"/licq.conf.h > "${S}"/src/licq.conf.h
49 eend $?
50 else
51 if ! use qt3
52 then
53 ebegin "Setting console plugin as default..."
54 cp "${S}"/src/licq.conf.h "${T}"
55 sed "s:Plugin1 = qt-gui:Plugin1 = console:" \
56 "${T}"/licq.conf.h > "${S}"/src/licq.conf.h
57 eend $?
58 fi
59 fi
60
61 # Install plugins in the correct libdir
62 sed -i -e "s:lib/licq/:$(get_libdir)/licq/:" \
63 "${S}"/include/licq_constants.h || die "sed failed"
64 sed -i -e 's:$(prefix)/lib:@libdir@:' \
65 "${S}"/plugins/*/src/Makefile.{in,am} || die "sed failed"
66
67 #Autoconf >=2.62 and libtool >2 requires this. Sigh.
68 rm -f $(find . -name 'acinclude.m4')
69 cp admin/acinclude.m4{.in,}
70 cp acinclude.m4{.in,}
71 AT_M4DIR="admin" eautoreconf
72
73 AT_M4DIR="../../admin"
74 for plugin in auto-reply console email msn rms; do
75 cd "${S}"/plugins/${plugin}
76 cp acinclude.m4{.in,} || die "acinclude not found"
77 eautoreconf
78 done
79 cd "${S}"/plugins/qt-gui
80 cp acinclude.m4{.in,} || die "acinclude not found"
81 eaclocal
82 eautomake
83 perl am_edit {src/,share/,po/}Makefile.in
84 eautoconf
85 }
86
87 src_compile() {
88 local myconf
89 use ssl || myconf="${myconf} --disable-openssl"
90 use socks5 && myconf="${myconf} --enable-socks5"
91 use debug && myconf="${myconf} --enable-debug"
92
93 myconf="${myconf} $(use_enable crypt gpgme)"
94
95 cd "${S}"
96
97 # bug #21009
98 find . -name 'configure' -exec sed -e "s:sed 's/-g:sed 's/^-g:" -i {} \;
99
100 econf ${myconf} || die "econf failed"
101
102 use crypt && {
103 # workaround for gpgme's headers inclusion path
104 sed \
105 -e "s:FAULT_INCLUDES =:FAULT_INCLUDES = -I/usr/include/gpgme:" \
106 -i "${S}"/src/Makefile
107 }
108
109 emake || die "emake failed"
110
111 # Create the various plug-ins
112
113 # First, the Qt plug-in
114 if use qt3
115 then
116 set-qtdir 3
117 set-kdedir 3
118
119 use kde && myconf="${myconf} --with-kde"
120
121 # Problems finding qt on multilib systems
122 myconf="${myconf} --with-qt-libraries=${QTDIR}/$(get_libdir)"
123
124 # note! watch the --prefix=/usr placement;
125 # licq itself installs into /usr, but the
126 # optional kde/qt interface (to which second_conf belogns)
127 # installs its files in $KDE3DIR/{lib,share}/licq
128
129 cd "${S}"/plugins/qt-gui
130 einfo "Compiling Qt GUI plug-in"
131 econf ${myconf} || die
132 emake || die
133 fi
134
135 # Now the console plug-in
136 if use ncurses
137 then
138 cd "${S}"/plugins/console
139 einfo "Compiling the Console plug-in"
140 econf || die
141 emake || die
142 fi
143
144 for plugin in auto-reply rms msn email ; do
145 cd "${S}"/plugins/${plugin}
146 einfo "Compiling '${plugin}' plug-in"
147 econf || die "econf failed for ${plugin} plugin"
148 emake || die "emake failed for ${plugin} plugin"
149 done
150 }
151
152 src_install() {
153 emake DESTDIR="${D}" install || die "emake install failed"
154
155 dodoc ChangeLog INSTALL README* doc/*
156
157 # Install the plug-ins
158 if use qt3
159 then
160 cd "${S}"/plugins/qt-gui
161 emake DESTDIR="${D}" install || die
162 docinto plugins/qt-gui
163 dodoc README*
164
165 fi
166
167 if use ncurses
168 then
169 cd "${S}"/plugins/console
170 emake DESTDIR="${D}" install || die
171 docinto plugins/console
172 dodoc README
173 fi
174
175 if use msn
176 then
177 cd "${S}"/plugins/msn
178 make DESTDIR="${D}" install || die
179 docinto plugins/msn
180 dodoc README
181 fi
182
183 cd "${S}"/plugins/auto-reply
184 emake DESTDIR="${D}" install || die
185 docinto plugins/auto-reply
186 dodoc README licq_autoreply.conf
187
188 cd "${S}"/plugins/rms
189 make DESTDIR="${D}" install || die
190 docinto plugins/rms
191 dodoc README licq_rms.conf
192
193 exeinto /usr/share/${PN}/upgrade
194 doexe "${S}"/upgrade/*
195
196 # fixes bug #22136 and #149464
197 rm -fR "${D}"/var
198 }
199
200 pkg_postinst() {
201 echo
202 ewarn
203 ewarn "If you're upgrading from <=licq-1.3.0 - you have to manually "
204 ewarn "upgrade your existing licq installation. Please backup your "
205 ewarn "settings and look into: /usr/share/licq/upgrade for scripts."
206 ewarn
207 echo
208 }

  ViewVC Help
Powered by ViewVC 1.1.20