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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Mar 23 13:24:04 2005 UTC (13 years, 3 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
cleanup
(Portage version: 2.0.51.19)

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-r2.ebuild,v 1.1 2005/03/18 15:11:27 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
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.0.0 )
27 ncurses? ( sys-libs/ncurses =dev-libs/cdk-4.9.11.20031210-r1 )
28 crypt? ( >=app-crypt/gpgme-1.0.0 )"
29
30 S=${WORKDIR}/${P}
31
32 src_unpack() {
33 unpack ${A}
34
35 cd ${S} && epatch ${DISTDIR}/${PN}-branch-update-20050315.patch.bz2
36
37 if use kde
38 then
39 # fix for #12436
40 inherit
41 ebegin "Setting kde plugin as default"
42 cp ${S}/src/licq.conf.h ${T}
43 sed "s:Plugin1 = qt-gui:Plugin1 = kde-gui:" \
44 ${T}/licq.conf.h > ${S}/src/licq.conf.h
45 eend $?
46 else
47 if ! use qt
48 then
49 ebegin "Setting console plugin as default..."
50 cp ${S}/src/licq.conf.h ${T}
51 sed "s:Plugin1 = qt-gui:Plugin1 = console:" \
52 ${T}/licq.conf.h > ${S}/src/licq.conf.h
53 eend $?
54 fi
55 fi
56
57 cd ${S}/plugins/qt-gui && \
58 epatch ${FILESDIR}/${PV}-no_stupid_koloboks.patch || \
59 ewarn "Fail to kill koloboks, forget it"
60 }
61
62 src_compile() {
63 local first_conf
64 use ssl || myconf="${myconf} --disable-openssl"
65 use socks5 && myconf="${myconf} --enable-socks5"
66 if use crypt
67 then
68 myconf="${myconf} --enable-gpgme"
69 else
70 myconf="${myconf} --disable-gpgme"
71 fi
72
73 econf ${myconf} || die
74 emake || die
75
76 # Create the various plug-ins
77
78 # First, the Qt plug-in
79 if use qt
80 then
81 set-qtdir 3
82 set-kdedir 3
83
84 use kde && myconf="${myconf} --with-kde"
85
86 # note! watch the --prefix=/usr placement;
87 # licq itself installs into /usr, but the
88 # optional kde/qt interface (to which second_conf belogns)
89 # installs its files in $KDE3DIR/{lib,share}/licq
90
91 cd ${S}/plugins/qt-gui
92 einfo "Compiling Qt GUI plug-in"
93 econf ${myconf} || die
94 emake || die
95 fi
96
97 # Now the console plug-in
98 if use ncurses
99 then
100 cd ${S}/plugins/console
101 einfo "Compiling the Console plug-in"
102 econf || die
103 emake || die
104 fi
105
106 # The Auto-Responder plug-in
107 cd ${S}/plugins/auto-reply
108 einfo "Compiling the Auto-Reply plug-in"
109 econf || die
110 emake || die
111
112 # The Remote Management Service
113 cd ${S}/plugins/rms
114 einfo "Compiling Remote Management Services plug-in"
115 econf || die
116 emake || die
117
118 # MSN PLugin
119 if use msn
120 then
121 cd ${S}/plugins/msn
122 einfo "Compiling MSN plug-in"
123 econf || die
124 emake || die
125 fi
126
127 # Email PLugin
128 cd ${S}/plugins/email
129 einfo "Compiling Email plug-in"
130 econf || die
131 emake || die
132 }
133
134 src_install() {
135 make DESTDIR=${D} install || die
136
137 dodoc ChangeLog INSTALL README* doc/*
138
139 # Install the plug-ins
140 if use qt
141 then
142 cd ${S}/plugins/qt-gui
143 make DESTDIR=${D} install || die
144 docinto plugins/qt-gui
145 dodoc README*
146
147 fi
148
149 if use ncurses
150 then
151 cd ${S}/plugins/console
152 make DESTDIR=${D} install || die
153 docinto plugins/console
154 dodoc README
155 fi
156
157
158 cd ${S}/plugins/auto-reply
159 make DESTDIR=${D} install || die
160 docinto plugins/auto-reply
161 dodoc README licq_autoreply.conf
162
163 cd ${S}/plugins/rms
164 make DESTDIR=${D} install || die
165 docinto plugins/rms
166 dodoc README licq_rms.conf
167
168 exeinto /usr/share/${PN}/upgrade
169 doexe ${S}/upgrade/*
170
171 # fixes bug #22136
172 rm -fR ${D}/var
173 }
174
175 pkg_postinst() {
176 echo
177 ewarn
178 ewarn "If you're upgrading from <=licq-1.3.0 - you have to manually "
179 ewarn "upgrade your existing licq installation. Please backup your "
180 ewarn "settings and look into: /usr/share/licq/upgrade for scripts."
181 ewarn
182 echo
183 }

  ViewVC Help
Powered by ViewVC 1.1.20