# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-client/kcheckgmail/kcheckgmail-0.5.7.4.ebuild,v 1.2 2008/05/18 16:33:25 maekke Exp $ inherit kde DESCRIPTION="Gmail notifier applet for kde" HOMEPAGE="http://sourceforge.net/projects/kcheckgmail" SRC_URI="mirror://sourceforge/kcheckgmail/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ~sparc x86" IUSE="" need-kde 3.5 LANGS="ar de es et fr hu it ko lt pl pt_BR pt ru sk sv tr wa" for X in ${LANGS} ; do IUSE="${IUSE} linguas_${X}" done src_unpack() { kde_src_unpack for X in ${LANGS} ; do use linguas_${X} && MAKE_LANGS="${MAKE_LANGS} ${X}.po" done cd "${S}/po" sed -i -e "s:POFILES =.*:POFILES = ${MAKE_LANGS}:" Makefile.am # Fix the desktop file sed -i -e 's:\(^Categories=.*k\):\1;:' "${S}/src/kcheckgmail.desktop" rm -f "${S}/configure" }