summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2018-06-27 16:17:48 +0100
committerTony Vroon <chainsaw@gentoo.org>2018-06-27 16:17:48 +0100
commitfa600bcdda22e5a1a8b59a7229ca2c9cbb2de2d5 (patch)
treea8e7867879ad504b74d2b4429e71bc503835166c /dev-python/textfsm
parentnet-analyzer/smokeping: Old. (diff)
downloadgentoo-fa600bcdda22e5a1a8b59a7229ca2c9cbb2de2d5.tar.gz
gentoo-fa600bcdda22e5a1a8b59a7229ca2c9cbb2de2d5.tar.bz2
gentoo-fa600bcdda22e5a1a8b59a7229ca2c9cbb2de2d5.zip
dev-python/textfsm: New addition.
Ebuild by epinephrine with minor changes by me. Closes: https://bugs.gentoo.org/652250 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-python/textfsm')
-rw-r--r--dev-python/textfsm/Manifest1
-rw-r--r--dev-python/textfsm/metadata.xml12
-rw-r--r--dev-python/textfsm/textfsm-0.4.0.ebuild25
3 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/textfsm/Manifest b/dev-python/textfsm/Manifest
new file mode 100644
index 000000000000..13ceadd26437
--- /dev/null
+++ b/dev-python/textfsm/Manifest
@@ -0,0 +1 @@
+DIST textfsm-0.4.0.tar.gz 38355 BLAKE2B ae59973585ab0e1eed04ec300139165cf0634c154056f73697057928d2e17f25c7934171ab20825c6fdfb35f09b18cc0438443b28af356ae6be7a28f4cb8a5af SHA512 fe7d49c48b6e74859180b911a72e8c21bcf263b0403e8fdf28f9790633fb5b48ee2465eb3208c6649e489cb5fda3c4751e1748483042c934285636d190b01998
diff --git a/dev-python/textfsm/metadata.xml b/dev-python/textfsm/metadata.xml
new file mode 100644
index 000000000000..8d38cd9663b8
--- /dev/null
+++ b/dev-python/textfsm/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">google/textfsm</remote-id>
+ <remote-id type="pypi">textfsm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/textfsm/textfsm-0.4.0.ebuild b/dev-python/textfsm/textfsm-0.4.0.ebuild
new file mode 100644
index 000000000000..68f74eebb2d5
--- /dev/null
+++ b/dev-python/textfsm/textfsm-0.4.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Python module for parsing semi-structured text into python tables."
+HOMEPAGE="https://github.com/google/textfsm/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="examples"
+
+python_install_all() {
+ distutils-r1_python_install_all
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}