From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- repo/cython/cython-test-fix.patch | 23 +++++++++++++++++++++++ repo/cython/cython.xibuild | 29 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 repo/cython/cython-test-fix.patch create mode 100644 repo/cython/cython.xibuild (limited to 'repo/cython') diff --git a/repo/cython/cython-test-fix.patch b/repo/cython/cython-test-fix.patch new file mode 100644 index 0000000..58ddce1 --- /dev/null +++ b/repo/cython/cython-test-fix.patch @@ -0,0 +1,23 @@ +From 9bc0abecb3a08ea13313200a51f1ee26a65e5be3 Mon Sep 17 00:00:00 2001 +From: Stefan Behnel +Date: Sat, 3 Apr 2021 08:23:44 +0200 +Subject: [PATCH] Make a helper function in a C++ test correctly propagate + exceptions so that it won't have to spit out compiler warnings. + +--- + tests/run/cpp_stl_conversion.pyx | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/run/cpp_stl_conversion.pyx b/tests/run/cpp_stl_conversion.pyx +index 5278c677ae..ccebc700ee 100644 +--- a/tests/run/cpp_stl_conversion.pyx ++++ b/tests/run/cpp_stl_conversion.pyx +@@ -15,7 +15,7 @@ py_set = set + py_xrange = xrange + py_unicode = unicode + +-cdef string add_strings(string a, string b): ++cdef string add_strings(string a, string b) except *: + return a + b + + def normalize(bytes b): diff --git a/repo/cython/cython.xibuild b/repo/cython/cython.xibuild new file mode 100644 index 0000000..aebe286 --- /dev/null +++ b/repo/cython/cython.xibuild @@ -0,0 +1,29 @@ +#!/bin/sh + +NAME="cython" +DESC="Cython is an optimising static compiler for both the Python & the extended Cython programming languages." + +MAKEDEPS="python" + +PKG_VER=0.29.24 +SOURCE="https://github.com/cython/cython/archive/$PKG_VER.tar.gz" + +ADDITIONAL=" +cython-test-fix.patch +" + +prepare () { + apply_patches +} + +build() { + python3 setup.py build +} + +package() { + python3 setup.py install --prefix=/usr --root="$PKG_DEST" + + install -Dm 644 LICENSE.txt "$PKG_DEST/usr/share/licenses/cython/license" + install -Dm 644 README.rst "$PKG_DEST/usr/share/doc/cython/readme.rst" +} + -- cgit v1.2.1