diff options
Diffstat (limited to 'meta/recipes-extended/bc')
-rw-r--r-- | meta/recipes-extended/bc/bc/run-ptest | 9 | ||||
-rw-r--r-- | meta/recipes-extended/bc/bc_1.07.1.bb | 20 |
2 files changed, 22 insertions, 7 deletions
diff --git a/meta/recipes-extended/bc/bc/run-ptest b/meta/recipes-extended/bc/bc/run-ptest new file mode 100644 index 0000000000..ba5abe6805 --- /dev/null +++ b/meta/recipes-extended/bc/bc/run-ptest | |||
@@ -0,0 +1,9 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | for TEST in *.b; do | ||
4 | if bc -l $TEST </dev/null; then | ||
5 | echo "PASS: bc/$TEST" | ||
6 | else | ||
7 | echo "FAIL: bc/$TEST" | ||
8 | fi | ||
9 | done | ||
diff --git a/meta/recipes-extended/bc/bc_1.07.1.bb b/meta/recipes-extended/bc/bc_1.07.1.bb index 4a51302492..74387c50ab 100644 --- a/meta/recipes-extended/bc/bc_1.07.1.bb +++ b/meta/recipes-extended/bc/bc_1.07.1.bb | |||
@@ -1,7 +1,8 @@ | |||
1 | SUMMARY = "Arbitrary precision calculator language" | 1 | SUMMARY = "Arbitrary precision calculator language" |
2 | HOMEPAGE = "http://www.gnu.org/software/bc/bc.html" | 2 | HOMEPAGE = "http://www.gnu.org/software/bc/bc.html" |
3 | DESCRIPTION = "bc is an arbitrary precision numeric processing language. Syntax is similar to C, but differs in many substantial areas. It supports interactive execution of statements." | ||
3 | 4 | ||
4 | LICENSE = "GPLv3+" | 5 | LICENSE = "GPL-3.0-or-later" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
6 | file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ | 7 | file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
7 | file://bc/bcdefs.h;endline=17;md5=4295c06df9e833519a342f7b5d43db06 \ | 8 | file://bc/bcdefs.h;endline=17;md5=4295c06df9e833519a342f7b5d43db06 \ |
@@ -14,21 +15,26 @@ DEPENDS = "flex-native" | |||
14 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ | 15 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ |
15 | file://no-gen-libmath.patch \ | 16 | file://no-gen-libmath.patch \ |
16 | file://libmath.h \ | 17 | file://libmath.h \ |
17 | file://0001-dc-fix-exit-code-of-q-command.patch" | 18 | file://0001-dc-fix-exit-code-of-q-command.patch \ |
19 | file://run-ptest" | ||
18 | SRC_URI[md5sum] = "cda93857418655ea43590736fc3ca9fc" | 20 | SRC_URI[md5sum] = "cda93857418655ea43590736fc3ca9fc" |
19 | SRC_URI[sha256sum] = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a" | 21 | SRC_URI[sha256sum] = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a" |
20 | 22 | ||
21 | inherit autotools texinfo update-alternatives | 23 | inherit autotools texinfo update-alternatives ptest |
22 | 24 | ||
23 | PACKAGECONFIG ??= "readline" | 25 | PACKAGECONFIG ??= "readline" |
24 | PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" | 26 | PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" |
25 | PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit" | 27 | PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit" |
26 | 28 | ||
27 | do_compile_prepend() { | 29 | do_compile:prepend() { |
28 | cp -f ${WORKDIR}/libmath.h ${B}/bc/libmath.h | 30 | cp -f ${UNPACKDIR}/libmath.h ${B}/bc/libmath.h |
29 | } | 31 | } |
30 | 32 | ||
31 | ALTERNATIVE_${PN} = "bc dc" | 33 | do_install_ptest() { |
34 | install ${S}/Test/*.b ${D}${PTEST_PATH} | ||
35 | } | ||
36 | |||
37 | ALTERNATIVE:${PN} = "bc dc" | ||
32 | ALTERNATIVE_PRIORITY = "100" | 38 | ALTERNATIVE_PRIORITY = "100" |
33 | 39 | ||
34 | BBCLASSEXTEND = "native" | 40 | BBCLASSEXTEND = "native nativesdk" |