blob: 7a8350dbc80aa8b2492e4ccca5a6e53198cffbc7 (
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
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils perl-module
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="~amd64 ~x86"
LANGS="ar ast bg bs ca cs da de el en_GB es eu fi fo fr gl he hr hu id it ja ko lt ms nb nl nn pl pt pt_BR ro ru sk sl sv te th tr ug uk uz zh_CN zh_TW"
IUSE="nls"
for i in ${LANGS}; do
IUSE="${IUSE} linguas_${i}"
done
DEPEND=""
RDEPEND=">=dev-perl/gtk2-perl-1.140
dev-perl/File-Find-Rule
dev-perl/libwww-perl
dev-perl/Date-Calc
dev-util/desktop-file-utils
>=app-antivirus/clamav-0.95
nls? ( dev-perl/Locale-gettext )
sys-fs/udev"
src_unpack() {
unpack ${A}
cd "${S}"
gunzip ${PN}.1.gz || die "gunzip failed"
}
src_install() {
dobin ${PN} || die "dobin failed"
doicon images/${PN}.png || die "doicon failed"
domenu ${PN}.desktop || die "domenu failed"
dodoc CHANGES README || die "dodoc failed"
doman ${PN}.1 || die "doman failed"
# The custom Perl modules
perlinfo
insinto ${VENDOR_LIB}/ClamTk
doins lib/*.pm || die "doins failed"
if use nls ; then
domo po/*.mo || die "domo failed"
fi
}
|