blob: 5035c43352d2f0664c6218f9d9fed521fe110e38 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/licq/licq-1.8.1.ebuild,v 1.6 2014/08/21 11:43:46 armin76 Exp $
EAPI=5
inherit cmake-utils eutils flag-o-matic
DESCRIPTION="ICQ Client with v8 support"
HOMEPAGE="http://www.licq.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
https://github.com/${PN}-im/${PN}/commit/f288367c758de16fc013c6f4c9851ca85813eb59.patch -> ${P}-qt4-gui_build_fix.patch"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~alpha amd64 ~ia64 ~sparc x86"
IUSE="debug doc linguas_he nls socks5 ssl xosd aosd jabber qt4 msn"
RDEPEND=">=app-crypt/gpgme-1
jabber? ( net-libs/gloox )
qt4? ( dev-qt/qtgui:4 )
socks5? ( net-proxy/dante )
ssl? ( >=dev-libs/openssl-0.9.5a )
xosd? ( x11-libs/xosd )
aosd? ( x11-libs/libaosd )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen[dot] )
nls? ( sys-devel/gettext )
dev-libs/boost"
src_prepare() {
pushd plugins &>/dev/null || die
epatch "${DISTDIR}"/${P}-qt4-gui_build_fix.patch
popd &>/dev/null || die
local licq_plugins="auto-reply icq rms"
use msn && licq_plugins+=" msn"
use xosd && licq_plugins+=" osd"
use aosd && licq_plugins+=" aosd"
use jabber && licq_plugins+=" jabber"
use qt4 && licq_plugins+=" qt4-gui"
local plugins="" x
for x in ${licq_plugins}; do
plugins+=" ${x}\/CMakeLists.txt"
done
sed -i -e "s/file(GLOB cmake_plugins.*$/set(cmake_plugins ${plugins})/" plugins/CMakeLists.txt
}
pkg_setup() {
# crutch
append-flags -pthread
}
src_configure() {
local myopts="-DCMAKE_BUILD_TYPE=$(use debug && echo 'Debug' || echo 'Release')"
mycmakeargs="$myopts
$(cmake-utils_use doc USE_DOXYGEN)
$(cmake-utils_use linguas_he USE_HEBREW)
$(cmake-utils_use nls ENABLE_NLS)
$(cmake-utils_use socks5 USE_SOCKS5)
$(cmake-utils_use ssl USE_OPENSSL)
-DUSE_FIFO=ON
-DBUILD_PLUGINS=ON"
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
dodoc README
docinto doc
dodoc doc/*
use ssl && dodoc README.OPENSSL
exeinto /usr/share/${PN}/upgrade
doexe upgrade/*.pl
}
|