citadel/meta/recipes-extended/newt/libnewt-python_0.52.20.bb
brl 098b8f982b Squashed 'poky/' content from commit 4469acdf1d
git-subtree-dir: poky
git-subtree-split: 4469acdf1d0338220f3fe2ecb5e079eea6fda375
2017-12-04 16:35:29 -05:00

29 lines
629 B
BlitzBasic

require recipes-extended/newt/libnewt_${PV}.bb
SUMMARY .= " - python"
DEPENDS = "libnewt python3"
RDEPENDS_${PN} += "python3-core"
inherit python3native python3-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"