dev-python/pysnmp: Version bump.
authorJeroen Roovers <jer@gentoo.org>
Sat, 3 Oct 2015 04:36:31 +0000 (06:36 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 3 Oct 2015 04:36:31 +0000 (06:36 +0200)
Package-Manager: portage-2.2.22

dev-python/pysnmp/Manifest
dev-python/pysnmp/pysnmp-3.4.4-r1.ebuild [deleted file]
dev-python/pysnmp/pysnmp-4.3.0.ebuild [moved from dev-python/pysnmp/pysnmp-4.2.2-r1.ebuild with 68% similarity]

index 3c8395648ddaa136e35f0693d72e057bff7492e2..803b9f35c4ce6c2f1446703555f63780e953f70d 100644 (file)
@@ -1,3 +1,2 @@
-DIST pysnmp-3.4.4.tar.gz 91693 SHA256 e290758c17251435b5b8982cf96d3216da8f9f0ffd28beff1a5fd96efaa26bdf SHA512 7293722f11c44c4aebf25ca66be010150880b321ff1085a377f3233081a356084631b03a5c814b67feab48763622608837e9802b0256423b3bab3c8397427bb3 WHIRLPOOL 9db142ed1fd57144f5e4b20a8b3aace5a55b4f0cfef961d1b203e6f770fce8897c9458e26a22327e8a1bf5db8ca666b987feae8d1496077ebf86869de7ac4821
-DIST pysnmp-4.2.2.tar.gz 183998 SHA256 9402238abbaa24187544595d9ca37971b1e1ae0212d6307c60396290d32d6637 SHA512 6660212fdd92f0359ef8e45c71f4b6ee923a150e3dd051e1260386b9a9c11f000f489e0932b6919e21d85a280fbaa75125a418e126182c95c574539a44eb0d9b WHIRLPOOL 748a91b0251aa765576aa870a49e8c0e38729e00528a1e1a2fdc1d4baac2308b7fb42a0fbb05a8da993a64f29d49b0be0eb36fc91f79f7d3d9ab4911d0bc9318
 DIST pysnmp-4.2.5.tar.gz 225014 SHA256 c46e65d99a604f690b3d5800e2f6e26e1ed9a3c7f7e17e7b4b4d897150f7077f SHA512 bf93d7dd7ca95ff8b272c90d0c7d4e528075c83d8d6d630ab50e392227188bd0abdd05ad98521d9c4c0a1891a0b448fb9e4411f8a1d6bc7a9c2f7bb132c0dca0 WHIRLPOOL 74724ca754a7f51d41d231e7c04a7dc027d167a293b2daf5e67b5a735ff92e0a57a44abee3355980e2d3b181aa31e8d10a205a151e44282878a1a3a4b31ac4d3
+DIST pysnmp-4.3.0.tar.gz 305695 SHA256 8baf97fb1c8bc4376e151d570b6b8358a0e93f002fae6d67ea78b0283bf64574 SHA512 6441c609d0720e517b51d5051318e89a9c5f82602ea23b003feaecf011c6e997873b45841edbe0fed869794ef473a264900c2e02135adfc70b165f80c97f885a WHIRLPOOL 93412136091643cf2f4ca1ec0de04231c6edd22aa7caf1124511773afbd8ccc9d3abc1c75475c16dc2a4a806274f50fc43eaff2c723ce19910e198d004e60a37
diff --git a/dev-python/pysnmp/pysnmp-3.4.4-r1.ebuild b/dev-python/pysnmp/pysnmp-3.4.4-r1.ebuild
deleted file mode 100644 (file)
index 518f21d..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-DISTUTILS_SINGLE_IMPL=1
-
-inherit distutils-r1
-
-DESCRIPTION="SNMP framework in Python. Not a wrapper"
-HOMEPAGE="http://pysnmp.sf.net/ https://pypi.python.org/pypi/pysnmp"
-SRC_URI="mirror://sourceforge/pysnmp/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND=""
-
-DOCS="CHANGES COMPATIBILITY README"
-
-pkg_setup() {
-       python-single-r1_pkg_setup
-}
-
-src_install(){
-       distutils-r1_src_install
-
-       dohtml -r docs/
-       insinto /usr/share/doc/${PF}
-       doins -r examples
-}
similarity index 68%
rename from dev-python/pysnmp/pysnmp-4.2.2-r1.ebuild
rename to dev-python/pysnmp/pysnmp-4.3.0.ebuild
index e1515895d9884903250b3bd7e999b1150a24fddd..432ce58a297627751eeaad819f03cf7a39b86352 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-PYTHON_COMPAT=( python{2_7,3_3} )
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
 
 inherit distutils-r1
 
@@ -14,17 +14,29 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
-IUSE="examples"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+IUSE="doc examples"
 
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+"
 RDEPEND="
        >=dev-python/pyasn1-0.1.2[${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() {
-       local HTML_DOCS=( docs/*.{html,gif} )
+       use doc && local HTML_DOCS=( docs/build/html/* )
        use examples && local EXAMPLES=( examples/. docs/mibs )
 
        distutils-r1_python_install_all