From b24bd25253fe093f722ab576d29fdc41d04cb1ee Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 2 Aug 2019 19:14:55 +0100 Subject: gentoo resync : 02.08.2019 --- app-antivirus/clamtk/Manifest | 4 +- app-antivirus/clamtk/clamtk-6.00-r1.ebuild | 160 +++++++++++++++++++++++++++++ app-antivirus/clamtk/clamtk-6.00.ebuild | 157 ---------------------------- app-antivirus/clamtk/clamtk-6.01-r1.ebuild | 160 +++++++++++++++++++++++++++++ app-antivirus/clamtk/clamtk-6.01.ebuild | 157 ---------------------------- 5 files changed, 322 insertions(+), 316 deletions(-) create mode 100644 app-antivirus/clamtk/clamtk-6.00-r1.ebuild delete mode 100644 app-antivirus/clamtk/clamtk-6.00.ebuild create mode 100644 app-antivirus/clamtk/clamtk-6.01-r1.ebuild delete mode 100644 app-antivirus/clamtk/clamtk-6.01.ebuild (limited to 'app-antivirus/clamtk') diff --git a/app-antivirus/clamtk/Manifest b/app-antivirus/clamtk/Manifest index d5c4670e874f..1c1410e9543b 100644 --- a/app-antivirus/clamtk/Manifest +++ b/app-antivirus/clamtk/Manifest @@ -6,6 +6,6 @@ DIST clamtk-gnome-0.03.tar.xz 15088 BLAKE2B cc1440de117eea036cf14a9ed36650916703 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 DIST thunar-sendto-clamtk-0.06.tar.xz 4416 BLAKE2B 6b9f8857fead9f175af0a5fd3585790c49865b07016ddbc0dfc21f761ecbac32d97a65731fdca0335fd4852af9efc93c06ecb994f769a5efeade35cb734e9924 SHA512 f3b6f296213ad5974f8134d682cce4e426d9730d1898e8f7ea474e27314ee47957b033bbd7f16196cabf054eccec844c05ff8c8f9a98ad013a7f89b899cee591 -EBUILD clamtk-6.00.ebuild 3927 BLAKE2B dd219c5b87c4f900265162e4eaf9eba464227fe05832fc6a7f526ea9a72ff29008cde7a872b8430447063d49e80dc9f7e96036bf7621c60b319e419e9971e40d SHA512 ed537ae5c524810cc5aa71a6b6c6f87e0cdc841cee6812a10b2e273e070f4390e0d554331d352e570b53e5afba574b7761c8024a6450f7ec5ed288bdd92dbb6f -EBUILD clamtk-6.01.ebuild 3935 BLAKE2B fa56bab3c3b836627a6bfc68b9a67edb3e886d35e0baf0638d49c4073928fb5c63515ce06e090fde7e21d27e226998216f0939c0fcb05e2a38cf1f65d9b18257 SHA512 05539af541c603ff186b6a21e1867ec7c6c195f8e8111bc7ca1c132b8b75a165908e0c3b085e3c8739dfb6d0807e9c66c061a6908b37d1f89087a641b792ea93 +EBUILD clamtk-6.00-r1.ebuild 3947 BLAKE2B 079aa6970bdfefaca452f84b05c0d2cd70d67a7bdec75010a89812b8a154e0c07bdcea6a9d9e2ffb5952cb071ff19a26514c650be4563b63f8fec32213fd83af SHA512 ae91508f617ac2464da51a290e23d5dfafc99bbd973b29a6d34eb1182372c4d2b964912001bc99693bf9f4e4ad8b34efb49a73688ef4cd13125fbfcf4d00a426 +EBUILD clamtk-6.01-r1.ebuild 3955 BLAKE2B 849bb184e00f3cb17373a5ede5b7c56ee009dd5572854c24b10d39d62761d42fa97cb9d61d160765c45d6a3342f58248ada80ef06334388f333857354d2c1d21 SHA512 c61bcc5791acade7e278f0e658e191709280a1ff3c50044794232293570063626794d02189ea7641ae9f15954e05b4158f1289bbf7b4fd5237732be5a59cdea5 MISC metadata.xml 942 BLAKE2B 537f7480903f2c4d4d315e0a7becf14be2f4f7cd2280f1918877f738cac8e71b58d65fa702f4a9979f44f2cb81e61dd44e7f9ba8197472095d6c7071a1bc0be6 SHA512 9bd9e7e9560a7358ed5935949a913628f50b885509f065419060d2cb6dbe605723d98930027908c1faf64f368289cac3c86e9d75a91838912036912ed60022a4 diff --git a/app-antivirus/clamtk/clamtk-6.00-r1.ebuild b/app-antivirus/clamtk/clamtk-6.00-r1.ebuild new file mode 100644 index 000000000000..e3ddf10b9e0f --- /dev/null +++ b/app-antivirus/clamtk/clamtk-6.00-r1.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2019 Gentoo Authors +# 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? ( + ${PYTHON_DEPS} + 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/clamtk-6.00.ebuild b/app-antivirus/clamtk/clamtk-6.00.ebuild deleted file mode 100644 index 22d4505ea881..000000000000 --- a/app-antivirus/clamtk/clamtk-6.00.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# 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/clamtk-6.01-r1.ebuild b/app-antivirus/clamtk/clamtk-6.01-r1.ebuild new file mode 100644 index 000000000000..e4aac44b03d3 --- /dev/null +++ b/app-antivirus/clamtk/clamtk-6.01-r1.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2019 Gentoo Authors +# 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.03" +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? ( + ${PYTHON_DEPS} + dev-python/nautilus-python[${PYTHON_USEDEP}] + ) +" + +BDEPEND="nls? ( sys-devel/gettext )" + +DOCS=( "CHANGES" "credits.md" "DISCLAIMER" "README.md" ) + +PATCHES=( "$FILESDIR"/"${PN}"-6.00-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/clamtk-6.01.ebuild b/app-antivirus/clamtk/clamtk-6.01.ebuild deleted file mode 100644 index a40424a65dc9..000000000000 --- a/app-antivirus/clamtk/clamtk-6.01.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# 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.03" -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"/"${PN}"-6.00-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 -} -- cgit v1.2.3