ports/103069: [PATCH] editors/vim: fix ctags menu entry

Stanislav Sedov ssedov at mbsd.msk.ru
Sat Sep 9 14:50:24 UTC 2006


>Number:         103069
>Category:       ports
>Synopsis:       [PATCH] editors/vim: fix ctags menu entry
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 09 14:50:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Aug 31 10:34:52 MSD 2006
>Description:
 - Freebsd's ctags has no -R option

Copy of this message was sent to (obrien at FreeBSD.org).

>How-To-Repeat:
>Fix:

--- vim-7.0.88_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /work/src/fbsd-cvs/ports/editors/vim/Makefile,v
retrieving revision 1.282
diff -u -u -r1.282 Makefile
--- Makefile	5 Sep 2006 16:28:24 -0000	1.282
+++ Makefile	9 Sep 2006 14:41:09 -0000
@@ -9,7 +9,7 @@
 PORTNAME?=	vim
 PATCHLEVEL=	88
 PORTVERSION=	7.0.${PATCHLEVEL}
-PORTREVISION?=	0
+PORTREVISION?=	1
 CATEGORIES?=	editors
 MASTER_SITES=	${MASTER_SITE_VIM}
 DISTNAME=	vim-${PORTVERSION:C/\.[0-9a-z]*$//}
@@ -41,6 +41,7 @@
 PATCH_DIST_ARGS= -d ${WRKSRC:S/src$//} --batch --forward --quiet -E ${PATCH_DIST_STRIP}
 # consider
 #PATCH_DIST_ARGS=	-t
+REINPLACE_ARGS=		-i ""
 MAKE_ARGS+=	CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib ${CSCOPE_ARG}"
 ALL_TARGET=	#
 _DATADIR=	${DISTNAME:S/-//g:S/.//g}
@@ -137,6 +138,11 @@
 USE_ICONV=	yes
 .endif
 
+post-patch:
+	@(${FIND} ${WRKSRC}/../runtime/ -name menu\*.vim -print0 | ${XARGS} -0\
+		${REINPLACE_CMD} \
+		-e 's,ctags -R \.,${FIND} . -type f|${XARGS} ctags,g')
+
 pre-configure:
 	@(cd ${WRKSRC} ; ${MAKE} distclean)
 	@${REINPLACE_CMD} -e ' \
--- vim-7.0.88_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list