diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2007-01-03 08:40:20 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2007-01-03 08:40:20 +0000 |
commit | 230c3165229b003e1e469527f1524e5ee7de9424 (patch) | |
tree | 1e6b410d335b4e33a529726e6d5ad37190247899 /editors/vim | |
parent | o Add support to <bsd.lib.mk> NO_PROFILE (diff) |
Catch up with Exuberant ctags binary name change.
To use Exuberant ctags vs. /usr/bin/ctags build 'WITH_EXUBERANT_CTAGS'.
Notes
Notes:
svn path=/head/; revision=181324
Diffstat (limited to 'editors/vim')
-rw-r--r-- | editors/vim/Makefile | 18 |
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) |