1 |
commit: 64b19e1a4f5aa3ef52d6ebb7ef68bd9889305799 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 11 14:18:38 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 11 14:19:12 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64b19e1a |
7 |
|
8 |
dev-python/pysnmp: Add live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
dev-python/pysnmp/pysnmp-999999.ebuild | 52 ++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pysnmp/pysnmp-999999.ebuild b/dev-python/pysnmp/pysnmp-999999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..7d9fdd38f8d |
19 |
--- /dev/null |
20 |
+++ b/dev-python/pysnmp/pysnmp-999999.ebuild |
21 |
@@ -0,0 +1,52 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
27 |
+inherit distutils-r1 git-r3 |
28 |
+ |
29 |
+DESCRIPTION="Python SNMP library" |
30 |
+HOMEPAGE="http://snmplabs.com/pysnmp/ https://pypi.org/project/pysnmp/ https://github.com/etingof/pysnmp" |
31 |
+EGIT_REPO_URI="https://github.com/etingof/pysnmp" |
32 |
+ |
33 |
+LICENSE="BSD" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="" |
36 |
+IUSE="doc examples" |
37 |
+ |
38 |
+DEPEND=" |
39 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
40 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
41 |
+" |
42 |
+RDEPEND=" |
43 |
+ >=dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}] |
44 |
+ dev-python/pysmi[${PYTHON_USEDEP}] |
45 |
+ || ( |
46 |
+ dev-python/pycryptodome[${PYTHON_USEDEP}] |
47 |
+ dev-python/pycrypto[${PYTHON_USEDEP}] |
48 |
+ ) |
49 |
+" |
50 |
+ |
51 |
+python_compile_all() { |
52 |
+ default |
53 |
+ |
54 |
+ if use doc; then |
55 |
+ touch docs/source/conf.py |
56 |
+ emake -C docs html |
57 |
+ fi |
58 |
+} |
59 |
+ |
60 |
+python_install_all() { |
61 |
+ use doc && local HTML_DOCS=( docs/build/html/* ) |
62 |
+ docinto examples |
63 |
+ use examples && dodoc -r examples/* docs/mibs |
64 |
+ |
65 |
+ distutils-r1_python_install_all |
66 |
+} |
67 |
+ |
68 |
+pkg_postinst() { |
69 |
+ elog "You may also be interested in the following packages: " |
70 |
+ elog "dev-python/pysnmp-apps - example programs using pysnmp" |
71 |
+ elog "dev-python/pysnmp-mibs - IETF and other mibs" |
72 |
+ elog "dev-python/pysmi - to dump MIBs in python format" |
73 |
+} |