Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/clamtk/
Date: Wed, 07 Jul 2021 19:49:53
Message-Id: 1625687247.58f6b051e1ef3eb02d88a1af465df8c4fabc57cd.conikost@gentoo
1 commit: 58f6b051e1ef3eb02d88a1af465df8c4fabc57cd
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 7 19:43:47 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 7 19:47:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58f6b051
7
8 app-antivirus/clamtk: bump to version 6.12
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 app-antivirus/clamtk/Manifest | 1 +
14 app-antivirus/clamtk/clamtk-6.12.ebuild | 142 ++++++++++++++++++++++++++++++++
15 2 files changed, 143 insertions(+)
16
17 diff --git a/app-antivirus/clamtk/Manifest b/app-antivirus/clamtk/Manifest
18 index c172a4ec134..9e50deebca3 100644
19 --- a/app-antivirus/clamtk/Manifest
20 +++ b/app-antivirus/clamtk/Manifest
21 @@ -1,4 +1,5 @@
22 DIST clamtk-6.11.tar.xz 286216 BLAKE2B 7ce995fbe12e215cfd22517e648a6d68dd7603c694c8b2fb4a25c6070fa07895f8aee1ae7e6dcc8ae0bc01fb7950a69019bd8cdaf3c01cd0e7754ad0341afb5c SHA512 6fb0512460ae8f9c4762beb012a2539b6eb157c513138e661e10d3a8f615b8b6c9b0876772defa705f0180bea0a8b97fe187c1114611fe75906f8dae108db11c
23 +DIST clamtk-6.12.tar.xz 286320 BLAKE2B bd56a12529a1a0d5fb53b4e5ffd69cc38a1c09b12e03b27a414a88337c27e26a4cec87d29410df947f0e672ccacd8dc21b6142737dabb9c8dcd35b709767d01e SHA512 fb47ebd3ba8c658e3515075be0679ff69cdc91544c6f73d0351594467f82a92361720b204ec2f682d0923e047b83cf146c988531e18c3968ef16201f302af3f1
24 DIST clamtk-gnome-0.05.tar.xz 15148 BLAKE2B d72ad0c9b3272c1a21d3722994152e23aeb01bd79d006cbcd3545c2689887b4f596daeeef72a13d9cdd9cfc89c4091963b4a1917824bbb06be4678f2c446a114 SHA512 a5d3b0e87889880272aa61a0feebca8e885c7fa964bad767351c826188c236f2152b3c43328b6aa720c5942b2bf1da69916d3664358c274813a6ac032ee4dea0
25 DIST clamtk-kde-0.18.tar.xz 17732 BLAKE2B ca82934417f2d869fd8c8e36a31ef4a52cf4ee73581c5d1d400c1b28908c5ea2524a8f5d1110b1e949038378613fb4d5607d5123eebe91df695a53d0dd489302 SHA512 145ddd349010e0bb6fe3295e50d6e15a2dd96e604babbd5de4cb49ba75169d2050777cac38e40ac6a64cb89ddf94025d610aca73136c75f81115d0a2d863d24e
26 DIST nemo-sendto-clamtk-0.04.tar.xz 4228 BLAKE2B ce656d4f021bc30cd12fb2ee5f98a78c1f1fdb2460ed2cbba0b572408617f91b39b2ca2fe542b9cec7be79b4b9fdfd685f5553e1a671454ca1e6723241dcb805 SHA512 2b5d3abbc4ae5dbc71b1b7bc836df88ad51e6afa00d5e954b5c1355a70c0420b6fef895e1cb5cccb86a662aee2039cef6c01821c1347fa155b5da3529b25562c
27
28 diff --git a/app-antivirus/clamtk/clamtk-6.12.ebuild b/app-antivirus/clamtk/clamtk-6.12.ebuild
29 new file mode 100644
30 index 00000000000..e94d7c54d66
31 --- /dev/null
32 +++ b/app-antivirus/clamtk/clamtk-6.12.ebuild
33 @@ -0,0 +1,142 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python3_{8..10} )
40 +
41 +inherit desktop perl-functions python-single-r1 xdg-utils
42 +
43 +MY_PV_KDE="0.18"
44 +MY_PV_NAUTILUS="0.05"
45 +MY_PV_NEMO="0.04"
46 +MY_PV_THUNAR="0.06"
47 +
48 +DESCRIPTION="A graphical front-end for ClamAV"
49 +HOMEPAGE="https://gitlab.com/dave_m/clamtk/wikis/Home"
50 +SRC_URI="
51 + https://github.com/dave-theunsub/${PN}/releases/download/v${PV}/${P}.tar.xz
52 + kde? ( https://bitbucket.org/davem_/${PN}-kde/downloads/${PN}-kde-${MY_PV_KDE}.tar.xz )
53 + nautilus? ( https://bitbucket.org/davem_/${PN}-gnome/downloads/${PN}-gnome-${MY_PV_NAUTILUS}.tar.xz )
54 + nemo? ( https://bitbucket.org/davem_/nemo-sendto-${PN}/downloads/nemo-sendto-${PN}-${MY_PV_NEMO}.tar.xz )
55 + thunar? ( https://bitbucket.org/davem_/thunar-sendto-${PN}/downloads/thunar-sendto-${PN}-${MY_PV_THUNAR}.tar.xz )
56 +"
57 +
58 +LICENSE="|| ( Artistic GPL-1+ )"
59 +SLOT="0"
60 +KEYWORDS="~amd64 ~x86"
61 +IUSE="kde nautilus nemo +nls thunar"
62 +REQUIRED_USE="nautilus? ( ${PYTHON_REQUIRED_USE} )"
63 +
64 +RDEPEND="
65 + app-antivirus/clamav
66 + dev-perl/File-chdir
67 + dev-perl/Gtk3
68 + dev-perl/JSON
69 + dev-perl/LWP-Protocol-https
70 + dev-perl/LWP-UserAgent-Cached
71 + dev-perl/Locale-gettext
72 + dev-perl/Text-CSV
73 + dev-perl/glib-perl
74 + dev-perl/libwww-perl
75 + virtual/perl-Digest-MD5
76 + virtual/perl-Digest-SHA
77 + virtual/perl-Encode
78 + virtual/perl-MIME-Base64
79 + virtual/perl-Time-Piece
80 + nautilus? (
81 + ${PYTHON_DEPS}
82 + dev-python/nautilus-python[${PYTHON_SINGLE_USEDEP}]
83 + )
84 +"
85 +
86 +BDEPEND="nls? ( sys-devel/gettext )"
87 +
88 +DOCS=( "CHANGES" "credits.md" "DISCLAIMER" "README.md" )
89 +
90 +pkg_setup() {
91 + use nautilus && python-single-r1_pkg_setup
92 +}
93 +
94 +src_unpack() {
95 + default
96 +
97 + unpack "${S}"/clamtk.1.gz
98 +
99 + use kde && unpack "${S}"/../clamtk-kde-${MY_PV_KDE}/clamtk-kde.1.gz
100 + use nautilus && unpack "${S}"/../clamtk-gnome-${MY_PV_NAUTILUS}/clamtk-gnome.1.gz
101 + use nemo && unpack "${S}"/../nemo-sendto-clamtk-${MY_PV_NEMO}/nemo-sendto-clamtk.1.gz
102 + use thunar && unpack "${S}"/../thunar-sendto-clamtk-${MY_PV_THUNAR}/thunar-sendto-clamtk.1.gz
103 +}
104 +
105 +src_install() {
106 + dobin clamtk
107 +
108 + perl_set_version
109 + insinto "${VENDOR_LIB}"/ClamTk
110 + doins lib/*.pm
111 +
112 + use nls && domo po/*.mo
113 +
114 + doicon images/clamtk.png images/clamtk.xpm
115 +
116 + domenu clamtk.desktop
117 +
118 + doman ../clamtk.1
119 +
120 + if use kde; then
121 + insinto /usr/share/kservices5/ServiceMenus
122 + doins ../clamtk-kde-${MY_PV_KDE}/clamtk-kde.desktop
123 +
124 + doicon ../clamtk-kde-${MY_PV_KDE}/clamtk-kde.png ../clamtk-kde-${MY_PV_KDE}/clamtk-kde.xpm
125 +
126 + doman ../clamtk-kde.1
127 +
128 + docinto dolphin
129 + dodoc ../clamtk-kde-${MY_PV_KDE}/CHANGES ../clamtk-kde-${MY_PV_KDE}/README.md
130 + fi
131 +
132 + if use nautilus; then
133 + insinto /usr/share/nautilus-python/extensions
134 + doins ../clamtk-gnome-${MY_PV_NAUTILUS}/clamtk-gnome.py
135 +
136 + doicon ../clamtk-gnome-${MY_PV_NAUTILUS}/images/clamtk-gnome.png
137 +
138 + doman ../clamtk-gnome.1
139 +
140 + docinto nautilus
141 + dodoc ../clamtk-gnome-${MY_PV_NAUTILUS}/CHANGES ../clamtk-gnome-${MY_PV_NAUTILUS}/DISCLAIMER ../clamtk-gnome-${MY_PV_NAUTILUS}/README.md
142 + fi
143 +
144 + if use nemo; then
145 + insinto /usr/share/nemo/actions/
146 + doins ../nemo-sendto-clamtk-${MY_PV_NEMO}/nemo-sendto-clamtk.nemo_action
147 +
148 + doman ../nemo-sendto-clamtk.1
149 +
150 + docinto nemo
151 + dodoc ../nemo-sendto-clamtk-${MY_PV_NEMO}/CHANGES ../nemo-sendto-clamtk-${MY_PV_NEMO}/DISCLAIMER ../nemo-sendto-clamtk-${MY_PV_NEMO}/README.md
152 + fi
153 +
154 + if use thunar; then
155 + insinto /usr/share/Thunar/sendto
156 + doins ../thunar-sendto-clamtk-${MY_PV_THUNAR}/thunar-sendto-clamtk.desktop
157 +
158 + doman ../thunar-sendto-clamtk.1
159 +
160 + docinto thunar
161 + dodoc ../thunar-sendto-clamtk-${MY_PV_THUNAR}/CHANGES ../thunar-sendto-clamtk-${MY_PV_THUNAR}/DISCLAIMER ../thunar-sendto-clamtk-${MY_PV_THUNAR}/README
162 + fi
163 +
164 + einstalldocs
165 +}
166 +
167 +pkg_postinst() {
168 + xdg_desktop_database_update
169 + xdg_mimeinfo_database_update
170 +}
171 +
172 +pkg_postrm() {
173 + xdg_desktop_database_update
174 + xdg_mimeinfo_database_update
175 +}