From 74b9a5dfa437e0286ad8e7bac5963dfdbc7c11cf Mon Sep 17 00:00:00 2001 From: Hanno Böck Date: Sat, 18 Feb 2023 17:00:02 +0100 Subject: dev-python/pyClamd: Support python 3.11, EAPI 8, PEP517. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hanno Böck --- ...pyClamd-0.4.0-remove-obsolete-bugtrack_url.diff | 11 +++++++++ dev-python/pyClamd/pyClamd-0.4.0-r4.ebuild | 27 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 dev-python/pyClamd/files/pyClamd-0.4.0-remove-obsolete-bugtrack_url.diff create mode 100644 dev-python/pyClamd/pyClamd-0.4.0-r4.ebuild (limited to 'dev-python/pyClamd') diff --git a/dev-python/pyClamd/files/pyClamd-0.4.0-remove-obsolete-bugtrack_url.diff b/dev-python/pyClamd/files/pyClamd-0.4.0-remove-obsolete-bugtrack_url.diff new file mode 100644 index 000000000000..446c215ba518 --- /dev/null +++ b/dev-python/pyClamd/files/pyClamd-0.4.0-remove-obsolete-bugtrack_url.diff @@ -0,0 +1,11 @@ +diff -Naurp a/setup.py b/setup.py +--- a/setup.py 2017-08-28 00:05:52.000000000 +0200 ++++ b/setup.py 2023-02-18 16:57:08.911936472 +0100 +@@ -27,7 +27,6 @@ setup (name = 'pyClamd', + author_email = 'norman@xael.org', + keywords='python, clamav, antivirus, scanner, virus, libclamav', + url = 'http://xael.org/pages/pyclamd-en.html', +- bugtrack_url = 'https://bitbucket.org/xael/pyclamd', + include_dirs = ['/usr/local/include'], + description = 'pyClamd is a python interface to Clamd (Clamav daemon).', + long_description = 'pyClamd is a python interface to Clamd (Clamav daemon). By using pyClamd, you can add virus detection capabilities to your python software in an efficient and easy way. Instead of pyClamav which uses libclamav, pyClamd may be used by a closed source product.', diff --git a/dev-python/pyClamd/pyClamd-0.4.0-r4.ebuild b/dev-python/pyClamd/pyClamd-0.4.0-r4.ebuild new file mode 100644 index 000000000000..4f0d7151688f --- /dev/null +++ b/dev-python/pyClamd/pyClamd-0.4.0-r4.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +PATCHES=( "${FILESDIR}/${P}-remove-obsolete-bugtrack_url.diff" ) + +DESCRIPTION="python interface to Clamd (Clamav daemon)" +HOMEPAGE="https://xael.org/pages/pyclamd-en.html" +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +# Tests need clamd running and we cannot rely on that being +# true during build +RESTRICT="test" -- cgit v1.2.3-65-gdbad