summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/newt
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2011-07-28 17:28:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-04 15:04:29 +0100
commitdde02ad31e46a7f42cfd0374b3421d52a4b54eaf (patch)
tree2dab8455ea1e939df933c38a6e503d64db5b9c7e /meta/recipes-extended/newt
parentc5c9c53c4e736d491d0baf01c94a76099acd4f6f (diff)
downloadpoky-dde02ad31e46a7f42cfd0374b3421d52a4b54eaf.tar.gz
libnewt: update to 0.52.13
Update libnewt to 0.52.13, and remove include-without-python.patch because it has been merged. Update SRC_URI and add SRC_URI checksum. (From OE-Core rev: b83284d2be47019e1ca122ce4a2b1a077e7c3174) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/newt')
-rw-r--r--meta/recipes-extended/newt/files/include-without-python.patch73
-rw-r--r--meta/recipes-extended/newt/libnewt_0.52.13.bb (renamed from meta/recipes-extended/newt/libnewt_0.52.12.bb)10
2 files changed, 6 insertions, 77 deletions
diff --git a/meta/recipes-extended/newt/files/include-without-python.patch b/meta/recipes-extended/newt/files/include-without-python.patch
deleted file mode 100644
index 263e9de039..0000000000
--- a/meta/recipes-extended/newt/files/include-without-python.patch
+++ /dev/null
@@ -1,73 +0,0 @@
1Upstream-Status: Pending
2
3From 3d13bbbb769050fac4cc6c904c174edc27e4f03d Mon Sep 17 00:00:00 2001
4From: Otavio Salvador <otavio@ossystems.com.br>
5Date: Thu, 20 Jan 2011 14:14:51 -0200
6Subject: [PATCH] build: add -without-python
7
8Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
9---
10 Makefile.in | 8 ++++----
11 configure.ac | 10 ++++++++--
12 2 files changed, 12 insertions(+), 6 deletions(-)
13
14diff --git a/Makefile.in b/Makefile.in
15index e764e61..74e9097 100644
16--- a/Makefile.in
17+++ b/Makefile.in
18@@ -77,7 +77,7 @@ showkey: showkey.o $(LIBNEWT)
19 $(CC) -g -o showkey showkey.o $(LIBNEWT) $(LDFLAGS) $(LIBS)
20
21 _snackmodule.so: snackmodule.c $(LIBNEWTSH)
22- for ver in $(PYTHONVERS) ; do \
23+ [ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS) ; do \
24 mkdir -p $$ver ;\
25 PCFLAGS=`$$ver-config --cflags`; \
26 PIFLAGS=`$$ver-config --includes`; \
27@@ -85,7 +85,7 @@ _snackmodule.so: snackmodule.c $(LIBNEWTSH)
28 PLFLAGS=`$$ver-config --libs`; \
29 $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\
30 $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L. -lnewt $(LIBS);\
31- done
32+ done || :
33 touch $@
34
35 whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
36@@ -141,11 +141,11 @@ install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
37 ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so
38 ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME)
39 [ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || :
40- for ver in $(PYTHONVERS) ; do \
41+ [ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS) ; do \
42 [ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\
43 install -m 755 $$ver/_snackmodule.so $(instroot)/$(libdir)/$$ver/site-packages ;\
44 install -m 644 snack.py $(instroot)/$(libdir)/$$ver/site-packages ;\
45- done
46+ done || :
47
48 Makefile: newt.spec
49 echo "You need to rerun ./configure before continuing"
50diff --git a/configure.ac b/configure.ac
51index 7bc381a..dc04352 100644
52--- a/configure.ac
53+++ b/configure.ac
54@@ -54,8 +54,14 @@ fi
55 AC_CHECK_HEADERS([popt.h libintl.h])
56
57 AC_MSG_CHECKING([for python versions])
58-PYTHONVERS=$(echo /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
59-AC_MSG_RESULT([$PYTHONVERS])
60+AC_ARG_WITH([python], [ --without-python do not compile python support])
61+if test "x$with_python" = "xno"; then
62+ AC_MSG_RESULT([skipped])
63+ PYTHONVERS=
64+else
65+ PYTHONVERS=$(ls /usr/include/python*/Python.h 2> /dev/null | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
66+ AC_MSG_RESULT([$PYTHONVERS])
67+fi
68 AC_SUBST([PYTHONVERS])
69
70 AC_ARG_WITH([tcl], [ --without-tcl do not compile whiptcl.so])
71--
721.7.2.3
73
diff --git a/meta/recipes-extended/newt/libnewt_0.52.12.bb b/meta/recipes-extended/newt/libnewt_0.52.13.bb
index e2ad55964d..38e09a9f9b 100644
--- a/meta/recipes-extended/newt/libnewt_0.52.12.bb
+++ b/meta/recipes-extended/newt/libnewt_0.52.13.bb
@@ -17,16 +17,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
17# slang needs to be >= 2.2 17# slang needs to be >= 2.2
18DEPENDS = "slang popt" 18DEPENDS = "slang popt"
19 19
20PR = "r2" 20PR = "r0"
21 21
22SRCREV = "c3c7be75f6ef1adfc2be5f99c1e8ef3f0ab58c38" 22SRCREV = "c3c7be75f6ef1adfc2be5f99c1e8ef3f0ab58c38"
23 23
24SRC_URI = "git://git.fedorahosted.org/git/newt;protocol=git \ 24SRC_URI = "https://fedorahosted.org/releases/n/e/newt/newt-${PV}.tar.gz \
25 file://include-without-python.patch \
26 file://remove_slang_include.patch \ 25 file://remove_slang_include.patch \
27 file://fix_SHAREDDIR.patch" 26 file://fix_SHAREDDIR.patch"
28 27
29S = "${WORKDIR}/git" 28SRC_URI[md5sum] = "77de05b3f58540152a4ae32a1a64e5d0"
29SRC_URI[sha256sum] = "01c254b00a3d27e22f13240b6db74df04e721ccec4d1d4fc7b45fee009efc05f"
30
31S = "${WORKDIR}/newt-${PV}"
30 32
31EXTRA_OECONF = "--without-python --without-tcl" 33EXTRA_OECONF = "--without-python --without-tcl"
32 34