Signed-off-by: Philipp Zabel <[email protected]>
---
 rules/python3-psutil.in   |  8 ++++++
 rules/python3-psutil.make | 54 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 rules/python3-psutil.in
 create mode 100644 rules/python3-psutil.make

diff --git a/rules/python3-psutil.in b/rules/python3-psutil.in
new file mode 100644
index 000000000000..8887dd88c282
--- /dev/null
+++ b/rules/python3-psutil.in
@@ -0,0 +1,8 @@
+## SECTION=python3
+
+config PYTHON3_PSUTIL
+       tristate
+       select PYTHON3
+       prompt "psutil"
+       help
+         Cross-platform lib for process and system monitoring in Python.
diff --git a/rules/python3-psutil.make b/rules/python3-psutil.make
new file mode 100644
index 000000000000..44e58ffc9a4e
--- /dev/null
+++ b/rules/python3-psutil.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PSUTIL) += python3-psutil
+
+#
+# Paths and names
+#
+PYTHON3_PSUTIL_VERSION := 5.7.2
+PYTHON3_PSUTIL_MD5     := 50bf39b4faa268ba1da8a9730bb38bb6
+PYTHON3_PSUTIL         := psutil-$(PYTHON3_PSUTIL_VERSION)
+PYTHON3_PSUTIL_SUFFIX  := tar.gz
+PYTHON3_PSUTIL_URL     := 
https://pypi.python.org/packages/source/p/psutil/$(PYTHON3_PSUTIL).$(PYTHON3_PSUTIL_SUFFIX)
+PYTHON3_PSUTIL_SOURCE  := $(SRCDIR)/$(PYTHON3_PSUTIL).$(PYTHON3_PSUTIL_SUFFIX)
+PYTHON3_PSUTIL_DIR     := $(BUILDDIR)/$(PYTHON3_PSUTIL)
+PYTHON3_PSUTIL_LICENSE := BSD-3-Clause
+PYTHON3_PSUTIL_LICENSE_FILES := \
+       file://LICENSE;md5=e35fd9f271d19d5f742f20a9d1f8bb8b
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PSUTIL_CONF_TOOL       := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-psutil.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, python3-psutil)
+       @$(call install_fixup, python3-psutil, PRIORITY, optional)
+       @$(call install_fixup, python3-psutil, SECTION, base)
+       @$(call install_fixup, python3-psutil, AUTHOR, "Philipp Zabel 
<[email protected]>")
+       @$(call install_fixup, python3-psutil, DESCRIPTION, missing)
+
+       @$(call install_glob, python3-psutil, 0, 0, -, \
+               $(PYTHON3_SITEPACKAGES),, *.py)
+
+       @$(call install_finish, python3-psutil)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to