mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Prefix "j" to the names of the binaries and the manpages.
As they are based on an old version of GNU grep (2.0), they should not clash with those of the base system's.
This commit is contained in:
parent
2009bf52e0
commit
1a78e9a334
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38858
@ -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)
|
||||
|
@ -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
|
||||
|
11
japanese/grep/files/patch-ad
Normal file
11
japanese/grep/files/patch-ad
Normal file
@ -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();
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user