diff options
Diffstat (limited to 'meta/recipes-extended/grep/grep_3.0.bb')
-rw-r--r-- | meta/recipes-extended/grep/grep_3.0.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-extended/grep/grep_3.0.bb b/meta/recipes-extended/grep/grep_3.0.bb new file mode 100644 index 0000000000..6146ef00f3 --- /dev/null +++ b/meta/recipes-extended/grep/grep_3.0.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "GNU grep utility" | ||
2 | HOMEPAGE = "http://savannah.gnu.org/projects/grep/" | ||
3 | BUGTRACKER = "http://savannah.gnu.org/bugs/?group=grep" | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPLv3" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=8006d9c814277c1bfc4ca22af94b59ee" | ||
7 | |||
8 | SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.xz \ | ||
9 | file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ | ||
10 | " | ||
11 | |||
12 | SRC_URI[md5sum] = "fa07c1616adeb9c3262be5177d10ad4a" | ||
13 | SRC_URI[sha256sum] = "e2c81db5056e3e8c5995f0bb5d0d0e1cad1f6f45c3b2fc77b6e81435aed48ab5" | ||
14 | |||
15 | inherit autotools gettext texinfo pkgconfig | ||
16 | |||
17 | EXTRA_OECONF = "--disable-perl-regexp" | ||
18 | |||
19 | do_configure_prepend () { | ||
20 | rm -f ${S}/m4/init.m4 | ||
21 | } | ||
22 | |||
23 | do_install () { | ||
24 | autotools_do_install | ||
25 | if [ "${base_bindir}" != "${bindir}" ]; then | ||
26 | install -d ${D}${base_bindir} | ||
27 | mv ${D}${bindir}/grep ${D}${base_bindir}/grep | ||
28 | mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep | ||
29 | mv ${D}${bindir}/fgrep ${D}${base_bindir}/fgrep | ||
30 | rmdir ${D}${bindir}/ | ||
31 | fi | ||
32 | } | ||
33 | |||
34 | inherit update-alternatives | ||
35 | |||
36 | ALTERNATIVE_PRIORITY = "100" | ||
37 | |||
38 | ALTERNATIVE_${PN} = "grep egrep fgrep" | ||
39 | ALTERNATIVE_LINK_NAME[grep] = "${base_bindir}/grep" | ||
40 | ALTERNATIVE_LINK_NAME[egrep] = "${base_bindir}/egrep" | ||
41 | ALTERNATIVE_LINK_NAME[fgrep] = "${base_bindir}/fgrep" | ||
42 | |||
43 | export CONFIG_SHELL="/bin/sh" | ||