1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils perl-module
7 DESCRIPTION="A frontend for ClamAV using Gtk2-perl"
8 HOMEPAGE="http://clamtk.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11 LICENSE="Artistic GPL-2"
13 KEYWORDS="~amd64 ~x86"
15 LANGS="ar bg cs da de el en_GB es fr gl he hr hu it ja ko ms nb nl nn pl pt_BR ro ru sk sl sv tr zh_CN"
18 IUSE="${IUSE} linguas_${i}"
22 RDEPEND=">=dev-perl/gtk2-perl-1.140
23 dev-perl/File-Find-Rule
27 dev-util/desktop-file-utils
28 >=app-antivirus/clamav-0.90
29 nls? ( dev-perl/Locale-gettext )"
35 sed -i -e "s:'/usr/lib':'${VENDOR_LIB}':" clamtk \
37 gunzip ${PN}.1.gz || die "gunzip failed"
41 dobin ${PN} || die "dobin failed"
43 doicon ${PN}.png || die "doicon failed"
44 domenu ${PN}.desktop || die "domenu failed"
46 dodoc CHANGES README || die "dodoc failed"
47 doman ${PN}.1 || die "doman failed"
49 # The custom Perl modules
51 insinto ${VENDOR_LIB}/ClamTk
52 doins lib/*.pm || die "doins failed"
55 domo po/*.mo || die "domo failed"