2015-03-22 14:04:09 +03:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2014-06-05 17:47:07 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2015-02-05 13:19:44 +03:00
|
|
|
EAPI=5
|
2014-06-05 17:47:07 +04:00
|
|
|
|
|
|
|
inherit eutils perl-module
|
|
|
|
|
|
|
|
DESCRIPTION="A frontend for ClamAV using Gtk2-perl"
|
|
|
|
HOMEPAGE="http://clamtk.sourceforge.net/"
|
|
|
|
SRC_URI="https://bitbucket.org/dave_theunsub/clamtk/downloads/${P}.tar.gz"
|
|
|
|
|
2015-03-22 14:04:09 +03:00
|
|
|
LICENSE="|| ( Artistic GPL-1+ )"
|
2014-06-05 17:47:07 +04:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
|
2015-03-22 14:04:09 +03:00
|
|
|
LANGS="af ar ast az bg bs ca cs da de el_GR en_AU en_CA en_GB es eu fi fo fr ga
|
|
|
|
gl he hr hu id it ja ko lt lv mr ms nb nl_BE nl nn pa pl pt_BR pt ro ru sk
|
|
|
|
sl sr@latin sv ta te th tr ug uk uz zh_CN zh_TW"
|
|
|
|
IUSE=""
|
2014-06-05 17:47:07 +04:00
|
|
|
for i in ${LANGS}; do
|
|
|
|
IUSE="${IUSE} linguas_${i}"
|
|
|
|
done
|
|
|
|
|
|
|
|
DEPEND=""
|
2015-03-22 14:04:09 +03:00
|
|
|
RDEPEND="
|
2014-06-05 17:47:07 +04:00
|
|
|
>=app-antivirus/clamav-0.95
|
|
|
|
dev-perl/JSON
|
2015-03-22 14:04:09 +03:00
|
|
|
dev-perl/LWP-Protocol-https
|
|
|
|
dev-perl/Locale-gettext
|
|
|
|
dev-perl/Text-CSV
|
|
|
|
dev-perl/glib-perl
|
|
|
|
dev-perl/gtk2-perl
|
|
|
|
dev-perl/libwww-perl
|
|
|
|
virtual/perl-Digest-SHA
|
|
|
|
virtual/perl-MIME-Base64
|
|
|
|
virtual/perl-Time-Piece
|
|
|
|
"
|
2014-06-05 17:47:07 +04:00
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
2015-03-22 14:04:09 +03:00
|
|
|
cd "${S}" || die "cd failed"
|
2014-06-05 17:47:07 +04:00
|
|
|
gunzip ${PN}.1.gz || die "gunzip failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin ${PN}
|
|
|
|
|
|
|
|
doicon images/* || die "doicon failed"
|
|
|
|
domenu ${PN}.desktop || die "domenu failed"
|
|
|
|
|
2015-03-22 14:04:09 +03:00
|
|
|
dodoc CHANGES README DISCLAIMER
|
2014-06-05 17:47:07 +04:00
|
|
|
doman ${PN}.1
|
|
|
|
|
|
|
|
# The custom Perl modules
|
2015-03-22 16:14:02 +03:00
|
|
|
perl_set_version
|
2015-03-22 14:04:09 +03:00
|
|
|
insinto "${VENDOR_LIB}/ClamTk"
|
2014-06-05 17:47:07 +04:00
|
|
|
doins lib/*.pm
|
|
|
|
|
2015-03-22 14:04:09 +03:00
|
|
|
local l
|
|
|
|
for l in ${LANGS}; do
|
|
|
|
use "linguas_${l}" && domo "po/${l}.mo"
|
|
|
|
done
|
2014-06-05 17:47:07 +04:00
|
|
|
}
|