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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Aug 20 19:47:10 2004 UTC (13 years, 2 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
gpgme fix and kill-koloboks patch

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-r1.ebuild,v 1.1 2004/08/20 15:10:33 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
58 src_compile() {
59 local first_conf
60 use ssl || myconf="${myconf} --disable-openssl"
61 use socks5 && myconf="${myconf} --enable-socks5"
62 use crypt || myconf="${myconf} --disable-gpgme"
63
64 econf ${myconf} || die
65 emake || die
66
67 # Create the various plug-ins
68
69 # First, the Qt plug-in
70 if use qt
71 then
72 # A hack to build against the latest QT:
73 local v
74 for v in /usr/qt/[0-9]
75 do
76 [ -d "${v}" ] && export QTDIR="${v}"
77 done
78 use kde && kde_src_compile myconf
79 use kde && myconf="${myconf} --with-kde"
80
81 # note! watch the --prefix=/usr placement;
82 # licq itself installs into /usr, but the
83 # optional kde/qt interface (to which second_conf belogns)
84 # installs its files in $KDE3DIR/{lib,share}/licq
85
86 cd ${S}/plugins/qt-gui
87 einfo "Compiling Qt GUI plug-in"
88 econf ${myconf} || die
89 emake || die
90 fi
91
92 # Now the console plug-in
93 if use ncurses
94 then
95 cd ${S}/plugins/console
96 einfo "Compiling the Console plug-in"
97 econf || die
98 emake || die
99 fi
100
101 # The Auto-Responder plug-in
102 cd ${S}/plugins/auto-reply
103 einfo "Compiling the Auto-Reply plug-in"
104 econf || die
105 emake || die
106
107 # The Remote Management Service
108 cd ${S}/plugins/rms
109 einfo "Compiling Remote Management Services plug-in"
110 econf || die
111 emake || die
112 }
113
114 src_install() {
115 make DESTDIR=${D} install || die
116
117 dodoc ChangeLog INSTALL README* doc/*
118
119 # Install the plug-ins
120 if use qt
121 then
122 cd ${S}/plugins/qt-gui
123 make DESTDIR=${D} install || die
124 docinto plugins/qt-gui
125 dodoc README*
126
127 fi
128
129 if use ncurses
130 then
131 cd ${S}/plugins/console
132 make DESTDIR=${D} install || die
133 docinto plugins/console
134 dodoc README
135 fi
136
137
138 cd ${S}/plugins/auto-reply
139 make DESTDIR=${D} install || die
140 docinto plugins/auto-reply
141 dodoc README licq_autoreply.conf
142
143 cd ${S}/plugins/rms
144 make DESTDIR=${D} install || die
145 docinto plugins/rms
146 dodoc README licq_rms.conf
147
148 insinto /usr/share/${PN}/upgrade
149 doins ${S}/upgrade/*
150
151 # fixes bug #22136
152 rm -fR ${D}/var
153 }
154
155 pkg_postinst() {
156 echo
157 ewarn
158 ewarn "If you're upgrading from <=licq-1.3.0 - you have to manually "
159 ewarn "upgrade your existing licq installation. Please backup your "
160 ewarn "settings and run: /usr/share/licq/upgrade/upgrade-1.3.0.sh"
161 ewarn
162 echo
163 }

  ViewVC Help
Powered by ViewVC 1.1.20