Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0
name nawk
version 20050424
categories lang
maintainers nomaintainer@macports.org
description the one true awk
long_description Kernighan's canonical implementation of awk.
homepage http://cm.bell-labs.com/cm/cs/awkbook/
platforms darwin

master_sites http://cm.bell-labs.com/cm/cs/who/bwk/
distname awk
checksums md5 6a8c9efb19d8f1d641148429202ac1de
dist_subdir ${name}/${version}

patchfiles patch-run.c

pre-extract {
file mkdir ${worksrcpath}
}

extract.dir ${worksrcpath}

use_configure no

build.target
build.args CFLAGS="-DHAS_ISBLANK"

destroot {
xinstall ${worksrcpath}/a.out ${destroot}${prefix}/bin/awk
xinstall ${worksrcpath}/awk.1 ${destroot}${prefix}/share/man/man1
}

files