diff options
author | Conrad Kostecki <conrad@kostecki.com> | 2019-03-08 21:39:00 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2019-03-10 23:35:27 +0100 |
commit | 314e4e9792a71c4db52b78022370680a8acf1ad7 (patch) | |
tree | 189df170533cf844e2796b00b94d9ea421e0cc36 /app-antivirus/clamtk | |
parent | app-benchmarks/stress-ng: drop old version. (diff) | |
download | gentoo-314e4e9792a71c4db52b78022370680a8acf1ad7.tar.gz gentoo-314e4e9792a71c4db52b78022370680a8acf1ad7.tar.bz2 gentoo-314e4e9792a71c4db52b78022370680a8acf1ad7.zip |
app-antivirus/clamtk: bump to version 6.00.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
Closes: https://github.com/gentoo/gentoo/pull/11305
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'app-antivirus/clamtk')
-rw-r--r-- | app-antivirus/clamtk/Manifest | 1 | ||||
-rw-r--r-- | app-antivirus/clamtk/clamtk-6.00.ebuild | 157 | ||||
-rw-r--r-- | app-antivirus/clamtk/files/clamtk-6.00-change_icon_path.patch | 15 |
3 files changed, 173 insertions, 0 deletions
diff --git a/app-antivirus/clamtk/Manifest b/app-antivirus/clamtk/Manifest index 6b732e132887..1ced896de9c7 100644 --- a/app-antivirus/clamtk/Manifest +++ b/app-antivirus/clamtk/Manifest @@ -1,4 +1,5 @@ DIST clamtk-5.26.tar.xz 243748 BLAKE2B 42845cdd0f9e7387b2b69c5844ba26306ba1b0e64f70c16bcb7a830ba17c35dd681e48f9b386f6fbbc5c4a8da1ac9383cdddda7ef19376ac7955405fd9234b3e SHA512 791228a678a0b3bd57ef6effc959bec0c78151f56715d85ca8fafc139ab649d417762db1f567e9fc28d10475138ba90012a9fe9b49840a7658039f9d42e7bcf5 +DIST clamtk-6.00.tar.xz 227592 BLAKE2B b1fe3afc1fed5d96fea9fad4dfd065fc794cdcac3bbb49e04afa78548c37d6817c2c7638f46cd045bb1447d71ec619026e8d5226674951045914d5df28c3166a SHA512 5b8434532142f340caf5b16f95da0f5d0f3910c3c834ef963c1c8a9d7c1d032555c38fcb3f6195ad5f6cacde796824b68432bc1d16460a34976f0608eee47fdc DIST clamtk-gnome-0.02.tar.xz 14888 BLAKE2B 2137e7bc53f557cdb2f03afe3b6cb3b1185bb12c6b646f2bdb74c69bc3d6b59b23895d36583225f6a536d91237ffd84d307e7b52f16336a88311a60b84b2cbcd SHA512 f4a33d31ecf914f016fd029a7e9b9c903ba39bb139ed21f15786445d2394ace36ff08396baf68130d4bc3081847c34efda31ad3f727b9f5c479da4392750940f DIST clamtk-kde-0.18.tar.xz 17732 BLAKE2B ca82934417f2d869fd8c8e36a31ef4a52cf4ee73581c5d1d400c1b28908c5ea2524a8f5d1110b1e949038378613fb4d5607d5123eebe91df695a53d0dd489302 SHA512 145ddd349010e0bb6fe3295e50d6e15a2dd96e604babbd5de4cb49ba75169d2050777cac38e40ac6a64cb89ddf94025d610aca73136c75f81115d0a2d863d24e DIST nemo-sendto-clamtk-0.04.tar.xz 4228 BLAKE2B ce656d4f021bc30cd12fb2ee5f98a78c1f1fdb2460ed2cbba0b572408617f91b39b2ca2fe542b9cec7be79b4b9fdfd685f5553e1a671454ca1e6723241dcb805 SHA512 2b5d3abbc4ae5dbc71b1b7bc836df88ad51e6afa00d5e954b5c1355a70c0420b6fef895e1cb5cccb86a662aee2039cef6c01821c1347fa155b5da3529b25562c diff --git a/app-antivirus/clamtk/clamtk-6.00.ebuild b/app-antivirus/clamtk/clamtk-6.00.ebuild new file mode 100644 index 000000000000..e9a228575eb4 --- /dev/null +++ b/app-antivirus/clamtk/clamtk-6.00.ebuild @@ -0,0 +1,157 @@ +# Copyright 1999-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit desktop perl-functions python-single-r1 xdg-utils + +MY_PV_KDE="0.18" +MY_PV_NAUTILUS="0.02" +MY_PV_NEMO="0.04" +MY_PV_THUNAR="0.06" + +DESCRIPTION="A graphical front-end for ClamAV" +HOMEPAGE="https://dave-theunsub.github.io/clamtk/" +SRC_URI=" + https://bitbucket.org/davem_/${PN}-gtk3/downloads/${P}.tar.xz + kde? ( https://bitbucket.org/davem_/${PN}-kde/downloads/${PN}-kde-${MY_PV_KDE}.tar.xz ) + nautilus? ( https://bitbucket.org/davem_/${PN}-gnome/downloads/${PN}-gnome-${MY_PV_NAUTILUS}.tar.xz ) + nemo? ( https://bitbucket.org/davem_/nemo-sendto-${PN}/downloads/nemo-sendto-${PN}-${MY_PV_NEMO}.tar.xz ) + thunar? ( https://bitbucket.org/davem_/thunar-sendto-${PN}/downloads/thunar-sendto-${PN}-${MY_PV_THUNAR}.tar.xz ) +" + +LICENSE="|| ( Artistic GPL-1+ )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="kde nautilus nemo +nls thunar" +REQUIRED_USE="nautilus? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + app-antivirus/clamav + dev-perl/File-chdir + dev-perl/Gtk3 + dev-perl/JSON + dev-perl/LWP-Protocol-https + dev-perl/LWP-UserAgent-Cached + dev-perl/Locale-gettext + dev-perl/Text-CSV + dev-perl/glib-perl + dev-perl/libwww-perl + virtual/perl-Digest-MD5 + virtual/perl-Digest-SHA + virtual/perl-Encode + virtual/perl-MIME-Base64 + virtual/perl-Time-Piece + x11-themes/faenza-icon-theme + nautilus? ( dev-python/nautilus-python[${PYTHON_USEDEP}] ) +" + +BDEPEND="nls? ( sys-devel/gettext )" + +DOCS=( "CHANGES" "credits.md" "DISCLAIMER" "README.md" ) + +PATCHES=( "$FILESDIR"/"${P}"-change_icon_path.patch ) + +pkg_setup() { + if use nautilus; then + python-single-r1_pkg_setup + fi +} + +src_unpack() { + default + + unpack "${S}"/clamtk.1.gz + + if use kde; then + unpack "${S}"/../clamtk-kde-${MY_PV_KDE}/clamtk-kde.1.gz + fi + + if use nautilus; then + unpack "${S}"/../clamtk-gnome-${MY_PV_NAUTILUS}/clamtk-gnome.1.gz + fi + + if use nemo; then + unpack "${S}"/../nemo-sendto-clamtk-${MY_PV_NEMO}/nemo-sendto-clamtk.1.gz + fi + + if use thunar; then + unpack "${S}"/../thunar-sendto-clamtk-${MY_PV_THUNAR}/thunar-sendto-clamtk.1.gz + fi +} + +src_install() { + dobin clamtk + + perl_set_version + insinto "${VENDOR_LIB}"/ClamTk + doins lib/*.pm + + if use nls; then + domo po/*.mo + fi + + doicon images/clamtk.png images/clamtk.xpm + + domenu clamtk.desktop + + doman ../clamtk.1 + + if use kde; then + insinto /usr/share/kservices5/ServiceMenus + doins ../clamtk-kde-${MY_PV_KDE}/clamtk-kde.desktop + + doicon ../clamtk-kde-${MY_PV_KDE}/clamtk-kde.png ../clamtk-kde-${MY_PV_KDE}/clamtk-kde.xpm + + doman ../clamtk-kde.1 + + docinto dolphin + dodoc ../clamtk-kde-${MY_PV_KDE}/CHANGES ../clamtk-kde-${MY_PV_KDE}/README.md + fi + + if use nautilus; then + insinto /usr/share/nautilus-python/extensions + doins ../clamtk-gnome-${MY_PV_NAUTILUS}/clamtk-gnome.py + + doicon ../clamtk-gnome-${MY_PV_NAUTILUS}/images/clamtk-gnome.png + + doman ../clamtk-gnome.1 + + docinto nautilus + dodoc ../clamtk-gnome-${MY_PV_NAUTILUS}/CHANGES ../clamtk-gnome-${MY_PV_NAUTILUS}/DISCLAIMER ../clamtk-gnome-${MY_PV_NAUTILUS}/README.md + fi + + if use nemo; then + insinto /usr/share/nemo/actions/ + doins ../nemo-sendto-clamtk-${MY_PV_NEMO}/nemo-sendto-clamtk.nemo_action + + doman ../nemo-sendto-clamtk.1 + + docinto nemo + dodoc ../nemo-sendto-clamtk-${MY_PV_NEMO}/CHANGES ../nemo-sendto-clamtk-${MY_PV_NEMO}/DISCLAIMER ../nemo-sendto-clamtk-${MY_PV_NEMO}/README.md + fi + + if use thunar; then + insinto /usr/share/Thunar/sendto + doins ../thunar-sendto-clamtk-${MY_PV_THUNAR}/thunar-sendto-clamtk.desktop + + doman ../thunar-sendto-clamtk.1 + + docinto thunar + dodoc ../thunar-sendto-clamtk-${MY_PV_THUNAR}/CHANGES ../thunar-sendto-clamtk-${MY_PV_THUNAR}/DISCLAIMER ../thunar-sendto-clamtk-${MY_PV_THUNAR}/README + fi + + einstalldocs +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} diff --git a/app-antivirus/clamtk/files/clamtk-6.00-change_icon_path.patch b/app-antivirus/clamtk/files/clamtk-6.00-change_icon_path.patch new file mode 100644 index 000000000000..3b8018442d89 --- /dev/null +++ b/app-antivirus/clamtk/files/clamtk-6.00-change_icon_path.patch @@ -0,0 +1,15 @@ +--- a/lib/GUI.pm 2019-02-22 12:05:43.000000000 +0100 ++++ b/lib/GUI.pm 2019-03-08 21:27:39.000000000 +0100 +@@ -35,9 +35,9 @@ + # because it's missing an icon :| + # https://aur.archlinux.org/packages/clamtk/ + my $theme = Gtk3::IconTheme::get_default; +- $theme->append_search_path( '/usr/share/icons/gnome/24x24/actions' ); +- $theme->append_search_path( '/usr/share/icons/gnome/24x24/places' ); +- $theme->append_search_path( '/usr/share/icons/gnome/24x24/mimetypes' ); ++ $theme->append_search_path( '/usr/share/icons/Faenza/actions/24' ); ++ $theme->append_search_path( '/usr/share/icons/Faenza/places/24' ); ++ $theme->append_search_path( '/usr/share/icons/Faenza/mimetypes/24' ); + + $window = Gtk3::Window->new( 'toplevel' ); + $window->signal_connect( |