diff options
Diffstat (limited to 'meta/recipes-extended/newt/libnewt-python_0.52.14.bb')
-rw-r--r-- | meta/recipes-extended/newt/libnewt-python_0.52.14.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-extended/newt/libnewt-python_0.52.14.bb b/meta/recipes-extended/newt/libnewt-python_0.52.14.bb new file mode 100644 index 0000000000..9af2d5d91f --- /dev/null +++ b/meta/recipes-extended/newt/libnewt-python_0.52.14.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | require recipes-extended/newt/libnewt_${PV}.bb | ||
2 | |||
3 | SUMMARY .= " - python" | ||
4 | DEPENDS = "libnewt python" | ||
5 | RDEPENDS_${PN} += "python-core" | ||
6 | |||
7 | inherit pythonnative python-dir | ||
8 | |||
9 | EXTRA_OECONF += "--with-python" | ||
10 | EXTRA_OEMAKE += "PYTHONVERS=${PYTHON_DIR}" | ||
11 | |||
12 | |||
13 | do_compile () { | ||
14 | VERSION="$(sed -n 's/^VERSION = //p' Makefile)" | ||
15 | oe_runmake "LIBNEWTSH=${STAGING_LIBDIR}/libnewt.so.$VERSION" _snackmodule.so | ||
16 | } | ||
17 | |||
18 | do_install () { | ||
19 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} | ||
20 | install -m 0755 ${PYTHON_DIR}/_snackmodule.so ${D}${PYTHON_SITEPACKAGES_DIR}/ | ||
21 | install -m 0644 snack.py ${D}${PYTHON_SITEPACKAGES_DIR}/ | ||
22 | } | ||
23 | |||
24 | |||
25 | FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
26 | FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/" | ||