summaryrefslogtreecommitdiff
blob: 2184c091ad5cf9660a64d7b7ad662b7a10897da1 (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
# 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.5.ebuild,v 1.3 2008/09/26 15:01:11 darkside 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"
}