diff options
Diffstat (limited to 'meta/recipes-devtools/python/python-cython.inc')
-rw-r--r-- | meta/recipes-devtools/python/python-cython.inc | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/meta/recipes-devtools/python/python-cython.inc b/meta/recipes-devtools/python/python-cython.inc index da6eba254f..87a2e88a1a 100644 --- a/meta/recipes-devtools/python/python-cython.inc +++ b/meta/recipes-devtools/python/python-cython.inc | |||
@@ -1,40 +1,45 @@ | |||
1 | SUMMARY = "The Cython language" | ||
2 | HOMEPAGE = "https://pypi.org/project/Cython/" | ||
1 | DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ | 3 | 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 \ | 4 | 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." | 5 | and the messy, low-level world of C." |
4 | SECTION = "devel/python" | 6 | SECTION = "devel/python" |
5 | LICENSE = "Apache-2.0" | 7 | LICENSE = "Apache-2.0" |
6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa" | 8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c" |
7 | PYPI_PACKAGE = "Cython" | 9 | PYPI_PACKAGE = "Cython" |
8 | BBCLASSEXTEND = "native nativesdk" | 10 | BBCLASSEXTEND = "native nativesdk" |
9 | 11 | ||
10 | SRC_URI[sha256sum] = "df6b83c7a6d1d967ea89a2903e4a931377634a297459652e4551734c48195406" | 12 | SRC_URI[sha256sum] = "dcc96739331fb854dcf503f94607576cfe8488066c61ca50dfd55836f132de99" |
11 | UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar" | 13 | UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar" |
12 | 14 | ||
13 | inherit pypi | 15 | inherit pypi |
14 | 16 | ||
15 | RDEPENDS_${PN}_class-target += "\ | 17 | RDEPENDS:${PN}:class-target += "\ |
16 | ${PYTHON_PN}-misc \ | 18 | python3-misc \ |
17 | ${PYTHON_PN}-netserver \ | 19 | python3-netserver \ |
18 | ${PYTHON_PN}-pkgutil \ | 20 | python3-pkgutil \ |
19 | ${PYTHON_PN}-pyparsing \ | 21 | python3-pyparsing \ |
20 | ${PYTHON_PN}-setuptools \ | 22 | python3-setuptools \ |
21 | ${PYTHON_PN}-shell \ | 23 | python3-shell \ |
22 | ${PYTHON_PN}-xml \ | 24 | python3-xml \ |
23 | " | 25 | " |
24 | 26 | ||
25 | RDEPENDS_${PN}_class-nativesdk += "\ | 27 | RDEPENDS:${PN}:class-nativesdk += "\ |
26 | nativesdk-${PYTHON_PN}-misc \ | 28 | nativesdk-python3-misc \ |
27 | nativesdk-${PYTHON_PN}-netserver \ | 29 | nativesdk-python3-netserver \ |
28 | nativesdk-${PYTHON_PN}-pkgutil \ | 30 | nativesdk-python3-pkgutil \ |
29 | nativesdk-${PYTHON_PN}-pyparsing \ | 31 | nativesdk-python3-pyparsing \ |
30 | nativesdk-${PYTHON_PN}-setuptools \ | 32 | nativesdk-python3-setuptools \ |
31 | nativesdk-${PYTHON_PN}-shell \ | 33 | nativesdk-python3-shell \ |
32 | nativesdk-${PYTHON_PN}-xml \ | 34 | nativesdk-python3-xml \ |
33 | " | 35 | " |
34 | 36 | ||
35 | do_install_append() { | 37 | do_install:append() { |
36 | # Make sure we use /usr/bin/env python | 38 | # Make sure we use /usr/bin/env python |
37 | for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do | 39 | for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do |
38 | sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT | 40 | sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT |
39 | done | 41 | done |
42 | |||
43 | # remove build paths from generated sources | ||
44 | sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c | ||
40 | } | 45 | } |