diff options
Diffstat (limited to 'meta/recipes-extended/slang/slang_2.3.1a.bb')
-rw-r--r-- | meta/recipes-extended/slang/slang_2.3.1a.bb | 25 |
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" | |||
17 | SRC_URI = "http://www.jedsoft.org/releases/${BPN}/${BP}.tar.bz2 \ | 17 | SRC_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 | ||
22 | SRC_URI[md5sum] = "c5235313042ed0e71ec708f7b85ec241" | 24 | SRC_URI[md5sum] = "c5235313042ed0e71ec708f7b85ec241" |
@@ -25,7 +27,7 @@ SRC_URI[sha256sum] = "54f0c3007fde918039c058965dffdfd6c5aec0bad0f4227192cc486021 | |||
25 | UPSTREAM_CHECK_URI = "http://www.jedsoft.org/releases/slang/" | 27 | UPSTREAM_CHECK_URI = "http://www.jedsoft.org/releases/slang/" |
26 | PREMIRRORS_append = "\n http://www.jedsoft.org/releases/slang/.* http://www.jedsoft.org/releases/slang/old/ \n" | 28 | PREMIRRORS_append = "\n http://www.jedsoft.org/releases/slang/.* http://www.jedsoft.org/releases/slang/old/ \n" |
27 | 29 | ||
28 | inherit autotools-brokensep | 30 | inherit autotools-brokensep ptest |
29 | CLEANBROKEN = "1" | 31 | CLEANBROKEN = "1" |
30 | 32 | ||
31 | EXTRA_OECONF = "--without-onig" | 33 | EXTRA_OECONF = "--without-onig" |
@@ -49,6 +51,27 @@ do_configure_prepend() { | |||
49 | cd ${B} | 51 | cd ${B} |
50 | } | 52 | } |
51 | 53 | ||
54 | do_compile_ptest() { | ||
55 | oe_runmake -C src static | ||
56 | oe_runmake -C src/test sltest | ||
57 | } | ||
58 | |||
59 | do_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 | |||
52 | FILES_${PN} += "${libdir}/${BPN}/v2/modules/ ${datadir}/slsh/" | 75 | FILES_${PN} += "${libdir}/${BPN}/v2/modules/ ${datadir}/slsh/" |
53 | 76 | ||
54 | PARALLEL_MAKE = "" | 77 | PARALLEL_MAKE = "" |