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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Aug 20 15:10:33 2004 UTC (13 years, 10 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
added gpgme support (crypt use flag)

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

  ViewVC Help
Powered by ViewVC 1.1.20