summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gawk/gawk_5.1.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/gawk/gawk_5.1.0.bb')
-rw-r--r--meta/recipes-extended/gawk/gawk_5.1.0.bb55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-extended/gawk/gawk_5.1.0.bb b/meta/recipes-extended/gawk/gawk_5.1.0.bb
new file mode 100644
index 0000000000..0d005cd43b
--- /dev/null
+++ b/meta/recipes-extended/gawk/gawk_5.1.0.bb
@@ -0,0 +1,55 @@
1SUMMARY = "GNU awk text processing utility"
2DESCRIPTION = "The GNU version of awk, a text processing utility. \
3Awk interprets a special-purpose programming language to do \
4quick and easy text pattern matching and reformatting jobs."
5HOMEPAGE = "https://www.gnu.org/software/gawk/"
6BUGTRACKER = "bug-gawk@gnu.org"
7SECTION = "console/utils"
8
9# gawk <= 3.1.5: GPLv2
10# gawk >= 3.1.6: GPLv3
11LICENSE = "GPLv3"
12LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
13
14PACKAGECONFIG ??= "readline"
15PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
16PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr"
17
18SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
19 file://run-ptest \
20"
21
22SRC_URI[md5sum] = "f719bc9966df28e67fc6ebc405e7ea03"
23SRC_URI[sha256sum] = "03a0360edcd84bec156fe211bbc4fc8c78790973ce4e8b990a11d778d40b1a26"
24
25inherit autotools gettext texinfo update-alternatives
26
27FILES_${PN} += "${datadir}/awk"
28FILES_${PN}-dev += "${libdir}/${BPN}/*.la"
29
30ALTERNATIVE_${PN} = "awk"
31ALTERNATIVE_TARGET[awk] = "${bindir}/gawk"
32ALTERNATIVE_PRIORITY = "100"
33
34do_install_append() {
35 # remove the link since we don't package it
36 rm ${D}${bindir}/awk
37}
38
39inherit ptest
40
41do_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 sed -i -e "s|GAWKLOCALE|LANG|g" ${D}${PTEST_PATH}/test/Maketests
51}
52
53RDEPENDS_${PN}-ptest += "make"
54
55BBCLASSEXTEND = "native nativesdk"