aboutsummaryrefslogtreecommitdiffstats
path: root/editors/vim
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2007-01-03 16:40:20 +0800
committerobrien <obrien@FreeBSD.org>2007-01-03 16:40:20 +0800
commit9547c0df66e122261fca856044de4124ea181c2a (patch)
tree97b3022a0cdf02f746704491fcefb9bbd339dbc5 /editors/vim
parent01c773dbeebe5604dcb14c536baa7540fdb86f6e (diff)
downloadfreebsd-ports-gnome-9547c0df66e122261fca856044de4124ea181c2a.tar.gz
freebsd-ports-gnome-9547c0df66e122261fca856044de4124ea181c2a.tar.zst
freebsd-ports-gnome-9547c0df66e122261fca856044de4124ea181c2a.zip
Catch up with Exuberant ctags binary name change.
To use Exuberant ctags vs. /usr/bin/ctags build 'WITH_EXUBERANT_CTAGS'.
Diffstat (limited to 'editors/vim')
-rw-r--r--editors/vim/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index 7bc0d0eaaf67..a93c37a3a900 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -10,7 +10,7 @@ PORTNAME?= vim
PATCHLEVEL= 178
PORTVERSION= 7.0.${PATCHLEVEL}
RELEASE= vim-${PORTVERSION:C/\.[0-9a-z]*$//}
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES?= editors
MASTER_SITES= ${MASTER_SITE_VIM}
DISTFILES= ${RELEASE}${EXTRACT_SUFX}
@@ -34,6 +34,7 @@ SLAVEDIRS= editors/vim-lite
WITH_PERL= yes
WITH_PYTHON= yes
WITH_CSCOPE= yes
+WITH_EXUBERANT_CTAGS=yes
.endif
.if defined(WITH_TCL)
@@ -88,6 +89,10 @@ RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope
MAKE_ARGS+= CONF_OPT_CSCOPE="--enable-cscope"
.endif
+.if defined(WITH_EXUBERANT_CTAGS)
+RUN_DEPENDS+= exctags:${PORTSDIR}/devel/ctags
+.endif
+
.if defined(WITH_PERL)
USE_PERL5= yes
MAKE_ARGS+= CONF_OPT_PERL="--enable-perlinterp"
@@ -157,10 +162,15 @@ post-extract:
@${TAR} -C ${WRKDIR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${LANG_FILE}
.endif
+.if defined(WITH_EXUBERANT_CTAGS)
+CTAGS_CMD= exctags -R .
+.else
+CTAGS_CMD= ${FIND} . -type f|${XARGS} ctags
+.endif
+
post-patch:
- @(${FIND} ${WRKSRC}/../runtime/ -name menu\*.vim -print0 | ${XARGS} -0\
- ${REINPLACE_CMD} \
- -e 's,ctags -R \.,${FIND} . -type f|${XARGS} ctags,g')
+ @(${FIND} ${WRKSRC}/../runtime/ -name menu\*.vim -print0 | ${XARGS} -0 \
+ ${REINPLACE_CMD} -e 's,ctags -R \.,${CTAGS_CMD},g')
pre-configure:
@(cd ${WRKSRC} ; ${MAKE} distclean)