Signed-off-by: Roland Hieber <[email protected]>
---
 rules/host-python3-odfpy.in   |  6 ++++++
 rules/host-python3-odfpy.make | 36 +++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)
 create mode 100644 rules/host-python3-odfpy.in
 create mode 100644 rules/host-python3-odfpy.make

diff --git a/rules/host-python3-odfpy.in b/rules/host-python3-odfpy.in
new file mode 100644
index 000000000000..45a9d7b5c5cd
--- /dev/null
+++ b/rules/host-python3-odfpy.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PYTHON3_ODFPY
+       tristate
+       default y if ALLYES
+       select HOST_SYSTEM_PYTHON3
diff --git a/rules/host-python3-odfpy.make b/rules/host-python3-odfpy.make
new file mode 100644
index 000000000000..fb9489ead33c
--- /dev/null
+++ b/rules/host-python3-odfpy.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2024 by Roland Hieber <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_HOST_PYTHON3_ODFPY) += host-python3-odfpy
+
+#
+# Paths and names
+#
+HOST_PYTHON3_ODFPY_VERSION     := 1.4.1
+HOST_PYTHON3_ODFPY_MD5         := d1a186ae75b2ae038a8aab1396444342
+HOST_PYTHON3_ODFPY             := odfpy-$(HOST_PYTHON3_ODFPY_VERSION)
+HOST_PYTHON3_ODFPY_SUFFIX      := tar.gz
+HOST_PYTHON3_ODFPY_URL         := $(call ptx/mirror-pypi, odfpy, 
$(HOST_PYTHON3_ODFPY).$(HOST_PYTHON3_ODFPY_SUFFIX))
+HOST_PYTHON3_ODFPY_SOURCE      := 
$(SRCDIR)/$(HOST_PYTHON3_ODFPY).$(HOST_PYTHON3_ODFPY_SUFFIX)
+HOST_PYTHON3_ODFPY_DIR         := $(HOST_BUILDDIR)/$(HOST_PYTHON3_ODFPY)
+HOST_PYTHON3_ODFPY_LICENSE     := GPL-2.0-or-later OR Apache-2.0
+HOST_PYTHON3_ODFPY_LICENSE_FILES       := \
+       
file://README.md;startline=44;endline=59;md5=c8daa7bfd0c10a4e41706233c6a42f25 \
+       file://APACHE-LICENSE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \
+       file://GPL-LICENSE-2.txt;md5=751419260aa954499f7abaabaa882bbe
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_PYTHON3_ODFPY_CONF_TOOL   := python3
+
+# vim: syntax=make
-- 
2.39.2


Reply via email to