summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-ninja_1.13.0.bb
blob: 35a192a268316e7278375f4ac03a329a1c72195b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SUMMARY = "Ninja is a small build system with a focus on speed"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE_Apache_20;md5=19cbd64715b51267a47bf3750cc6a8a5"

PYPI_PACKAGE = "ninja"
PYPI_ARCHIVE_NAME_PREFIX = "pypi-"

inherit pypi python_setuptools_build_meta
SRC_URI[sha256sum] = "4a40ce995ded54d9dc24f8ea37ff3bf62ad192b547f6c7126e7e25045e76f978"

SRC_URI += "file://no-scikit-build.patch "

DEPENDS += "python3-setuptools-scm-native"

do_install:append () {
	rm -rf ${D}${bindir}
	install -m 0644 ${S}/ninja-upstream/misc/ninja_syntax.py ${D}${PYTHON_SITEPACKAGES_DIR}/ninja/ninja_syntax.py
}

do_configure:prepend() {
	echo 'version = "${PV}"' > ${S}/src/ninja/_version.py
}

RDEPENDS:${PN} = " \
    ninja \
    python3-io \
    python3-json \
    python3-ninja-syntax \
"

BBCLASSEXTEND = "native nativesdk"