summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/nawk/DESCR9
-rw-r--r--lang/nawk/Makefile33
-rw-r--r--lang/nawk/distinfo8
3 files changed, 33 insertions, 17 deletions
diff --git a/lang/nawk/DESCR b/lang/nawk/DESCR
index db80762a0b2..2cc1af9f6d2 100644
--- a/lang/nawk/DESCR
+++ b/lang/nawk/DESCR
@@ -1,6 +1,5 @@
The one, true implementation of the AWK pattern-directed scanning and
-processing language, by one of the language's creators, Brian
-Kernighan. This is the version of awk described in "The AWK
-Programming Language", by Al Aho, Brian Kernighan, and Peter
-Weinberger (Addison-Wesley, 1988, ISBN 0-201-07981-X).
-It is also known as new awk, or nawk.
+processing language, by one of the language's creators, Brian Kernighan.
+This is the version of awk described in "The AWK Programming Language",
+by Al Aho, Brian Kernighan, and Peter Weinberger (Addison-Wesley,
+1988, ISBN 0-201-07981-X). It is also known as new awk, or nawk.
diff --git a/lang/nawk/Makefile b/lang/nawk/Makefile
index 4ca46b91514..c076b543474 100644
--- a/lang/nawk/Makefile
+++ b/lang/nawk/Makefile
@@ -1,28 +1,45 @@
-# $NetBSD: Makefile,v 1.22 2005/04/11 21:46:14 tv Exp $
+# $NetBSD: Makefile,v 1.23 2005/05/18 05:22:43 jlam Exp $
#
DISTNAME= awk
-PKGNAME= nawk-20040207
+PKGNAME= nawk-20050424
CATEGORIES= lang
-MASTER_SITES= http://cm.bell-labs.com/who/bwk/
+#MASTER_SITES= http://cm.bell-labs.com/who/bwk/
+MASTER_SITES= ${MASTER_SITE_LOCAL:=${PKGNAME_NOREV}/}
+DIST_SUBDIR= ${PKGNAME}
+
+# We use the .shar file instead of the .tar.gz file to avoid needing
+# build dependencies.
+#
+EXTRACT_SUFX= .shar
MAINTAINER= cjep@NetBSD.org
HOMEPAGE= http://cm.bell-labs.com/who/bwk/
COMMENT= Brian Kernighan's pattern-directed scanning and processing language
-DIST_SUBDIR= ${PKGNAME}
-WRKSRC= ${WRKDIR}
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+.include "../../mk/bsd.prefs.mk"
+.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
USE_GNU_TOOLS+= yacc
+.else
+USE_TOOLS+= yacc
+.endif
-PKG_INSTALLATION_TYPES= overwrite pkgviews
-
-MAKEFILE= makefile
+WRKSRC= ${WRKDIR}
+CFLAGS+= ${CPPFLAGS}
MAKE_FLAGS+= CC=${CC:Q} YACC=${YACC:Q} CFLAGS=${CFLAGS:Q}
BUILD_TARGET= a.out
INSTALLATION_DIRS= bin man/man1
+# Fix bug in distributed makefile with respect to improper makefile
+# comments -- we simply just strip out all comments from the file.
+#
+do-configure:
+ ${SED} "s|^[ ]*#.*||" ${WRKSRC}/makefile > ${WRKSRC}/${MAKEFILE}
+
+# We want to install the man page as "nawk.1".
post-build:
${SED} -e 's|awk|nawk|g' -e 's/Awk/Nawk/g' \
${WRKSRC}/awk.1 > ${WRKSRC}/nawk.1
diff --git a/lang/nawk/distinfo b/lang/nawk/distinfo
index be619d727b7..94ad01a1673 100644
--- a/lang/nawk/distinfo
+++ b/lang/nawk/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2005/02/24 09:03:09 agc Exp $
+$NetBSD: distinfo,v 1.10 2005/05/18 05:22:43 jlam Exp $
-SHA1 (nawk-20040207/awk.tar.gz) = 4586c56e0dd37b0499f1eb6b7274c7ba5e1813da
-RMD160 (nawk-20040207/awk.tar.gz) = 8884857e282a798704e69730f813fc2af285846a
-Size (nawk-20040207/awk.tar.gz) = 85779 bytes
+SHA1 (nawk-20050424/awk.shar) = 8150a0a4c143b71a4cc5ec8dc67bccb98f472721
+RMD160 (nawk-20050424/awk.shar) = 49c6b6b0071a7c1bc5531974c8a5787684035b63
+Size (nawk-20050424/awk.shar) = 512192 bytes