blob: e38ab1d840173c7fa498d93579dd5181e10f169a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/nawk/nawk-20110810.ebuild,v 1.1 2012/06/04 02:31:14 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="http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND=""
DEPEND="virtual/yacc"
S="${WORKDIR}"
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" ALLOC="${LDFLAGS}" YACC=$(type -p yacc)
}
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
}
|