mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] python3-adbus: new package
@ 2020-11-11 15:32 Lars Pedersen
  2020-11-13  8:35 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Pedersen @ 2020-11-11 15:32 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

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

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
 rules/python3-adbus.in   | 11 +++++++
 rules/python3-adbus.make | 63 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 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..238826253
--- /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..a41af6207
--- /dev/null
+++ b/rules/python3-adbus.make
@@ -0,0 +1,63 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Lars Pedersen <lapeddk@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.txt;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 <lapeddk@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)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/python3-adbus.clean:
+#	@$(call targetinfo)
+#	@$(call clean_pkg, PYTHON3_ADBUS)
+
+# vim: syntax=make
-- 
2.28.0


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-13  8:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 15:32 [ptxdist] [PATCH] python3-adbus: new package Lars Pedersen
2020-11-13  8:35 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox