summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakamoto <sakamoto@pkgsrc.org>1999-06-08 09:02:43 +0000
committersakamoto <sakamoto@pkgsrc.org>1999-06-08 09:02:43 +0000
commit55d34dc09d08ad5b36371c9428d4e95d2db5a3e7 (patch)
treea547c04a12e0847f25f88f646e90c94050d40f53
parent8ae4d6286ff3a5da1530393b5062bad1c486d480 (diff)
downloadpkgsrc-55d34dc09d08ad5b36371c9428d4e95d2db5a3e7.tar.gz
Import FreeBSD's "gawk" port:
GNU awk + multi-byte extension.
-rw-r--r--japanese/gawk/Makefile47
-rw-r--r--japanese/gawk/files/md52
-rw-r--r--japanese/gawk/patches/patch-ab21
-rw-r--r--japanese/gawk/pkg/COMMENT1
-rw-r--r--japanese/gawk/pkg/DESCR5
-rw-r--r--japanese/gawk/pkg/PLIST2
6 files changed, 78 insertions, 0 deletions
diff --git a/japanese/gawk/Makefile b/japanese/gawk/Makefile
new file mode 100644
index 00000000000..61141176868
--- /dev/null
+++ b/japanese/gawk/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: gawk+mb
+# Version required: 2.15.6+mb1.04
+# Date created: 5 April 1995
+# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
+#
+# $Id: Makefile,v 1.1.1.1 1999/06/08 09:02:43 sakamoto Exp $
+#
+
+DISTNAME= gawk-2.15.6
+PKGNAME= ja-gawk-2.15.6
+CATEGORIES= japanese textproc
+MASTER_SITES= ${MASTER_SITE_GNU}
+MASTER_SITE_SUBDIR= gawk
+
+MAINTAINER= ports@FreeBSD.ORG
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= bsd44
+PATCH_STRIP= -p1
+
+PATCH_SITES= ftp://ftp.iij.ad.jp/pub/NetNews/fj.sources/volume95/May/
+PATCHFILES= gawk-2.15.6-mb1.04.diff.gz
+DISTPATCHES= 950503.01.Z 950503.02.Z 950503.03.Z 950503.04.Z
+# Try this if you can't get into ftp.iij.ad.jp
+# PATCH_SITES= ftp://isfs.kuis.kyoto-u.ac.jp/News.Archives/fj.sources/1995/
+# DISTPATCHES= 372.gz 373.gz 374.gz 375.gz
+PATCH_DIST_STRIP= -p1
+
+.if !defined(MASTER_SITE_OVERRIDE)
+pre-fetch:
+ @(cd ${DISTDIR}; \
+ if [ ! -f ${PATCHFILES} ]; then \
+ ${ECHO_MSG} ">> ${PATCHFILES} doesn't seem to exist on this system."; \
+ for file in ${DISTPATCHES} ; do \
+ for site in ${PATCH_SITES} ; do \
+ if ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}$${file} ${FETCH_AFTER_ARGS}; then \
+ break; \
+ fi \
+ done; \
+ done; \
+ for file in ${DISTPATCHES} ; do zcat $${file}; done | \
+ sed -e '1,/-----8</d' -e '/-----8</,/-----8</d' | uudecode; \
+ rm -f ${DISTPATCHES};\
+ fi)
+.endif
+
+.include <bsd.port.mk>
diff --git a/japanese/gawk/files/md5 b/japanese/gawk/files/md5
new file mode 100644
index 00000000000..366ec6ba434
--- /dev/null
+++ b/japanese/gawk/files/md5
@@ -0,0 +1,2 @@
+MD5 (gawk-2.15.6.tar.gz) = 62ad283de0ca65365481a9dc05bc367c
+MD5 (gawk-2.15.6-mb1.04.diff.gz) = bcf13277edf459b43269eeba1e70be38
diff --git a/japanese/gawk/patches/patch-ab b/japanese/gawk/patches/patch-ab
new file mode 100644
index 00000000000..8e3f2302343
--- /dev/null
+++ b/japanese/gawk/patches/patch-ab
@@ -0,0 +1,21 @@
+--- gawk-2.15.4/Makefile.bsd44-orig Wed Apr 5 16:13:10 1995
++++ gawk-2.15.4/Makefile.bsd44 Wed Apr 5 16:43:45 1995
+@@ -1,4 +1,4 @@
+-PROG= awk
++PROG= gawk
+ SRCS= main.c eval.c builtin.c msg.c iop.c io.c field.c getopt1.c \
+ getopt.c array.c \
+ node.c version.c missing.c re.c awk.c regex.c dfa.c \
+@@ -6,10 +6,8 @@
+ DPADD= ${LIBM}
+ LDADD= -lm
+ CFLAGS+=-I${.CURDIR} -DGAWK -DEUC
+-BINDIR= /usr/bin
+-MANDIR= /usr/share/man/cat
++BINDIR= /usr/local/bin
++MANDIR= /usr/local/man/man
+ CLEANFILES+=awk.c y.tab.h awk.0
+
+-awk.0: gawk.1
+- nroff -man gawk.1 > awk.0
+ .include <bsd.prog.mk>
diff --git a/japanese/gawk/pkg/COMMENT b/japanese/gawk/pkg/COMMENT
new file mode 100644
index 00000000000..616ba2e0d0e
--- /dev/null
+++ b/japanese/gawk/pkg/COMMENT
@@ -0,0 +1 @@
+GNU awk + multi-byte extension.
diff --git a/japanese/gawk/pkg/DESCR b/japanese/gawk/pkg/DESCR
new file mode 100644
index 00000000000..86825ea65db
--- /dev/null
+++ b/japanese/gawk/pkg/DESCR
@@ -0,0 +1,5 @@
+This package is multi-byte extented GNU AWK. It accepts text which
+includes multi-byte character codes. Supported multi-byte codes are
+2 byte EUC code and/or Shift-JIS code.
+
+Multi-byte code by t^2(Takahiro Tanimoto, NBC02362@niftyserve.or.jp).
diff --git a/japanese/gawk/pkg/PLIST b/japanese/gawk/pkg/PLIST
new file mode 100644
index 00000000000..e1f4b914dd3
--- /dev/null
+++ b/japanese/gawk/pkg/PLIST
@@ -0,0 +1,2 @@
+bin/gawk
+man/man1/gawk.1.gz