summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/newt/libnewt-python_0.52.14.bb26
-rw-r--r--meta/recipes-extended/newt/libnewt_0.52.14.bb15
2 files changed, 31 insertions, 10 deletions
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 @@
1require recipes-extended/newt/libnewt_${PV}.bb
2
3SUMMARY .= " - python"
4DEPENDS = "libnewt python"
5RDEPENDS_${PN} += "python-core"
6
7inherit pythonnative python-dir
8
9EXTRA_OECONF += "--with-python"
10EXTRA_OEMAKE += "PYTHONVERS=${PYTHON_DIR}"
11
12
13do_compile () {
14 VERSION="$(sed -n 's/^VERSION = //p' Makefile)"
15 oe_runmake "LIBNEWTSH=${STAGING_LIBDIR}/libnewt.so.$VERSION" _snackmodule.so
16}
17
18do_install () {
19 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
20 install -m 0755 ${PYTHON_DIR}/_snackmodule.so ${D}${PYTHON_SITEPACKAGES_DIR}/
21 install -m 0644 snack.py ${D}${PYTHON_SITEPACKAGES_DIR}/
22}
23
24
25FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/*"
26FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/"
diff --git a/meta/recipes-extended/newt/libnewt_0.52.14.bb b/meta/recipes-extended/newt/libnewt_0.52.14.bb
index 54da15df34..ee8206e4b4 100644
--- a/meta/recipes-extended/newt/libnewt_0.52.14.bb
+++ b/meta/recipes-extended/newt/libnewt_0.52.14.bb
@@ -15,7 +15,7 @@ LICENSE = "LGPLv2"
15LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605" 15LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
16 16
17# slang needs to be >= 2.2 17# slang needs to be >= 2.2
18DEPENDS = "slang popt python" 18DEPENDS = "slang popt"
19 19
20PR = "r2" 20PR = "r2"
21 21
@@ -30,11 +30,9 @@ SRC_URI[sha256sum] = "f70f4f58baa60388ddf2e39249ffb00898fb40f2b2767e42e2ab51fe4b
30 30
31S = "${WORKDIR}/newt-${PV}" 31S = "${WORKDIR}/newt-${PV}"
32 32
33EXTRA_OECONF = "--without-tcl" 33EXTRA_OECONF = "--without-tcl --without-python"
34 34
35inherit autotools pythonnative python-dir 35inherit autotools
36
37EXTRA_OEMAKE = "PYTHONVERS=${PYTHON_DIR}"
38 36
39export STAGING_INCDIR 37export STAGING_INCDIR
40export STAGING_LIBDIR 38export STAGING_LIBDIR
@@ -42,13 +40,10 @@ export STAGING_LIBDIR
42export BUILD_SYS 40export BUILD_SYS
43export HOST_SYS 41export HOST_SYS
44 42
45PACKAGES_prepend = "whiptail ${PN}-python " 43PACKAGES_prepend = "whiptail "
46 44
47do_configure_prepend() { 45do_configure_prepend() {
48 ( cd ${S}; sh autogen.sh ) 46 sh autogen.sh
49} 47}
50 48
51FILES_whiptail = "${bindir}/whiptail" 49FILES_whiptail = "${bindir}/whiptail"
52FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/"
53FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*"
54FILES_${PN}-staticdev = "${libdir}/*.a"