From 9013f8165301abeed0e87184e9b820e72f1c4efe Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 5 Jun 2013 16:38:55 -0700 Subject: libnewt: split python module into libnewt-python This is useful as it avoids pulling python into a build just to build chkconfig. The python recipe uses the libnewt installed in the sysroot by the main package, so there's little loss of build time, other than the additional unpack/patch. (From OE-Core rev: b255ebbf8283568d732827086bf0bd2b8db1d905) Signed-off-by: Christopher Larson Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- .../newt/libnewt-python_0.52.14.bb | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta/recipes-extended/newt/libnewt-python_0.52.14.bb (limited to 'meta/recipes-extended/newt/libnewt-python_0.52.14.bb') diff --git a/meta/recipes-extended/newt/libnewt-python_0.52.14.bb b/meta/recipes-extended/newt/libnewt-python_0.52.14.bb new file mode 100644 index 0000000000..9af2d5d91f --- /dev/null +++ b/meta/recipes-extended/newt/libnewt-python_0.52.14.bb @@ -0,0 +1,26 @@ +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" _snackmodule.so +} + +do_install () { + install -d ${D}${PYTHON_SITEPACKAGES_DIR} + install -m 0755 ${PYTHON_DIR}/_snackmodule.so ${D}${PYTHON_SITEPACKAGES_DIR}/ + install -m 0644 snack.py ${D}${PYTHON_SITEPACKAGES_DIR}/ +} + + +FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/*" +FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/" -- cgit v1.2.3-54-g00ecf