summaryrefslogtreecommitdiff
path: root/editors/vim/Makefile
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2003-04-06 16:28:32 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2003-04-06 16:28:32 +0000
commitd5c7b7c72665e208da67b054649af1fb12e71e46 (patch)
treeb42affd2c360000e7a1017e1d2326118382879ef /editors/vim/Makefile
parentFix the DATADIR path in the cases where the distfile contains a patch level. (diff)
Fix another place where having the patch level in the distfile caused problems.
PR: 50618 Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com>
Notes
Notes: svn path=/head/; revision=78438
Diffstat (limited to 'editors/vim/Makefile')
-rw-r--r--editors/vim/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index df322e7500ba..8abfb876a1c9 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -46,8 +46,9 @@ PATCH_DIST_ARGS= -d ${WRKSRC:S/src$//} --forward --quiet -E ${PATCH_DIST_STRIP}
#PATCH_DIST_ARGS= -t
MAKE_ARGS+= CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib ${CSCOPE_ARG}"
ALL_TARGET= #
-PLIST_SUB= VIM_VER=${DISTNAME:S/-//:S/.//}
-DATADIR= ${PREFIX}/share/vim/vim${PORTVERSION:C/\.[0-9]*$//:S/.//g}
+_DATADIR= ${DISTNAME:C/.[0-9]*$//:S/-//g:S/.//g}
+DATADIR= ${PREFIX}/share/vim/${_DATADIR}
+PLIST_SUB= VIM_VER=${_DATADIR}
MAN1= evim.1 vim.1 vimdiff.1 vimtutor.1 xxd.1
MLINKS= vim.1 rvim.1 vim.1 rview.1
.if !defined(LITE)
@@ -154,12 +155,12 @@ post-install:
|| (cd ${PREFIX}/bin ; ${LN} -sf vim gvimdiff)
${INSTALL_DATA} ${FILESDIR}/vietnamese_viscii.vim ${DATADIR}/keymap
cd ${PREFIX} ;\
- ${FIND} ${DATADIR:S/^${PREFIX}\///} -type f -o -type l \
- | sort \
+ ${FIND} share/vim/${_DATADIR} -type f -o -type l \
+ | sort \
>${WRKDIR}/PLIST.share-vim
cd ${PREFIX} ;\
- ${FIND} ${DATADIR:S/^${PREFIX}\///} -type d \
- | sort -r | ${SED} -e 's/^/@dirrm /g' \
+ ${FIND} share/vim/${_DATADIR} -type d \
+ | sort -r | ${SED} -e 's/^/@dirrm /g' \
>>${WRKDIR}/PLIST.share-vim
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
${ECHO_CMD} "/Insert PLIST.share-vim" >> ${WRKDIR}/ex.script