mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 18:23:02 +01:00
In some recipes overly-split -dbg packages were merged into PN-dbg. Unless there's a very good reason, recipes should have a single -dev and -dbg package. (From OE-Core rev: a3b000643898d7402b9e57c02e8d10e677cc9722) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
625 B
BlitzBasic
29 lines
625 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 _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}/*"
|
|
|
|
BBCLASSEXTEND = "native"
|