D-Bus Binding for Python utilizing the Python’s asyncio module. Requires
libsystemd (sd-bus).

Signed-off-by: Lars Pedersen <lape...@gmail.com>
---
v2:
 - Fixed indentation in .in file
 - Removed clean section in .make file
 - Fixed wrong name for LICENSE file in .make file

 rules/python3-adbus.in   | 11 ++++++++
 rules/python3-adbus.make | 55 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 rules/python3-adbus.in
 create mode 100644 rules/python3-adbus.make

diff --git a/rules/python3-adbus.in b/rules/python3-adbus.in
new file mode 100644
index 000000000..47b7e5c81
--- /dev/null
+++ b/rules/python3-adbus.in
@@ -0,0 +1,11 @@
+## SECTION=python3
+
+config PYTHON3_ADBUS
+       tristate
+       prompt "python3-adbus"
+       select PYTHON3
+       select HOST_PYTHON3_SETUPTOOLS
+       select HOST_CYTHON3
+       select SYSTEMD
+       help
+         D-Bus Binding for Python using systemd sd-bus API and utilizing the 
Python's asyncio module.
diff --git a/rules/python3-adbus.make b/rules/python3-adbus.make
new file mode 100644
index 000000000..6f0dd91b7
--- /dev/null
+++ b/rules/python3-adbus.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Lars Pedersen <lape...@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_ADBUS) += python3-adbus
+
+#
+# Paths and names
+#
+PYTHON3_ADBUS_VERSION  := 1.1.3
+PYTHON3_ADBUS_MD5      := 6802bdf83110edaf3b76dcd00f7aadbf
+PYTHON3_ADBUS          := adbus-$(PYTHON3_ADBUS_VERSION)
+PYTHON3_ADBUS_SUFFIX   := tar.gz
+PYTHON3_ADBUS_URL      := $(call ptx/mirror-pypi, adbus, 
$(PYTHON3_ADBUS).$(PYTHON3_ADBUS_SUFFIX))
+PYTHON3_ADBUS_SOURCE   := $(SRCDIR)/$(PYTHON3_ADBUS).$(PYTHON3_ADBUS_SUFFIX)
+PYTHON3_ADBUS_DIR      := $(BUILDDIR)/$(PYTHON3_ADBUS)
+PYTHON3_ADBUS_LICENSE  := MIT
+PYTHON3_ADBUS_LICENSE_FILES := \
+       file://LICENSE;md5=da428c97c811cd93a27a66732d9597ed
+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_ADBUS_CONF_TOOL        := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-adbus.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, python3-adbus)
+       @$(call install_fixup, python3-adbus,PRIORITY,optional)
+       @$(call install_fixup, python3-adbus,SECTION,base)
+       @$(call install_fixup, python3-adbus,AUTHOR,"Lars Pedersen 
<lape...@gmail.com>")
+       @$(call install_fixup, python3-adbus,DESCRIPTION,missing)
+
+       @$(call install_glob, python3-adbus, 0, 0, -, \
+               $(PYTHON3_SITEPACKAGES),, *.py)
+
+       @$(call install_finish, python3-adbus)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.28.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de

Reply via email to