# 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-r1.ebuild,v 1.3 2009/08/20 17:20:17 pva Exp $ EAPI="2" inherit eutils qt4 multilib git MY_P="${P/_rc/-rc}" DESCRIPTION="Qt4 Jabber client, with Licq-like interface" HOMEPAGE="http://psi-im.org/" # Langpack: # http://lists.affinix.com/pipermail/psi-devel-affinix.com/2009-August/008798.html EGIT_REPO_URI="git://git.psi-im.org/psi.git" SRC_URI="mirror://gentoo/psi-0.13-20090817_langpack_for_packagers.zip extras? ( mirror://gentoo/psi-extra-patches-r927.tar.bz2 mirror://gentoo/psi-extra-iconsets-r927.tar.bz2 )" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="crypt dbus debug doc jingle spell ssl xscreensaver" RESTRICT="test" LANGS="de es fr it mk pl pt_BR ru sv ur_PK 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 ) app-arch/unzip" 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() { rm -rf third-party/qca # We use system libraries. } src_unpack(){ git_src_unpack } 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" rm "${D}"/usr/share/psi/{COPYING,README} # 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}" insinto /usr/share/${PN}/ # for LNG in ${LANGS}; do # if use linguas_${LNG}; then # doins ${LNG}/${PN}_${LNG}.qm || die # fi # done if use extras; then cp -a "${WORKDIR}"/iconsets/* "${D}"/usr/share/${PN}/iconsets/ || die fi }