rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ |
| 2 | It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ |
| 3 | and the messy, low-level world of C." |
| 4 | SECTION = "devel/python" |
| 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa" |
| 7 | PYPI_PACKAGE = "Cython" |
| 8 | BBCLASSEXTEND = "native nativesdk" |
| 9 | |
| 10 | SRC_URI[md5sum] = "0cb620e1259818e4ecc1a056e8c3a8be" |
| 11 | SRC_URI[sha256sum] = "b64575241f64f6ec005a4d4137339fb0ba5e156e826db2fdb5f458060d9979e0" |
| 12 | |
| 13 | inherit pypi |
| 14 | |
| 15 | RDEPENDS_${PN}_class-target += "\ |
| 16 | ${PYTHON_PN}-misc \ |
| 17 | ${PYTHON_PN}-netserver \ |
| 18 | ${PYTHON_PN}-pkgutil \ |
| 19 | ${PYTHON_PN}-pyparsing \ |
| 20 | ${PYTHON_PN}-setuptools \ |
| 21 | ${PYTHON_PN}-shell \ |
| 22 | ${PYTHON_PN}-xml \ |
| 23 | " |
| 24 | |
| 25 | RDEPENDS_${PN}_class-nativesdk += "\ |
| 26 | nativesdk-${PYTHON_PN}-misc \ |
| 27 | nativesdk-${PYTHON_PN}-netserver \ |
| 28 | nativesdk-${PYTHON_PN}-pkgutil \ |
| 29 | nativesdk-${PYTHON_PN}-pyparsing \ |
| 30 | nativesdk-${PYTHON_PN}-setuptools \ |
| 31 | nativesdk-${PYTHON_PN}-shell \ |
| 32 | nativesdk-${PYTHON_PN}-xml \ |
| 33 | " |
| 34 | |
| 35 | do_install_append() { |
| 36 | # Make sure we use /usr/bin/env python |
| 37 | for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do |
| 38 | sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT |
| 39 | done |
| 40 | } |