From: Jan Luebbe <jlu@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Jan Luebbe <jlu@pengutronix.de>
Subject: [ptxdist] [PATCH] python3-pyusb: new package
Date: Fri, 28 Apr 2023 10:53:55 +0200 [thread overview]
Message-ID: <20230428085355.167793-1-jlu@pengutronix.de> (raw)
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
next reply other threads:[~2023-04-28 8:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-28 8:53 Jan Luebbe [this message]
2023-05-02 7:06 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230428085355.167793-1-jlu@pengutronix.de \
--to=jlu@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox