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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Aug 22 19:33:46 2004 UTC (13 years, 2 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
damn gpg..

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

  ViewVC Help
Powered by ViewVC 1.1.20