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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Jul 31 22:11:34 2009 UTC (11 years, 1 month ago) by chainsaw
Branch: MAIN
Changes since 1.6: +2 -2 lines
Hey, look overthere!
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.6.ebuild,v 1.6 2009/07/07 21:25:39 fauli Exp $
4
5 EAPI="1"
6
7 CMAKE_USE_DIR="${S}/plugins/qt4-gui"
8 inherit eutils kde-functions multilib cmake-utils
9
10 DESCRIPTION="ICQ Client with v8 support"
11 HOMEPAGE="http://www.licq.org/"
12 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="2"
16 KEYWORDS="alpha amd64 ia64 ~ppc sparc x86"
17 IUSE="crypt debug kde msn ncurses nls qt3 qt4 socks5 ssl xosd"
18
19 # we use kde as KDE4
20 RDEPEND="kde? (
21 qt3? ( kde-base/kdelibs:3.5 )
22 )
23 ssl? ( dev-libs/openssl )
24 qt3? ( x11-libs/qt:3 )
25 qt4? ( x11-libs/qt-gui:4 )
26 nls? ( sys-devel/gettext )
27 ncurses? ( sys-libs/ncurses dev-libs/cdk )
28 crypt? ( app-crypt/gpgme:1 )
29 xosd? ( x11-libs/xosd )"
30 DEPEND="${RDEPEND}
31 dev-libs/boost"
32
33 _generate_plugins_directories() {
34 PLUGINS="auto-reply email rms"
35 use msn && PLUGINS="${PLUGINS} msn"
36 use ncurses && PLUGINS="${PLUGINS} console"
37 use xosd && PLUGINS="${PLUGINS} osd"
38 # QT4 is something extra. Uses cmake.
39 use qt4 && PLUGINS_CMAKE="${PLUGINS_CMAKE} qt4-gui"
40 use qt3 && PLUGINS="${PLUGINS} qt-gui"
41 elog "I will generate these plugins/frontends for licq:"
42 elog "${PLUGINS} ${PLUGINS_CMAKE}"
43 }
44
45 pkg_setup() {
46 _generate_plugins_directories
47 }
48
49 src_compile() {
50 local myconf myconf2 plugin
51 # global config setup for automake
52 myconf="$(use_enable crypt gpgme)
53 $(use_enable ssl openssl)
54 $(use_enable socks5)
55 $(use_enable debug)
56 $(use_enable nls)"
57
58 einfo "Compiling Licq core."
59 econf ${myconf} || die "econf failed"
60 emake || die "emake failed"
61
62 for plugin in ${PLUGINS}; do
63 cd "${S}"/plugins/"${plugin}"
64 einfo "Compiling Licq: \"${plugin}\"."
65 if use qt3; then
66 set-qtdir 3
67 set-kdedir 3
68 use kde && myconf2="${myconf} --with-kde"
69 myconf2="${myconf2} --with-qt-libraries=${QTDIR}/$(get_libdir)"
70 fi
71 econf ${myconf} ${myconf2} || die "econf failed"
72 emake || die "emake failed"
73 done
74 # we like qt4 it uses cmake
75 if use qt4; then
76 einfo "Compiling Licq: \"qt4-gui\"."
77 # Possible error because of one tiny issue we introduce in kde
78 # it is called kdeprefix and in that case you can't be sure where it
79 # find kde stuff. This is working only for -kdeprefix so someone will
80 # need to fix this later
81 # kde not yet workie
82 # use kde && myconf2="${myconf2} -DWITH_KDE=1"
83 use kde && ewarn "Sorry but kde4 support is duped and not working so not
84 enabling for now"
85 cmake-utils_src_compile
86 fi
87 }
88
89 src_install() {
90 # install core
91 einfo "Installing Licq core."
92 emake DESTDIR="${D}" install || die "emake install failed"
93 dodoc ChangeLog INSTALL README* doc/*
94 # Install the plug-ins
95 for plugin in ${PLUGINS}; do
96 cd "${S}"/plugins/"${plugin}"
97 einfo "Installing Licq: \"${plugin}\"."
98 emake DESTDIR="${D}" install || die "emake install failed"
99 dodoc README* *.conf
100 done
101 if use qt4; then
102 einfo "Installing Licq: \"qt4-gui\"."
103 cmake-utils_src_install
104 docinto plugins/qt4-gui
105 dodoc doc/README*
106 fi
107
108 exeinto /usr/share/${PN}/upgrade
109 doexe "${S}"/upgrade/*
110
111 # fixes bug #22136 and #149464
112 rm -fR "${D}"/var
113 }

  ViewVC Help
Powered by ViewVC 1.1.20