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

Contents of /net-im/licq/licq-1.2.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (show annotations) (download)
Thu Mar 27 15:03:11 2008 UTC (9 years, 5 months ago) by coldwind
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +1 -1 lines
FILE REMOVED
Remove unused versions.
(Portage version: 2.1.4.4)

1 # Copyright 1999-2006 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.2.7.ebuild,v 1.22 2007/07/12 05:34:47 mr_bones_ Exp $
4
5 inherit eutils kde-functions
6
7 DESCRIPTION="ICQ Client with v8 support"
8 HOMEPAGE="http://www.licq.org/"
9 SRC_URI="http://download.sourceforge.net/licq/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="2"
13 KEYWORDS="x86 ppc sparc alpha ia64 ~amd64"
14 IUSE="ssl socks5 qt3 kde ncurses"
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 qt3? ( =x11-libs/qt-3* )
26 ncurses? ( sys-libs/ncurses )"
27
28 src_unpack() {
29 unpack ${A}
30
31 if use kde
32 then
33 # fix for #12436
34 ebegin "Setting kde plugin as default..."
35 cp ${S}/src/licq.conf.h ${T}
36 sed "s:Plugin1 = qt-gui:Plugin1 = kde-gui:" \
37 ${T}/licq.conf.h > ${S}/src/licq.conf.h
38 eend $?
39 else
40 if ! use qt3
41 then
42 ebegin "Setting console plugin as default..."
43 cp ${S}/src/licq.conf.h ${T}
44 sed "s:Plugin1 = qt-gui:Plugin1 = console:" \
45 ${T}/licq.conf.h > ${S}/src/licq.conf.h
46 eend $?
47 fi
48 fi
49 cd ${S}
50 epatch ${FILESDIR}/1.2.7-debugflag.patch
51 epatch ${FILESDIR}/1.2.7-nptl.patch
52 }
53
54 src_compile() {
55 local first_conf
56 use ssl || myconf="${myconf} --disable-openssl"
57 use socks5 && myconf="${myconf} --enable-socks5"
58
59 econf ${myconf} || die
60 emake || die
61
62 # Create the various plug-ins
63
64 # First, the Qt plug-in
65 if use qt3
66 then
67 set-qtdir 3
68 set-kdedir 3
69
70 use kde && myconf="${myconf} --with-kde"
71
72 # note! watch the --prefix=/usr placement;
73 # licq itself installs into /usr, but the
74 # optional kde/qt interface (to which second_conf belogns)
75 # installs its files in $KDE3DIR/{lib,share}/licq
76
77 cd ${S}/plugins/qt-gui
78 einfo "Compiling Qt GUI plug-in"
79 econf ${myconf} || die
80 emake || die
81 fi
82
83 # Now the console plug-in
84 if use ncurses
85 then
86 cd ${S}/plugins/console
87 einfo "Compiling the Console plug-in"
88 econf || die
89 emake || die
90 fi
91
92 # The Auto-Responder plug-in
93 cd ${S}/plugins/auto-reply
94 einfo "Compiling the Auto-Reply plug-in"
95 econf || die
96 emake || die
97
98 # The Remote Management Service
99 cd ${S}/plugins/rms
100 einfo "Compiling Remote Management Services plug-in"
101 econf || die
102 emake || die
103 }
104
105 src_install() {
106 make DESTDIR=${D} install || die
107
108 dodoc ChangeLog INSTALL README* doc/*
109
110 # Install the plug-ins
111 if use qt3
112 then
113 cd ${S}/plugins/qt-gui
114 make DESTDIR=${D} install || die
115 docinto plugins/qt-gui
116 dodoc README*
117
118 # fix bug #12436, see my comment there
119 ## if use kde; then
120 ## cd $D/usr/lib/licq
121 ## ln -s licq_kde-gui.la licq_qt-gui.la
122 ## ln -s licq_kde-gui.so licq_qt-gui.so
123 ## fi
124 fi
125
126 if use ncurses
127 then
128 cd ${S}/plugins/console
129 make DESTDIR=${D} install || die
130 docinto plugins/console
131 dodoc README
132 fi
133
134 cd ${S}/plugins/auto-reply
135 make DESTDIR=${D} install || die
136 docinto plugins/auto-reply
137 dodoc README licq_autoreply.conf
138
139 cd ${S}/plugins/rms
140 make DESTDIR=${D} install || die
141 docinto plugins/rms
142 dodoc README licq_rms.conf
143
144 # fixes bug #22136
145 rm -fR ${D}/$(echo ${D} | awk -F / '{print $2}')
146 }

  ViewVC Help
Powered by ViewVC 1.1.20