blob: baa4a8a79c9f7f492ee7d5d8ce8ff01187db8811 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/licq/licq-1.3.9.ebuild,v 1.2 2013/03/02 22:52:38 hwoarang Exp $
EAPI=2
CMAKE_USE_DIR="${S}/plugins/qt4-gui"
inherit cmake-utils eutils
DESCRIPTION="ICQ Client with v8 support"
HOMEPAGE="http://www.licq.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="debug linguas_he ncurses msn nls crypt socks5 ssl qt4 xosd"
RDEPEND="crypt? ( >=app-crypt/gpgme-1 )
ncurses? ( sys-libs/ncurses
dev-libs/cdk )
ssl? ( >=dev-libs/openssl-0.9.5a )
qt4? ( dev-qt/qtgui:4 )
xosd? ( x11-libs/xosd )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
dev-libs/boost"
pkg_setup() {
licq_plugins="auto-reply email rms"
use ncurses && licq_plugins="${licq_plugins} console"
use msn && licq_plugins="${licq_plugins} msn"
use xosd && licq_plugins="${licq_plugins} osd"
}
src_configure() {
econf \
$(use_enable linguas_he hebrew) \
--disable-dependency-tracking \
$(use_enable debug) \
$(use_enable socks5) \
$(use_enable ssl openssl) \
$(use_enable nls)
local x
for x in ${licq_plugins}; do
cd "${S}"/plugins/${x}
econf
done
if use qt4; then
# http://licq.org/ticket/1662
mycmakeargs="${mycmakeargs}
-DWITH_KDE=OFF"
cmake-utils_src_configure
fi
}
src_compile() {
emake || die
local x
for x in ${licq_plugins}; do
cd "${S}"/plugins/${x}
emake || die
done
use qt4 && cmake-utils_src_compile
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc README
docinto doc
dodoc doc/*
use crypt && dodoc README.GPG
use ssl && dodoc README.OPENSSL
exeinto /usr/share/${PN}/upgrade
doexe upgrade/*.pl || die
local x
for x in ${licq_plugins}; do
cd "${S}"/plugins/${x}
emake DESTDIR="${D}" install || die
docinto ${x}
dodoc README* *.conf
done
if use qt4; then
docinto qt4
DOCS="README" cmake-utils_src_install
fi
rm -rf "${D}"/var
}
|