diff mbox series

[1/2] Add recipe: pocketpy 2.0.2

Message ID 20241121202835.2703871-1-mail@michael-fitzmayer.de
State Under Review
Headers show
Series [1/2] Add recipe: pocketpy 2.0.2 | expand

Commit Message

Michael Fitzmayer Nov. 21, 2024, 8:28 p.m. UTC
pocketpy is a portable Python 3.x Interpreter in Modern C.

It aims to be an alternative to lua for game scripting, with elegant
syntax, powerful features and competitive performance.  pkpy is
extremely easy to embed via a single header file pocketpy.h, without
external dependencies.

Signed-off-by: Michael Fitzmayer <mail@michael-fitzmayer.de>
---
 .../pocketpy/pocketpy_2.0.2.bb                | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.2.bb
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.2.bb b/meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.2.bb
new file mode 100644
index 000000000..28ac67d8d
--- /dev/null
+++ b/meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.2.bb
@@ -0,0 +1,32 @@ 
+SUMMARY = "A Portable Python 3.x Interpreter in Modern C."
+DESCRIPTION = "pkpy is a lightweight(~15K LOC) Python 3.x \
+              interpreter for game scripting, written in C11. \
+              It aims to be an alternative to lua for game \
+              scripting, with elegant syntax, powerful features \
+              and competitive performance.  pkpy is extremely \
+              easy to embed via a single header file pocketpy.h, \
+              without external dependencies. \
+              "
+HOMEPAGE = "https://pocketpy.dev/"
+BUGTRACKER = "https://github.com/pocketpy/pocketpy/issues"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8cdfa87bc5e09bc07f8cf64135026d91"
+
+SRC_URI = "git://github.com/pocketpy/pocketpy.git;protocol=https;branch=main"
+SRCREV = "b5a443efa11e7d6576025d1b9a397ead9e9260c9"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+do_install() {
+    install -d ${D}${libdir}
+    install -m 0644 ${B}/libpocketpy.so ${D}${libdir}/
+    install -d ${D}${includedir}/pocketpy
+    cp -r ${S}/include/* ${D}${includedir}/pocketpy/
+}
+
+FILES:${PN} = "${libdir}/libpocketpy.so"
+FILES:${PN}-dev = "${includedir}/pocketpy"
+FILES:${PN}-dbg += "${libdir}/.debug/libpocketpy.so"