diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-05-11 10:20:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-15 10:56:50 +0100 |
commit | fdfdd899451674f1756f441fd0bf03a7b0f138aa (patch) | |
tree | 7b709676eb2e738917f239f9d66a9c930201fb9f /meta/recipes-extended/gawk/gawk_4.2.1.bb | |
parent | 8e3d864944e59bd0b3c0b25f3d3dcb9c178286fb (diff) | |
download | poky-fdfdd899451674f1756f441fd0bf03a7b0f138aa.tar.gz |
gawk: upgrade to 4.2.1
(From OE-Core rev: 86f137436da8a6d4aded66e586ba2b1eff725022)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/gawk/gawk_4.2.1.bb')
-rw-r--r-- | meta/recipes-extended/gawk/gawk_4.2.1.bb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-extended/gawk/gawk_4.2.1.bb b/meta/recipes-extended/gawk/gawk_4.2.1.bb new file mode 100644 index 0000000000..6b9935767b --- /dev/null +++ b/meta/recipes-extended/gawk/gawk_4.2.1.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | SUMMARY = "GNU awk text processing utility" | ||
2 | DESCRIPTION = "The GNU version of awk, a text processing utility. \ | ||
3 | Awk interprets a special-purpose programming language to do \ | ||
4 | quick and easy text pattern matching and reformatting jobs." | ||
5 | HOMEPAGE = "https://www.gnu.org/software/gawk/" | ||
6 | BUGTRACKER = "bug-gawk@gnu.org" | ||
7 | SECTION = "console/utils" | ||
8 | |||
9 | # gawk <= 3.1.5: GPLv2 | ||
10 | # gawk >= 3.1.6: GPLv3 | ||
11 | LICENSE = "GPLv3" | ||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
13 | |||
14 | DEPENDS += "readline" | ||
15 | |||
16 | PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr" | ||
17 | |||
18 | SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ | ||
19 | file://run-ptest \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[md5sum] = "0256724a0af50cb83ac92f833488673d" | ||
23 | SRC_URI[sha256sum] = "2b23d51503b2df9a41aa6fddc6002ad7ebf2a386ac19dc1b6be0dd48b0acf6db" | ||
24 | |||
25 | inherit autotools gettext texinfo update-alternatives | ||
26 | |||
27 | FILES_${PN} += "${datadir}/awk" | ||
28 | FILES_${PN}-dev += "${libdir}/${BPN}/*.la" | ||
29 | |||
30 | ALTERNATIVE_${PN} = "awk" | ||
31 | ALTERNATIVE_TARGET[awk] = "${bindir}/gawk" | ||
32 | ALTERNATIVE_PRIORITY = "100" | ||
33 | |||
34 | do_install_append() { | ||
35 | # remove the link since we don't package it | ||
36 | rm ${D}${bindir}/awk | ||
37 | } | ||
38 | |||
39 | inherit ptest | ||
40 | |||
41 | do_install_ptest() { | ||
42 | mkdir ${D}${PTEST_PATH}/test | ||
43 | for i in `grep -vE "@|^$|#|Gt-dummy" ${S}/test/Maketests |awk -F: '{print $1}'` Maketests inclib.awk; \ | ||
44 | do cp ${S}/test/$i* ${D}${PTEST_PATH}/test; \ | ||
45 | done | ||
46 | } | ||
47 | |||
48 | BBCLASSEXTEND = "native nativesdk" | ||