summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-04-18 00:21:02 +0200
committerDavid Seifert <soap@gentoo.org>2020-04-18 00:21:02 +0200
commit47a64f0724389f66d42ef34815c8999c8b1734d3 (patch)
treef8764ddbd2a00114fd30c2142f03536c3f1edb75 /dev-python/pysnmp
parentdev-python/pysmi: Add py3.8 (diff)
downloadgentoo-47a64f0724389f66d42ef34815c8999c8b1734d3.tar.gz
gentoo-47a64f0724389f66d42ef34815c8999c8b1734d3.tar.bz2
gentoo-47a64f0724389f66d42ef34815c8999c8b1734d3.zip
dev-python/pysnmp: Add py3.8
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-python/pysnmp')
-rw-r--r--dev-python/pysnmp/pysnmp-4.4.12-r1.ebuild (renamed from dev-python/pysnmp/pysnmp-4.4.12.ebuild)30
-rw-r--r--dev-python/pysnmp/pysnmp-999999.ebuild31
2 files changed, 24 insertions, 37 deletions
diff --git a/dev-python/pysnmp/pysnmp-4.4.12.ebuild b/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
}