blob: c93964864bd74c2aae04c7e03a0f1ff8744d5c58 (
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/psi/psi-0.13.ebuild,v 1.3 2009/08/02 14:50:45 jer Exp $
EAPI="2"
inherit eutils qt4 multilib
MY_P="${P/_rc/-rc}"
LANGPACK_VER="20090217"
DESCRIPTION="Qt4 Jabber client, with Licq-like interface"
HOMEPAGE="http://psi-im.org/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
mirror://gentoo/${PN}-langs-${LANGPACK_VER}.tar.bz2
extras? ( mirror://gentoo/${PN}-extra-patches-r807.tar.bz2
mirror://gentoo/${PN}-extra-iconsets-r807.tar.bz2 )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86 ~x86-fbsd"
IUSE="crypt dbus debug doc extras jingle spell ssl xscreensaver"
RESTRICT="test"
LANGS="cs de eo es_ES fr it mk pl pt_BR ru uk ur_PK vi zh zh_TW"
for LNG in ${LANGS}; do
IUSE="${IUSE} linguas_${LNG}"
#SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm"
done
RDEPEND=">=x11-libs/qt-gui-4.4:4[qt3support,dbus?]
>=app-crypt/qca-2.0.2:2
spell? ( app-text/aspell )
xscreensaver? ( x11-libs/libXScrnSaver )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
PDEPEND="crypt? ( app-crypt/qca-gnupg:2 )
jingle? ( net-im/psimedia )
ssl? ( app-crypt/qca-ossl:2 )"
S=${WORKDIR}/${MY_P}
src_prepare() {
if use extras; then
# some patches from psi+ project http://code.google.com/p/psi-dev
ewarn "You're about to build heavily patched version of Psi called Psi+."
ewarn "It has really nice features but still is under heavy development."
ewarn "Take a look at homepage for more info: http://code.google.com/p/psi-dev"
ewarn "If you wish to disable some patches just put"
ewarn "MY_EPATCH_EXCLUDE=\"list of patches\""
ewarn "into /etc/portage/env/${CATEGORY}/${PN} file."
ewarn
ewarn "Note: some patches depend on other. So if you disabled some patch"
ewarn "and other started to fail to apply, you'll have to disable patches"
ewarn "that fail too."
ebeep
EPATCH_EXCLUDE="${MY_EPATCH_EXCLUDE} 270-psi-application-info.diff" \
EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch
sed -e 's/\(^#define PROG_CAPS_NODE \).*/\1"http:\/\/psi-dev.googlecode.com\/caps";/' \
-e 's:\(^#define PROG_NAME "Psi\):\1+:' \
-i src/applicationinfo.cpp || die
fi
rm -rf third-party/qca # We use system libraries.
}
src_configure() {
# unable to use econf because of non-standard configure script
# disable growl as it is a MacOS X extension only
local confcmd="./configure
--prefix=/usr
--qtdir=/usr
--disable-bundled-qca
--disable-growl
$(use dbus || echo '--disable-qdbus')
$(use debug && echo '--enable-debug')
$(use spell || echo '--disable-aspell')
$(use xscreensaver || echo '--disable-xss')"
echo ${confcmd}
${confcmd} || die "configure failed"
}
src_compile() {
eqmake4
emake || die "emake failed"
if use doc; then
cd doc
mkdir -p api # 259632
make api_public || die "make api_public failed"
fi
}
src_install() {
emake INSTALL_ROOT="${D}" install || die "emake install failed"
# this way the docs will be installed in the standard gentoo dir
newdoc iconsets/roster/README README.roster || die
newdoc iconsets/system/README README.system || die
newdoc certs/README README.certs || die
dodoc README || die
if use doc; then
cd doc
dohtml -r api || die "dohtml failed"
fi
# install translations
cd "${WORKDIR}/${PN}-langs"
insinto /usr/share/${PN}/
for LNG in ${LANGS}; do
if use linguas_${LNG}; then
doins ${PN}_${LNG/ur_PK/ur_pk}.qm || die
fi
done
if use extras; then
cp -a "${WORKDIR}"/iconsets/* "${D}"/usr/share/${PN}/iconsets/ || die
fi
}
|