aboutsummaryrefslogtreecommitdiff
path: root/japanese/grep
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-02-27 18:27:24 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-02-27 18:27:24 +0000
commit1a78e9a3344afadb32117c4d758ca7fd5503e8ec (patch)
tree8ee3d56f7d5deb057dd6a082487a6c71ca8bcf3b /japanese/grep
parent2009bf52e01f1b3d641fb58aa3206184dc9c39ac (diff)
downloadports-1a78e9a3344afadb32117c4d758ca7fd5503e8ec.tar.gz
ports-1a78e9a3344afadb32117c4d758ca7fd5503e8ec.zip
Notes
Diffstat (limited to 'japanese/grep')
-rw-r--r--japanese/grep/Makefile4
-rw-r--r--japanese/grep/files/patch-ab10
-rw-r--r--japanese/grep/files/patch-ad11
-rw-r--r--japanese/grep/pkg-plist6
4 files changed, 23 insertions, 8 deletions
diff --git a/japanese/grep/Makefile b/japanese/grep/Makefile
index 80489d616936..37e0fb6a2fd2 100644
--- a/japanese/grep/Makefile
+++ b/japanese/grep/Makefile
@@ -7,6 +7,7 @@
PORTNAME= grep
PORTVERSION= 2.0
+PORTREVISION= 1
CATEGORIES= japanese textproc
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= grep
@@ -18,8 +19,9 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= ports@FreeBSD.org
GNU_CONFIGURE= yes
+MAKE_ARGS= binprefix=j
-MAN1= grep.1
+MAN1= jgrep.1
post-install:
.if !defined(NOPORTDOCS)
diff --git a/japanese/grep/files/patch-ab b/japanese/grep/files/patch-ab
index 2778acae1d93..3712ae594301 100644
--- a/japanese/grep/files/patch-ab
+++ b/japanese/grep/files/patch-ab
@@ -1,5 +1,5 @@
---- Makefile.in.orig Fri Dec 3 21:46:09 1999
-+++ Makefile.in Fri Dec 3 21:47:39 1999
+--- Makefile.in.orig Mon Feb 12 03:51:57 2001
++++ Makefile.in Mon Feb 12 03:59:55 2001
@@ -53,10 +53,10 @@
LIBS=@LIBS@
ALLOCA=@ALLOCA@
@@ -13,7 +13,7 @@
exec_prefix=$(prefix)
# Prefix for installed program, normally empty or `g'.
-@@ -97,9 +97,9 @@
+@@ -97,10 +97,10 @@
install: all
$(INSTALL_PROGRAM) grep $(bindir)/$(binprefix)grep
rm -f $(bindir)/$(binprefix)egrep
@@ -21,7 +21,9 @@
+ $(LN) -s $(binprefix)grep $(bindir)/$(binprefix)egrep
rm -f $(bindir)/$(binprefix)fgrep
- $(LN) $(bindir)/$(binprefix)grep $(bindir)/$(binprefix)fgrep
+- $(INSTALL_DATA) $(srcdir)/grep.man $(mandir)/grep.$(manext)
+ $(LN) -s $(binprefix)grep $(bindir)/$(binprefix)fgrep
- $(INSTALL_DATA) $(srcdir)/grep.man $(mandir)/grep.$(manext)
++ $(INSTALL_DATA) $(srcdir)/grep.man $(mandir)/$(binprefix)grep.$(manext)
check:
+ AWK=$(AWK) sh $(srcdir)/tests/check.sh $(srcdir)/tests
diff --git a/japanese/grep/files/patch-ad b/japanese/grep/files/patch-ad
new file mode 100644
index 000000000000..126058791949
--- /dev/null
+++ b/japanese/grep/files/patch-ad
@@ -0,0 +1,11 @@
+--- grep.c.orig Mon Feb 12 03:52:11 2001
++++ grep.c Mon Feb 12 03:57:30 2001
+@@ -832,7 +832,7 @@
+ usage();
+
+ if (!matcher)
+- matcher = prog;
++ matcher = prog[0] == 'j' ? prog + 1 : prog;
+
+ if (!setmatcher(matcher) && !setmatcher("default"))
+ abort();
diff --git a/japanese/grep/pkg-plist b/japanese/grep/pkg-plist
index 588caf415811..5c61343cf879 100644
--- a/japanese/grep/pkg-plist
+++ b/japanese/grep/pkg-plist
@@ -1,5 +1,5 @@
-bin/grep
-bin/egrep
-bin/fgrep
+bin/jgrep
+bin/jegrep
+bin/jfgrep
share/doc/ja/grep/README.MB
@dirrm share/doc/ja/grep