diff options
author | Jeroen Roovers <jer@gentoo.org> | 2018-08-11 12:21:26 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2018-08-11 12:47:32 +0200 |
commit | 11239329ccd8be581dc227e42c6932f50e0434cd (patch) | |
tree | 65626ef9a92d6d3ccf1cb5ed0829afdefef6f97a /dev-python/pysnmp | |
parent | dev-python/pysnmp: Old. (diff) | |
download | gentoo-11239329ccd8be581dc227e42c6932f50e0434cd.tar.gz gentoo-11239329ccd8be581dc227e42c6932f50e0434cd.tar.bz2 gentoo-11239329ccd8be581dc227e42c6932f50e0434cd.zip |
dev-python/pysnmp: Version 4.4.5.
Package-Manager: Portage-2.3.45, Repoman-2.3.10
Diffstat (limited to 'dev-python/pysnmp')
-rw-r--r-- | dev-python/pysnmp/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pysnmp/pysnmp-4.4.5.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/pysnmp/Manifest b/dev-python/pysnmp/Manifest index f5234865762c..d2809eb962e6 100644 --- a/dev-python/pysnmp/Manifest +++ b/dev-python/pysnmp/Manifest @@ -1 +1,2 @@ DIST pysnmp-4.4.4.tar.gz 436318 BLAKE2B 6e6616a79fc15d457b8da2e2260c65d9d8ef29888c033d80f2f47c8de035d0cff73dc4be1eeced8ef36dac1301b7da0d845837b780815792f545b6ad18d5496e SHA512 960ac73b7356bb236d3853432c094d3aa86a343f5e211065689e6c784293748ec6f2c1c17bf9d96b4cbe2d9d476ebbacbaff4bed7d86370e5ef61e6f03ba8c0e +DIST pysnmp-4.4.5.tar.gz 438424 BLAKE2B db989eb9faa0d548c7e58a5e9b7127824f2798c116d27b8885b4920f5e0acf9068ea5ad88e13e8e913e24c0d21d414026f6d733cf680b41e59370c960d856197 SHA512 3164e93a8623512d903c86eebdb6f9fa5ffee29309747df4a836e257e87dc5480cf706ab527e1a8966e80c0626961f6f1b68b60cf07df2ddece305706f5445f2 diff --git a/dev-python/pysnmp/pysnmp-4.4.5.ebuild b/dev-python/pysnmp/pysnmp-4.4.5.ebuild new file mode 100644 index 000000000000..3d1c8021a0c7 --- /dev/null +++ b/dev-python/pysnmp/pysnmp-4.4.5.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +inherit distutils-r1 + +DESCRIPTION="Python SNMP library" +HOMEPAGE="http://snmplabs.com/pysnmp/ https://pypi.org/project/pysnmp/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +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}] + ) +" + +python_compile_all() { + default + + if use doc; then + touch docs/source/conf.py + emake -C docs html + fi +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/* ) + docinto examples + use examples && dodoc -r examples/* docs/mibs + + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "You may also be interested in the following packages: " + elog "dev-python/pysnmp-apps - example programs using pysnmp" + elog "dev-python/pysnmp-mibs - IETF and other mibs" + elog "dev-python/pysmi - to dump MIBs in python format" +} |