2013-06-05 23:38:55 +00:00
|
|
|
require recipes-extended/newt/libnewt_${PV}.bb
|
|
|
|
|
|
|
|
SUMMARY .= " - python"
|
2016-06-02 09:26:00 +00:00
|
|
|
DEPENDS = "libnewt python3"
|
|
|
|
RDEPENDS_${PN} += "python3-core"
|
2013-06-05 23:38:55 +00:00
|
|
|
|
2016-06-02 09:26:00 +00:00
|
|
|
inherit python3native python3-dir
|
2013-06-05 23:38:55 +00:00
|
|
|
|
|
|
|
EXTRA_OECONF += "--with-python"
|
|
|
|
EXTRA_OEMAKE += "PYTHONVERS=${PYTHON_DIR}"
|
|
|
|
|
|
|
|
|
|
|
|
do_compile () {
|
|
|
|
VERSION="$(sed -n 's/^VERSION = //p' Makefile)"
|
2015-02-12 08:26:07 +00:00
|
|
|
oe_runmake _snack.so
|
2013-06-05 23:38:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install () {
|
|
|
|
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
|
2014-06-17 07:01:05 +00:00
|
|
|
install -m 0755 ${PYTHON_DIR}/_snack.so ${D}${PYTHON_SITEPACKAGES_DIR}/
|
2013-06-05 23:38:55 +00:00
|
|
|
install -m 0644 snack.py ${D}${PYTHON_SITEPACKAGES_DIR}/
|
|
|
|
}
|
|
|
|
|
2013-09-12 06:47:37 +00:00
|
|
|
PACKAGES_remove = "whiptail"
|
2013-06-05 23:38:55 +00:00
|
|
|
|
|
|
|
FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/*"
|
2015-07-10 22:52:01 +00:00
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|