From b74b2356bf53af7ceb08008020a1f027b2737e34 Mon Sep 17 00:00:00 2001 From: Mihaela Sendrea Date: Mon, 11 Nov 2013 01:23:53 -0800 Subject: expect: Add recipe Nedeed for gcc-runtime tests. Fixed build on multilib and add patch to remove !/depot/path/expect -f which caused rpm to puke on rfs generation (From OE-Core rev: 8f06d2975ed7d5db3828dc116c0df72d1161e8e5) Signed-off-by: Mihaela Sendrea Signed-off-by: Khem Raj Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-devtools/expect/expect_5.45.bb | 61 +++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 meta/recipes-devtools/expect/expect_5.45.bb (limited to 'meta/recipes-devtools/expect/expect_5.45.bb') diff --git a/meta/recipes-devtools/expect/expect_5.45.bb b/meta/recipes-devtools/expect/expect_5.45.bb new file mode 100644 index 0000000000..0417ec6740 --- /dev/null +++ b/meta/recipes-devtools/expect/expect_5.45.bb @@ -0,0 +1,61 @@ +SUMMARY = "tool for automating interactive applications according to a script" +DESCRIPTION = "Expect is a tool for automating interactive applications according to a script. \ +Following the script, Expect knows what can be expected from a program and what \ +the correct response should be. Expect is also useful for testing these same \ +applications. And by adding Tk, you can also wrap interactive applications in \ +X11 GUIs. An interpreted language provides branching and high-level control \ +structures to direct the dialogue. In addition, the user can take control and \ +interact directly when desired, afterward returning control to the script. \ +" +HOMEPAGE = "http://sourceforge.net/projects/expect/" +LICENSE="PD" +SECTION = "devel" + +LIC_FILES_CHKSUM = "file://license.terms;md5=fbf2de7e9102505b1439db06fc36ce5c" + +DEPENDS += "tcl" +RDEPENDS_${PN} = "tcl" + +inherit autotools + +SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \ + file://0001-configure.in.patch \ + file://0002-tcl.m4.patch \ + file://01-example-shebang.patch \ + " +SRC_URI[md5sum] = "44e1a4f4c877e9ddc5a542dfa7ecc92b" +SRC_URI[sha256sum] = "b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040" + +S = "${WORKDIR}/${BPN}${PV}" + +do_install_append() { + install -d ${D}${libdir} + install -m 0755 ${D}${libdir}/expect${PV}/libexpect*.so ${D}${libdir}/ + install -m 0755 ${S}/fixline1 ${D}${libdir}/expect${PV}/ + install -m 0755 ${S}/example/* ${D}${libdir}/expect${PV}/ + rm ${D}${libdir}/expect${PV}/libexpect*.so +} + +EXTRA_OECONF += "--includedir=${STAGING_INCDIR} \ + --with-tcl=${STAGING_LIBDIR} \ + --with-tclinclude=${STAGING_INCDIR}/tcl8.6 \ + --enable-shared \ + --enable-threads \ + --disable-rpath \ + " +EXTRA_OEMAKE_install = " 'SCRIPTS=' " + +FILES_${PN}-dbg += "${libdir}/${BPN}${PV}/.debug \ + ${libdir}/.debug \ + " +FILES_${PN}-dev = "${libdir_native}/expect${PV}/libexpect*.so \ + ${STAGING_INCDIR}/expect.h \ + ${STAGING_INCDIR}/expect_tcl.h \ + ${STAGING_INCDIR}/expect_comm.h \ + ${STAGING_INCDIR}/tcldbg.h \ + ${includedir}/*.h \ + " + +FILES_${PN} += "${libdir}/libexpect${PV}.so \ + ${libdir}/expect${PV}/* \ + " -- cgit v1.2.3-54-g00ecf