From 548bf9151e42b19a7024b382f37e6e7ccf1721cf Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Wed, 6 Feb 2013 03:29:55 +0000 Subject: added CPPFLAGS=-DHAS_ISBLANK to fix issue with space in programs (Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key C2000586) --- sys-apps/nawk/ChangeLog | 8 ++++++- sys-apps/nawk/nawk-20121220-r1.ebuild | 44 +++++++++++++++++++++++++++++++++++ sys-apps/nawk/nawk-20121220.ebuild | 44 ----------------------------------- 3 files changed, 51 insertions(+), 45 deletions(-) create mode 100644 sys-apps/nawk/nawk-20121220-r1.ebuild delete mode 100644 sys-apps/nawk/nawk-20121220.ebuild (limited to 'sys-apps/nawk') diff --git a/sys-apps/nawk/ChangeLog b/sys-apps/nawk/ChangeLog index 421fad77db9a..f508da43eb40 100644 --- a/sys-apps/nawk/ChangeLog +++ b/sys-apps/nawk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/nawk # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/nawk/ChangeLog,v 1.7 2013/02/06 03:19:35 ottxor Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/nawk/ChangeLog,v 1.8 2013/02/06 03:29:55 ottxor Exp $ + +*nawk-20121220-r1 (06 Feb 2013) + + 06 Feb 2013; Christoph Junghans +nawk-20121220-r1.ebuild, + -nawk-20121220.ebuild: + added CPPFLAGS=-DHAS_ISBLANK to fix issue with space in programs *nawk-20121220 (06 Feb 2013) diff --git a/sys-apps/nawk/nawk-20121220-r1.ebuild b/sys-apps/nawk/nawk-20121220-r1.ebuild new file mode 100644 index 000000000000..4547c7aa522c --- /dev/null +++ b/sys-apps/nawk/nawk-20121220-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/nawk/nawk-20121220-r1.ebuild,v 1.1 2013/02/06 03:29:55 ottxor Exp $ + +EAPI="4" + +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.org/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-macos" +IUSE="" + +RDEPEND="app-admin/eselect-awk" +DEPEND="${RDEPEND} + virtual/yacc" + +S="${WORKDIR}" + +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 + dodoc README FIXES +} + +pkg_postinst() { + eselect awk update ifunset +} + +pkg_postrm() { + eselect awk update ifunset +} diff --git a/sys-apps/nawk/nawk-20121220.ebuild b/sys-apps/nawk/nawk-20121220.ebuild deleted file mode 100644 index 7e41b26e2c52..000000000000 --- a/sys-apps/nawk/nawk-20121220.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/nawk/nawk-20121220.ebuild,v 1.1 2013/02/06 03:19:35 ottxor Exp $ - -EAPI="4" - -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.org/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-macos" -IUSE="" - -RDEPEND="app-admin/eselect-awk" -DEPEND="${RDEPEND} - virtual/yacc" - -S="${WORKDIR}" - -src_compile() { - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" 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 - dodoc README FIXES -} - -pkg_postinst() { - eselect awk update ifunset -} - -pkg_postrm() { - eselect awk update ifunset -} -- cgit v1.2.3-65-gdbad