diff options
author | Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | 2019-06-27 17:16:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-28 13:28:37 +0100 |
commit | 3dae182705824ec3c5c53fdea123d8e50b09dece (patch) | |
tree | 5fc8105a26f5959aa174da3e8b827d4f3820e9bf /meta/recipes-extended/gawk/gawk_5.0.1.bb | |
parent | 9335a508a7908691099eec6efb85c98fdbb10109 (diff) | |
download | poky-3dae182705824ec3c5c53fdea123d8e50b09dece.tar.gz |
gawk: update to 5.0.1
(From OE-Core rev: 34dd24a00adbce5f10b56028af29db96b2910bb6)
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/gawk/gawk_5.0.1.bb')
-rw-r--r-- | meta/recipes-extended/gawk/gawk_5.0.1.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-extended/gawk/gawk_5.0.1.bb b/meta/recipes-extended/gawk/gawk_5.0.1.bb new file mode 100644 index 0000000000..b3eb39e4ed --- /dev/null +++ b/meta/recipes-extended/gawk/gawk_5.0.1.bb | |||
@@ -0,0 +1,53 @@ | |||
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] = "c5441c73cc451764055ee65e9a4292bb" | ||
23 | SRC_URI[sha256sum] = "625bf3718e25a84dc4486135d5cb5388174682362c70107fd13f21572f5603bb" | ||
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 | ln -s ${bindir}/gawk ${D}${PTEST_PATH}/gawk | ||
44 | for i in `grep -vE "@|^$|#|Gt-dummy" ${S}/test/Maketests |awk -F: '{print $1}'` Maketests inclib.awk; \ | ||
45 | do cp ${S}/test/$i* ${D}${PTEST_PATH}/test; \ | ||
46 | done | ||
47 | sed -i -e 's|/usr/local/bin|${bindir}|g' \ | ||
48 | -e 's|#!${base_bindir}/awk|#!${bindir}/awk|g' ${D}${PTEST_PATH}/test/*.awk | ||
49 | } | ||
50 | |||
51 | RDEPENDS_${PN}-ptest += "make" | ||
52 | |||
53 | BBCLASSEXTEND = "native nativesdk" | ||