Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 1 | SUMMARY = "The Cython language" |
| 2 | HOMEPAGE = "https://pypi.org/project/Cython/" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 3 | DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ |
| 4 | It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ |
| 5 | and the messy, low-level world of C." |
| 6 | SECTION = "devel/python" |
| 7 | LICENSE = "Apache-2.0" |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa" |
| 9 | PYPI_PACKAGE = "Cython" |
| 10 | BBCLASSEXTEND = "native nativesdk" |
| 11 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 12 | SRC_URI[sha256sum] = "8733cf4758b79304f2a4e39ebfac5e92341bce47bcceb26c1254398b2f8c1af7" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar" |
| 14 | |
| 15 | inherit pypi |
| 16 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | RDEPENDS:${PN}:class-target += "\ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | ${PYTHON_PN}-misc \ |
| 19 | ${PYTHON_PN}-netserver \ |
| 20 | ${PYTHON_PN}-pkgutil \ |
| 21 | ${PYTHON_PN}-pyparsing \ |
| 22 | ${PYTHON_PN}-setuptools \ |
| 23 | ${PYTHON_PN}-shell \ |
| 24 | ${PYTHON_PN}-xml \ |
| 25 | " |
| 26 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | RDEPENDS:${PN}:class-nativesdk += "\ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 28 | nativesdk-${PYTHON_PN}-misc \ |
| 29 | nativesdk-${PYTHON_PN}-netserver \ |
| 30 | nativesdk-${PYTHON_PN}-pkgutil \ |
| 31 | nativesdk-${PYTHON_PN}-pyparsing \ |
| 32 | nativesdk-${PYTHON_PN}-setuptools \ |
| 33 | nativesdk-${PYTHON_PN}-shell \ |
| 34 | nativesdk-${PYTHON_PN}-xml \ |
| 35 | " |
| 36 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | do_install:append() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 38 | # Make sure we use /usr/bin/env python |
| 39 | for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do |
| 40 | sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT |
| 41 | done |
| 42 | } |