1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils multilib qt4
10 LANGPACK_VER
="20090217"
12 DESCRIPTION
="Qt4 Jabber client, with Licq-like interface"
13 HOMEPAGE
="http://psi-im.org/"
14 SRC_URI
="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
15 mirror://gentoo/${PN}-langs-${LANGPACK_VER}.tar.bz2"
19 KEYWORDS
="~amd64 ~x86"
20 IUSE
="crypt dbus debug doc jingle spell ssl xscreensaver"
23 LANGS
="cs de eo es_ES fr it mk pl pt_BR ru uk ur_PK vi zh zh_TW"
24 for LNG
in ${LANGS}; do
25 IUSE
="${IUSE} linguas_${LNG}"
26 #SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm"
29 RDEPEND
=">=x11-libs/qt-gui-4.4:4[qt3support,dbus?]
31 spell? ( app-text/aspell )
32 xscreensaver? ( x11-libs/libXScrnSaver )"
34 doc? ( app-doc/doxygen )"
35 PDEPEND
="crypt? ( app-crypt/qca-gnupg:2 )
36 jingle? ( net-libs/psimedia )
37 ssl? ( app-crypt/qca-ossl:2 )"
39 S
="${WORKDIR}"/${MY_P}
42 # cannot use econf because of non-standard configure script
43 # disable growl as it is a MacOS X extension only
44 local confcmd
="./configure
49 $(use dbus || echo '--disable-qdbus')
50 $(use debug && echo '--enable-debug')
51 $(use spell || echo '--disable-aspell')
52 $(use xscreensaver || echo '--disable-xss')"
55 ${confcmd} || die
"configure failed"
61 SUBLIBS
="-L/usr/$(get_libdir)/qca2" emake || die
"emake failed"
64 cd doc
&& mkdir
-p api
# 259632
65 einfo
"Generating API documentation"
66 make api_public || die
"make api_public failed"
71 emake INSTALL_ROOT
="${D}" install || die
"emake install failed"
73 # this way the docs will be installed in the standard gentoo dir
74 newdoc iconsets
/roster
/README README.roster || die
75 newdoc iconsets
/system
/README README.system || die
76 newdoc certs
/README README.certs || die
81 dohtml
-r api || die
"dohtml failed"
84 # install translations
85 cd "${WORKDIR}"/${PN}-langs
86 insinto
/usr
/share
/${PN}
87 for LNG
in ${LANGS}; do
88 if use linguas_
${LNG}; then
89 doins
${PN}_
${LNG/ur_PK/ur_pk}.qm || die