diff mbox series

[isar-cip-core,4/6] Add python3-shtab package

Message ID e2eca07cdf05c776605a09b30c792f0d8ec1c0f8.1647238161.git.jan.kiszka@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series EFI Boot Guard 0.10, improvements for start-qemu, kernel update | expand

Commit Message

Jan Kiszka March 14, 2022, 6:09 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

Will be needed for EFI Boot Guard 0.10.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 recipes-python/shtab/files/rules            | 21 +++++++++++++
 recipes-python/shtab/python3-shtab_1.4.2.bb | 35 +++++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100755 recipes-python/shtab/files/rules
 create mode 100644 recipes-python/shtab/python3-shtab_1.4.2.bb
diff mbox series

Patch

diff --git a/recipes-python/shtab/files/rules b/recipes-python/shtab/files/rules
new file mode 100755
index 0000000..43ba686
--- /dev/null
+++ b/recipes-python/shtab/files/rules
@@ -0,0 +1,21 @@ 
+#!/usr/bin/make -f
+#
+# Copyright (c) Siemens AG, 2022
+#
+# Authors:
+#  Felix Moessbauer <felix.moessbauer@siemens.com>
+#
+# This file is subject to the terms and conditions of the MIT License.
+# See COPYING.MIT file in the top-level directory.
+#
+
+export DH_VERBOSE=1
+export PYBUILD_VERBOSE=1
+export PYBUILD_NAME=pasta
+
+ifneq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
+export PYBUILD_DISABLE=test
+endif
+
+%:
+	dh $@ --with python3 --buildsystem=pybuild
diff --git a/recipes-python/shtab/python3-shtab_1.4.2.bb b/recipes-python/shtab/python3-shtab_1.4.2.bb
new file mode 100644
index 0000000..d5bc465
--- /dev/null
+++ b/recipes-python/shtab/python3-shtab_1.4.2.bb
@@ -0,0 +1,35 @@ 
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2022
+#
+# Authors:
+#  Jan Kiszka <jan.kiszka@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+inherit dpkg
+
+SRC_URI = " \
+    https://github.com/iterative/shtab/archive/refs/tags/v1.4.2.tar.gz;downloadfilename=${PN}-${PV}.tar.gz \
+    file://rules \
+    "
+SRC_URI[sha256sum] = "5e6ef745c223ef1a01a2db491a8ec5c02c8291067328b17695c9a44f5b7d6fe6"
+
+S = "${WORKDIR}/shtab-${PV}"
+
+DEBIAN_BUILD_DEPENDS = " \
+    dh-python, \
+    python3-all, \
+    python3-setuptools, \
+    python3-setuptools-scm, \
+    python3-toml, \
+    "
+
+DEB_BUILD_PROFILES = "nocheck"
+
+do_prepare_build[cleandirs] += "${S}/debian"
+do_prepare_build() {
+    deb_debianize
+}