blob: 4208f9c4ba6cae0441a3d646dcb872cf1f7d0bbe (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
LANGSLONG="pl_PL ru_RU"
inherit eutils qt4-r2 subversion
ESVN_REPO_URI="http://vacuum-im.googlecode.com/svn/trunk"
DESCRIPTION="Qt4 Crossplatform Jabber client."
HOMEPAGE="http://code.google.com/p/vacuum-im"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
PLUGINS="+adiummessagestyle +annotations +autostatus +avatars +bitsofbinary +bookmarks +captchaforms +chatstates +clientinfo +commands +compress +console +dataforms +datastreamsmanager +emoticons +filestreamsmanager +filetransfer +gateways +inbandstreams +iqauth +jabbersearch +messagearchiver +multiuserchat +privacylists +privatestorage +registration +servicediscovery +sessionnegotiation +skinmanager +socksstreams +vcard +xmppuriqueries"
IUSE="${PLUGINS}"
DEPEND=">=x11-libs/qt-core-4.5:4[ssl]
>=x11-libs/qt-gui-4.5:4
>=dev-libs/openssl-0.9.8k
adiummessagestyle? ( >=x11-libs/qt-webkit-4.5:4 )"
RDEPEND="${DEPEND}"
v_use_needs() {
for dep in ${@:2}
do
use ${1} && use !${dep} && ewarn "USE=${1} requires ${dep}, ${1} will be disabled."
done
}
pkg_setup() {
# from revision 931
v_use_needs captchaforms dataforms
v_use_needs commands dataforms
v_use_needs datastreamsmanager dataforms
v_use_needs registration dataforms
v_use_needs sessionnegotiation dataforms
}
src_prepare() {
subversion_wc_info
sed -i -e "s/SVN_REVISION=.*/SVN_REVISION=${ESVN_WC_REVISION}/" \
src/loader/loader.pro
for plugin in ${PLUGINS//+/}
do
if ! use ${plugin}; then
rm -rf {resources,src/plugins,translations/*}/${plugin}{,s}{,.qm}
sed -e "s/${plugin}//" -i src/plugins/plugins.pro || die
fi
done
# linguas
for lang in ${LANGSLONG}; do
if ! use linguas_${lang%_*}; then
sed -i -e "/translations\/${lang}/d" src/translations.inc || die
rm -rf "translations/${lang}/"
fi
done
# we want system zlib
rm -r src/thirdparty/zlib
sed -i -e 's/zlib //' \
src/thirdparty/thirdparty.pro
sed -i -e 's/..\/zlib\/zlib.h/zlib.h/' \
src/thirdparty/minizip/zip.h \
src/thirdparty/minizip/unzip.h
sed -i -e 's/..\/..\/thirdparty\/zlib\/zlib.h/zlib.h/' \
src/plugins/compress/compression.h
sed -i -e 's/-lzlib/-lz/' \
src/utils/utils.pro \
src/plugins/compress/compress.pro
}
src_compile() {
eqmake4 vacuum.pro \
INSTALL_PREFIX="/usr" \
INSTALL_APP_DIR="${PN}" \
INSTALL_LIB_DIR="$(get_libdir)" \
INSTALL_RES_DIR="share"\
|| die "eqmake4 failed"
emake || die "emake failed"
}
src_install() {
emake INSTALL_ROOT="${D}" install || die "emake install failed"
}
|