summaryrefslogtreecommitdiff
blob: a9bc8260f383a0920ba09974ef68c8418c13e3ca (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
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="A frontend for ClamAV using Gtk2-perl."
HOMEPAGE="http://clamtk.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="Artistic GPL-2"
SLOT="0"
KEYWORDS="~x86"

LANGS="da de es fr it pl pt_BR ru zh_CN"
IUSE="nls"
for i in ${LANGS}; do
	IUSE="${IUSE} linguas_${i}"
done

DEPEND="dev-perl/gtk2-perl
	dev-perl/File-Find-Rule
	dev-perl/libwww-perl
	dev-perl/Date-Calc
	<app-antivirus/clamav-0.90_rc1" # doesn't work yet due to new update method

RDEPEND="${DEPEND}"

src_install() {
	dobin clamtk

	doicon ${PN}.png
	domenu ${PN}.desktop

	dodoc CHANGES DISCLAIMER README
	doman ${PN}.1.gz

	if use nls ; then
		cd po/
		for n in *.mo ; do
			if use linguas_${n/.mo} ; then
				insinto /usr/share/locale/${n/.mo}/LC_MESSAGES
				newins ${n} ${PN}.mo
			fi
		done
	fi
}