diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
| commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
| tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-extended/diffutils | |
| parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
| download | poky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz | |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/diffutils')
| -rw-r--r-- | meta/recipes-extended/diffutils/diffutils_2.8.1.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-extended/diffutils/diffutils_2.8.1.bb b/meta/recipes-extended/diffutils/diffutils_2.8.1.bb new file mode 100644 index 0000000000..86b46aafec --- /dev/null +++ b/meta/recipes-extended/diffutils/diffutils_2.8.1.bb | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | SECTION = "base" | ||
| 2 | LICENSE = "GPL" | ||
| 3 | DESCRIPTION = "Diffutils contains the GNU diff, diff3, \ | ||
| 4 | sdiff, and cmp utilities. These programs are usually \ | ||
| 5 | used for creating patch files." | ||
| 6 | PR = "r3" | ||
| 7 | |||
| 8 | SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz" | ||
| 9 | |||
| 10 | inherit autotools update-alternatives gettext | ||
| 11 | |||
| 12 | # diffutils assumes non-glibc compilation with uclibc and | ||
| 13 | # this causes it to generate its own implementations of | ||
| 14 | # standard functionality. regex.c actually breaks compilation | ||
| 15 | # because it uses __mempcpy, there are other things (TBD: | ||
| 16 | # see diffutils.mk in buildroot) | ||
| 17 | EXTRA_OECONF_linux-uclibc = "--without-included-regex" | ||
| 18 | |||
| 19 | do_install_append () { | ||
| 20 | mv ${D}${bindir}/diff ${D}${bindir}/diff.${PN} | ||
| 21 | mv ${D}${bindir}/cmp ${D}${bindir}/cmp.${PN} | ||
| 22 | } | ||
| 23 | |||
| 24 | ALTERNATIVE_NAME = "diff" | ||
| 25 | ALTERNATIVE_PATH = "diff.${PN}" | ||
| 26 | ALTERNATIVE_PRIORITY = "100" | ||
| 27 | |||
| 28 | pkg_postinst_${PN} () { | ||
| 29 | |||
| 30 | update-alternatives --install /usr/bin/cmp cmp cmp.diffutils 100 | ||
| 31 | |||
| 32 | } | ||
| 33 | |||
| 34 | pkg_postrm_${PN} () { | ||
| 35 | |||
| 36 | update-alternatives --remove cmp cmp.diffutils | ||
| 37 | |||
| 38 | } | ||
