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