mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
ec6aeeada7
(From OE-Core rev: 5239060e99da82134387787e544e724500a6ab41) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 lines
705 B
BlitzBasic
28 lines
705 B
BlitzBasic
require recipes-extended/newt/libnewt_${PV}.bb
|
|
|
|
SUMMARY .= " - python"
|
|
DEPENDS = "libnewt python"
|
|
RDEPENDS_${PN} += "python-core"
|
|
|
|
inherit pythonnative python-dir
|
|
|
|
EXTRA_OECONF += "--with-python"
|
|
EXTRA_OEMAKE += "PYTHONVERS=${PYTHON_DIR}"
|
|
|
|
|
|
do_compile () {
|
|
VERSION="$(sed -n 's/^VERSION = //p' Makefile)"
|
|
oe_runmake "LIBNEWTSH=${STAGING_LIBDIR}/libnewt.so.$VERSION" _snack.so
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
|
|
install -m 0755 ${PYTHON_DIR}/_snack.so ${D}${PYTHON_SITEPACKAGES_DIR}/
|
|
install -m 0644 snack.py ${D}${PYTHON_SITEPACKAGES_DIR}/
|
|
}
|
|
|
|
PACKAGES_remove = "whiptail"
|
|
|
|
FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/*"
|
|
FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/"
|