summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/slang/slang_2.3.1a.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/slang/slang_2.3.1a.bb')
-rw-r--r--meta/recipes-extended/slang/slang_2.3.1a.bb25
1 files changed, 24 insertions, 1 deletions
diff --git a/meta/recipes-extended/slang/slang_2.3.1a.bb b/meta/recipes-extended/slang/slang_2.3.1a.bb
index c71d80481f..b302104ee1 100644
--- a/meta/recipes-extended/slang/slang_2.3.1a.bb
+++ b/meta/recipes-extended/slang/slang_2.3.1a.bb
@@ -17,6 +17,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a52a18a472d4f7e45479b06563717c02"
17SRC_URI = "http://www.jedsoft.org/releases/${BPN}/${BP}.tar.bz2 \ 17SRC_URI = "http://www.jedsoft.org/releases/${BPN}/${BP}.tar.bz2 \
18 file://no-x.patch \ 18 file://no-x.patch \
19 file://dont-link-to-host.patch \ 19 file://dont-link-to-host.patch \
20 file://test-add-output-in-the-format-result-testname.patch \
21 file://run-ptest \
20 " 22 "
21 23
22SRC_URI[md5sum] = "c5235313042ed0e71ec708f7b85ec241" 24SRC_URI[md5sum] = "c5235313042ed0e71ec708f7b85ec241"
@@ -25,7 +27,7 @@ SRC_URI[sha256sum] = "54f0c3007fde918039c058965dffdfd6c5aec0bad0f4227192cc486021
25UPSTREAM_CHECK_URI = "http://www.jedsoft.org/releases/slang/" 27UPSTREAM_CHECK_URI = "http://www.jedsoft.org/releases/slang/"
26PREMIRRORS_append = "\n http://www.jedsoft.org/releases/slang/.* http://www.jedsoft.org/releases/slang/old/ \n" 28PREMIRRORS_append = "\n http://www.jedsoft.org/releases/slang/.* http://www.jedsoft.org/releases/slang/old/ \n"
27 29
28inherit autotools-brokensep 30inherit autotools-brokensep ptest
29CLEANBROKEN = "1" 31CLEANBROKEN = "1"
30 32
31EXTRA_OECONF = "--without-onig" 33EXTRA_OECONF = "--without-onig"
@@ -49,6 +51,27 @@ do_configure_prepend() {
49 cd ${B} 51 cd ${B}
50} 52}
51 53
54do_compile_ptest() {
55 oe_runmake -C src static
56 oe_runmake -C src/test sltest
57}
58
59do_install_ptest() {
60 mkdir ${D}${PTEST_PATH}/test
61 for f in Makefile sltest runtests.sh *.sl *.inc; do
62 cp ${S}/src/test/$f ${D}${PTEST_PATH}/test/
63 done
64 sed -e 's/\ \$(TEST_PGM)\.c\ assoc\.c\ list\.c\ \$(SLANGLIB)\/libslang\.a//' \
65 -e '/\$(CC).*(TEST_PGM)/d' \
66 -i ${D}${PTEST_PATH}/test/Makefile
67
68 cp ${S}/slsh/lib/require.sl ${D}${PTEST_PATH}/test/
69 sed -i 's/\.\.\/\.\.\/slsh\/lib\/require\.sl/require\.sl/' ${D}${PTEST_PATH}/test/req.sl
70
71 cp ${S}/doc/text/slangfun.txt ${D}${PTEST_PATH}/test/
72 sed -i 's/\.\.\/\.\.\/doc\/text\/slangfun\.txt/slangfun\.txt/' ${D}${PTEST_PATH}/test/docfun.sl
73}
74
52FILES_${PN} += "${libdir}/${BPN}/v2/modules/ ${datadir}/slsh/" 75FILES_${PN} += "${libdir}/${BPN}/v2/modules/ ${datadir}/slsh/"
53 76
54PARALLEL_MAKE = "" 77PARALLEL_MAKE = ""