dev-python/pysnmp: Add py3.8
authorDavid Seifert <soap@gentoo.org>
Fri, 17 Apr 2020 22:21:02 +0000 (00:21 +0200)
committerDavid Seifert <soap@gentoo.org>
Fri, 17 Apr 2020 22:21:02 +0000 (00:21 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Seifert <soap@gentoo.org>
dev-python/pysnmp/pysnmp-4.4.12-r1.ebuild [moved from dev-python/pysnmp/pysnmp-4.4.12.ebuild with 65% similarity]
dev-python/pysnmp/pysnmp-999999.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 4fd27129e43da6643212bc08eafc3460aefc28d0..4464b7b64c02e62d720042ce3a1879273ab42c52 100644 (file)
@@ -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
 }
index 92fe794616443c2052e86397a23106f952c50dc6..0141700d6046ad019d1c7bf0a17337d199b59fd5 100644 (file)
@@ -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
 }