# Copyright 2009 Peter Savichev (proton) # Distributed under the terms of the GNU General Public License v3 # $Header: x11-plugins/skype4pidgin$ DESCRIPTION="Skype Plugin for Pidgin lets you view and chat with all your Skype buddies from within Pidgin. You still need Skype to be running to be able to use it, but it lets you keep a consistent user interface and use all the other nifty Pidgin plugins with it, like spell-checking or OTR encryption." HOMEPAGE="http://code.google.com/p/skype4pidgin/" ESVN_REPO_URI="http://skype4pidgin.googlecode.com/svn/trunk" inherit subversion LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" LANGS="de en_AU es fr hu it ja nb pl pt ru" for X in ${LANGS}; do IUSE="${IUSE} linguas_${X}"; done RDEPEND="net-im/pidgin net-im/skype" DEPEND="${RDEPEND}" src_unpack() { subversion_src_unpack } src_compile() { emake all || die "all" } src_install() { emake DESTDIR="${D}" install || die for lng in ${LANGS}; do if use linguas_${lng}; then echo ">>> Installing localisation for ${lng}" mv po/${lng}.mo skype4pidgin.mo insinto /usr/share/locale/${lng}/LC_MESSAGES/ doins skype4pidgin.mo fi done }