From 47a64f0724389f66d42ef34815c8999c8b1734d3 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 18 Apr 2020 00:21:02 +0200 Subject: [PATCH] dev-python/pysnmp: Add py3.8 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: David Seifert --- ...-4.4.12.ebuild => pysnmp-4.4.12-r1.ebuild} | 30 +++++++----------- dev-python/pysnmp/pysnmp-999999.ebuild | 31 +++++++------------ 2 files changed, 24 insertions(+), 37 deletions(-) rename dev-python/pysnmp/{pysnmp-4.4.12.ebuild => pysnmp-4.4.12-r1.ebuild} (65%) diff --git a/dev-python/pysnmp/pysnmp-4.4.12.ebuild b/dev-python/pysnmp/pysnmp-4.4.12-r1.ebuild similarity index 65% rename from dev-python/pysnmp/pysnmp-4.4.12.ebuild rename to dev-python/pysnmp/pysnmp-4.4.12-r1.ebuild index 4fd27129e43d..4464b7b64c02 100644 --- a/dev-python/pysnmp/pysnmp-4.4.12.ebuild +++ b/dev-python/pysnmp/pysnmp-4.4.12-r1.ebuild @@ -2,7 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) + +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 DESCRIPTION="Python SNMP library" @@ -14,32 +15,25 @@ SLOT="0" KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86" IUSE="doc examples" -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) -" RDEPEND=" >=dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}] dev-python/pysmi[${PYTHON_USEDEP}] - || ( - dev-python/pycryptodome[${PYTHON_USEDEP}] - dev-python/pycrypto[${PYTHON_USEDEP}] - ) + dev-python/pycryptodome[${PYTHON_USEDEP}] " -python_compile_all() { - default +distutils_enable_sphinx docs/source - if use doc; then - touch docs/source/conf.py - emake -C docs html - fi +python_prepare_all() { + touch docs/source/conf.py || die + distutils-r1_python_prepare_all } python_install_all() { - use doc && local HTML_DOCS=( docs/build/html/* ) - docinto examples - use examples && dodoc -r examples/* docs/mibs + if use examples; then + docinto examples + dodoc -r examples/. docs/mibs + docompress -x /usr/share/doc/${PF}/examples + fi distutils-r1_python_install_all } diff --git a/dev-python/pysnmp/pysnmp-999999.ebuild b/dev-python/pysnmp/pysnmp-999999.ebuild index 92fe79461644..0141700d6046 100644 --- a/dev-python/pysnmp/pysnmp-999999.ebuild +++ b/dev-python/pysnmp/pysnmp-999999.ebuild @@ -2,7 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) + +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 git-r3 DESCRIPTION="Python SNMP library" @@ -11,35 +12,27 @@ EGIT_REPO_URI="https://github.com/etingof/pysnmp" LICENSE="BSD" SLOT="0" -KEYWORDS="" IUSE="doc examples" -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) -" RDEPEND=" >=dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}] dev-python/pysmi[${PYTHON_USEDEP}] - || ( - dev-python/pycryptodome[${PYTHON_USEDEP}] - dev-python/pycrypto[${PYTHON_USEDEP}] - ) + dev-python/pycryptodome[${PYTHON_USEDEP}] " -python_compile_all() { - default +distutils_enable_sphinx docs/source - if use doc; then - touch docs/source/conf.py - emake -C docs html - fi +python_prepare_all() { + touch docs/source/conf.py || die + distutils-r1_python_prepare_all } python_install_all() { - use doc && local HTML_DOCS=( docs/build/html/* ) - docinto examples - use examples && dodoc -r examples/* docs/mibs + if use examples; then + docinto examples + dodoc -r examples/. docs/mibs + docompress -x /usr/share/doc/${PF}/examples + fi distutils-r1_python_install_all } -- 2.26.2