mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] python3-pyusb: new package
@ 2023-04-28  8:53 Jan Luebbe
  2023-05-02  7:06 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Luebbe @ 2023-04-28  8:53 UTC (permalink / raw)
  To: ptxdist; +Cc: Jan Luebbe

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 rules/python3-pyusb.in   | 10 ++++++++
 rules/python3-pyusb.make | 54 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 rules/python3-pyusb.in
 create mode 100644 rules/python3-pyusb.make

diff --git a/rules/python3-pyusb.in b/rules/python3-pyusb.in
new file mode 100644
index 000000000000..c20b081f3494
--- /dev/null
+++ b/rules/python3-pyusb.in
@@ -0,0 +1,10 @@
+## SECTION=python3
+
+config PYTHON3_PYUSB
+	tristate
+	select HOST_PYTHON3_SETUPTOOLS_SCM
+	select PYTHON3
+	select LIBUSB
+	prompt "pyusb"
+	help
+	  Easy USB access for Python
diff --git a/rules/python3-pyusb.make b/rules/python3-pyusb.make
new file mode 100644
index 000000000000..a717e7883e74
--- /dev/null
+++ b/rules/python3-pyusb.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 by Jan Luebbe <jlu@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYUSB) += python3-pyusb
+
+#
+# Paths and names
+#
+PYTHON3_PYUSB_VERSION		:= 1.2.1
+PYTHON3_PYUSB_MD5		:= 880008dff32dac8f58076b4e534492d9
+PYTHON3_PYUSB			:= pyusb-$(PYTHON3_PYUSB_VERSION)
+PYTHON3_PYUSB_SUFFIX		:= tar.gz
+PYTHON3_PYUSB_URL		:= $(call ptx/mirror-pypi, pyusb, $(PYTHON3_PYUSB).$(PYTHON3_PYUSB_SUFFIX))
+PYTHON3_PYUSB_SOURCE		:= $(SRCDIR)/$(PYTHON3_PYUSB).$(PYTHON3_PYUSB_SUFFIX)
+PYTHON3_PYUSB_DIR		:= $(BUILDDIR)/$(PYTHON3_PYUSB)
+PYTHON3_PYUSB_LICENSE		:= BSD-3-Clause
+PYTHON3_PYUSB_LICENSE_FILES	:= \
+	file://LICENSE;md5=e64a29fcd3c3dd356a24e235dfcb3905
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYUSB_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pyusb.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-pyusb)
+	@$(call install_fixup, python3-pyusb,PRIORITY,optional)
+	@$(call install_fixup, python3-pyusb,SECTION,base)
+	@$(call install_fixup, python3-pyusb,AUTHOR,"Jan Luebbe <jlu@pengutronix.de>")
+	@$(call install_fixup, python3-pyusb,DESCRIPTION,missing)
+
+	@$(call install_glob, python3-pyusb, 0, 0, -, \
+		$(PYTHON3_SITEPACKAGES),, *.py)
+
+	@$(call install_finish, python3-pyusb)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.39.2




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

end of thread, other threads:[~2023-05-02  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-28  8:53 [ptxdist] [PATCH] python3-pyusb: new package Jan Luebbe
2023-05-02  7:06 ` [ptxdist] [APPLIED] " Michael Olbrich

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