From e938afe62c4ce0d662995de3c92f739f435d9918 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 20 Oct 2011 10:39:43 -0400 Subject: [PATCH] sys-apps/mawk: import from upstream Gentoo Now that the /usr/bin/awk symlink has moved to the chromeos-base package, we can move to the unmodified upstream Gentoo ebuild. BUG=chromium-os:21900 TEST=`emerge chromeos-base` and see /usr/bin/awk -> gawk TEST=`emerge-amd64-generic mawk` and see /usr/bin/awk -> mawk TEST=`emerge-arm-generic mawk` and see /usr/bin/awk -> mawk TEST=`emerge-x86-generic mawk` and see /usr/bin/awk -> mawk Change-Id: Ie3bf1bc321ca1c36d01fdae897172ad5f3fd695c Reviewed-on: https://gerrit.chromium.org/gerrit/11407 Reviewed-by: David James Commit-Ready: Mike Frysinger Tested-by: Mike Frysinger --- .../mawk/files/mawk-1.3.4-cross-compile.patch | 13 ++++++++ .../sys-apps/mawk/mawk-1.3.4_p20100625.ebuild | 32 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/mawk/mawk-1.3.4_p20100625.ebuild diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch b/sdk_container/src/third_party/portage-stable/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch new file mode 100644 index 0000000000..104bb46d24 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch @@ -0,0 +1,13 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -104,8 +104,9 @@ + -@rm -f $@ + notangle -R'"array.h"' array.w | $(NOIDENT) | cpif array.h + ++BUILD_CC ?= gcc + scancode.c : $(srcdir)/makescan.c scancode.h nstd.h config.h +- @ECHO_LD@$(CC) $(CFLAGS) $(CPPFLAGS) -o makescan.exe $(srcdir)/makescan.c ++ @ECHO_LD@$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o makescan.exe $(srcdir)/makescan.c + rm -f scancode.c + ./makescan.exe > scancode.c + rm makescan.exe diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/mawk/mawk-1.3.4_p20100625.ebuild b/sdk_container/src/third_party/portage-stable/sys-apps/mawk/mawk-1.3.4_p20100625.ebuild new file mode 100644 index 0000000000..36ced365ed --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/mawk/mawk-1.3.4_p20100625.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mawk/mawk-1.3.4_p20100625.ebuild,v 1.2 2011/10/20 15:04:10 vapier Exp $ + +EAPI="2" + +inherit toolchain-funcs eutils + +MY_P=${P/_p/-} +DESCRIPTION="an (often faster than gawk) awk-interpreter" +HOMEPAGE="http://invisible-island.net/mawk/mawk.html" +SRC_URI="ftp://invisible-island.net/mawk/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~ppc ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.3.4-cross-compile.patch + tc-export BUILD_CC +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc ACKNOWLEDGMENT CHANGES INSTALL README + + exeinto /usr/share/doc/${PF}/examples + doexe examples/* # avoid compression of dodoc + make executable +}