dev-python/pymdstat: New package, ebuild written by me
authorJustin Lecher <jlec@gentoo.org>
Wed, 17 Feb 2016 08:27:14 +0000 (09:27 +0100)
committerJustin Lecher <jlec@gentoo.org>
Wed, 17 Feb 2016 08:57:11 +0000 (09:57 +0100)
Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/pymdstat/Manifest [new file with mode: 0644]
dev-python/pymdstat/metadata.xml [new file with mode: 0644]
dev-python/pymdstat/pymdstat-0.4.2.ebuild [new file with mode: 0644]

diff --git a/dev-python/pymdstat/Manifest b/dev-python/pymdstat/Manifest
new file mode 100644 (file)
index 0000000..7f4fbdd
--- /dev/null
@@ -0,0 +1 @@
+DIST pymdstat-0.4.2.tar.gz 5010 SHA256 fef53c6f1864fdfe8616d6e985498b7f05ef19d0952f7ec3e7f8379298b9ada9 SHA512 2e3c07d59151069962e1ba601b3751b331e233fdc6bbdeb0cada69ce36a731c12bcc6447218cc0c1ae4dd63d39d2be2bc3677aba739797cc534c5e38d1c72458 WHIRLPOOL 781fbc8b2217ed1e36a798fd05cc9d309085b75a2f4d56cf280bba63626c1d65a1bed1200d07d891261821e1e0f4a0733f66ba3f53e626b6d8be6a1600d3f801
diff --git a/dev-python/pymdstat/metadata.xml b/dev-python/pymdstat/metadata.xml
new file mode 100644 (file)
index 0000000..312478f
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>python@gentoo.org</email>
+    <name>Python</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="pypi">pymdstat</remote-id>
+    <maintainer status="unknown">
+      <email>nicolas@nicolargo.com</email>
+      <name>Nicolas Hennion</name>
+    </maintainer>
+  </upstream>
+</pkgmetadata>
diff --git a/dev-python/pymdstat/pymdstat-0.4.2.ebuild b/dev-python/pymdstat/pymdstat-0.4.2.ebuild
new file mode 100644 (file)
index 0000000..46989d0
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_{3,4,5}} pypy pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library to parse Linux /proc/mdstat"
+HOMEPAGE="https://github.com/nicolargo/pymdstat http://pypi.python.org/pypi/pymdstat"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]"
+
+# Not included
+RESTRICT=test
+
+python_test() {
+       ${PYTHON} unitest.py || die
+}