# 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"
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
}
# 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"
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
}