commit: 46f220fb076f0ff07fb6c57f2b6d705ea20397b0 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> AuthorDate: Mon May 22 21:41:42 2017 +0000 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> CommitDate: Mon May 22 21:41:42 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f220fb
sys-apps/nawk: EAPI 6 bump. Package-Manager: Portage-2.3.3, Repoman-2.3.1 .../nawk/files/nawk-20121220-parallel-build.patch | 4 +- sys-apps/nawk/nawk-20121220-r3.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+), 2 deletions(-) diff --git a/sys-apps/nawk/files/nawk-20121220-parallel-build.patch b/sys-apps/nawk/files/nawk-20121220-parallel-build.patch index 45a3e5624a4..ee6421c665a 100644 --- a/sys-apps/nawk/files/nawk-20121220-parallel-build.patch +++ b/sys-apps/nawk/files/nawk-20121220-parallel-build.patch @@ -1,5 +1,5 @@ ---- makefile.orig 2013-02-06 10:26:36.452829647 -0700 -+++ makefile 2013-02-07 09:12:13.293898947 -0700 +--- a/makefile 2013-02-06 10:26:36.452829647 -0700 ++++ b/makefile 2013-02-07 09:12:13.293898947 -0700 @@ -44,7 +44,7 @@ LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \ lib.c run.c tran.c diff --git a/sys-apps/nawk/nawk-20121220-r3.ebuild b/sys-apps/nawk/nawk-20121220-r3.ebuild new file mode 100644 index 00000000000..a52e72d09b2 --- /dev/null +++ b/sys-apps/nawk/nawk-20121220-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Brian Kernighan's pattern scanning and processing language" +HOMEPAGE="http://cm.bell-labs.com/cm/cs/awkbook/index.html" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-macos" + +RDEPEND=" + app-eselect/eselect-awk + !sys-freebsd/freebsd-ubin" + +DEPEND=" + ${RDEPEND} + virtual/yacc" + +S="${WORKDIR}" + +PATCHES=( "${FILESDIR}/${P}"-parallel-build.patch ) + +DOCS=( README FIXES ) + +src_prepare() { + default + rm -v ytab.[hc] || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + CPPFLAGS=-DHAS_ISBLANK \ + ALLOC="${LDFLAGS}" \ + YACC=$(type -p yacc) \ + YFLAGS="-d" +} + +src_install() { + newbin a.out "${PN}" + sed \ + -e 's/awk/nawk/g' \ + -e 's/AWK/NAWK/g' \ + -e 's/Awk/Nawk/g' \ + awk.1 > "${PN}".1 || die "manpage patch failed" + doman "${PN}.1" + einstalldocs +} + +pkg_postinst() { + eselect awk update ifunset +} + +pkg_postrm() { + eselect awk update ifunset +}