aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/newt/libnewt-python_0.52.18.bb
blob: ba047574f2dd261c0256efb3b2a943ad588f57e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"