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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 21 19:29:56 2004 UTC (13 years, 3 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
dummy fix for gcc3.4, closes #61138

1 # Copyright 1999-2004 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_pre-r2.ebuild,v 1.1 2004/08/20 19:47:10 voxus Exp $
4
5 inherit eutils
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 RESTRICT="nomirror"
11
12 LICENSE="GPL-2"
13 SLOT="2"
14 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~ia64 ~amd64"
15 IUSE="ssl socks5 qt kde ncurses crypt"
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 )
28 crypt? ( =app-crypt/gpgme-0.3.14-r1 )"
29
30 S=${WORKDIR}/${PN}-${PV/_pre/-PRE}
31
32 src_unpack() {
33 unpack ${A}
34
35 if use kde
36 then
37 # fix for #12436
38 ebegin "Setting kde plugin as default..."
39 cp ${S}/src/licq.conf.h ${T}
40 sed "s:Plugin1 = qt-gui:Plugin1 = kde-gui:" \
41 ${T}/licq.conf.h > ${S}/src/licq.conf.h
42 eend $?
43 else
44 if ! use qt
45 then
46 ebegin "Setting console plugin as default..."
47 cp ${S}/src/licq.conf.h ${T}
48 sed "s:Plugin1 = qt-gui:Plugin1 = console:" \
49 ${T}/licq.conf.h > ${S}/src/licq.conf.h
50 eend $?
51 fi
52 fi
53
54 cd ${S}/src && epatch ${FILESDIR}/${PV/_pre/}-upgradepath.patch || \
55 ewarn "Fail to fix upgrade path, forget it"
56
57 cd ${S}/plugins/qt-gui && \
58 epatch ${FILESDIR}/1.3.0-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} --disable-gpgme"
69 epatch ${FILESDIR}/1.3.0-gpgme3_hack.patch
70 fi
71
72 econf ${myconf} || die
73 emake || die
74
75 # Create the various plug-ins
76
77 # First, the Qt plug-in
78 if use qt
79 then
80 # A hack to build against the latest QT:
81 local v
82 for v in /usr/qt/[0-9]
83 do
84 [ -d "${v}" ] && export QTDIR="${v}"
85 done
86 use kde && kde_src_compile myconf
87 use kde && myconf="${myconf} --with-kde"
88
89 # note! watch the --prefix=/usr placement;
90 # licq itself installs into /usr, but the
91 # optional kde/qt interface (to which second_conf belogns)
92 # installs its files in $KDE3DIR/{lib,share}/licq
93
94 cd ${S}/plugins/qt-gui
95 einfo "Compiling Qt GUI plug-in"
96 econf ${myconf} || die
97 emake || die
98 fi
99
100 # Now the console plug-in
101 if use ncurses
102 then
103 cd ${S}/plugins/console
104 einfo "Compiling the Console plug-in"
105 econf || die
106 emake || die
107 fi
108
109 # The Auto-Responder plug-in
110 cd ${S}/plugins/auto-reply
111 einfo "Compiling the Auto-Reply plug-in"
112 econf || die
113 emake || die
114
115 # The Remote Management Service
116 cd ${S}/plugins/rms
117 einfo "Compiling Remote Management Services plug-in"
118 econf || die
119 emake || die
120 }
121
122 src_install() {
123 make DESTDIR=${D} install || die
124
125 dodoc ChangeLog INSTALL README* doc/*
126
127 # Install the plug-ins
128 if use qt
129 then
130 cd ${S}/plugins/qt-gui
131 make DESTDIR=${D} install || die
132 docinto plugins/qt-gui
133 dodoc README*
134
135 fi
136
137 if use ncurses
138 then
139 cd ${S}/plugins/console
140 make DESTDIR=${D} install || die
141 docinto plugins/console
142 dodoc README
143 fi
144
145
146 cd ${S}/plugins/auto-reply
147 make DESTDIR=${D} install || die
148 docinto plugins/auto-reply
149 dodoc README licq_autoreply.conf
150
151 cd ${S}/plugins/rms
152 make DESTDIR=${D} install || die
153 docinto plugins/rms
154 dodoc README licq_rms.conf
155
156 insinto /usr/share/${PN}/upgrade
157 doins ${S}/upgrade/*
158
159 # fixes bug #22136
160 rm -fR ${D}/var
161 }
162
163 pkg_postinst() {
164 echo
165 ewarn
166 ewarn "If you're upgrading from <=licq-1.3.0 - you have to manually "
167 ewarn "upgrade your existing licq installation. Please backup your "
168 ewarn "settings and run: /usr/share/licq/upgrade/upgrade-1.3.0.sh"
169 ewarn
170 echo
171 }

  ViewVC Help
Powered by ViewVC 1.1.20