Fix another place where having the patch level in the distfile caused problems.

PR:		50618
Submitted by:	Yen-Ming Lee <leeym@utopia.leeym.com>
This commit is contained in:
David E. O'Brien 2003-04-06 16:28:32 +00:00
parent 6fb546432a
commit d5c7b7c726
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78438

View file

@ -46,8 +46,9 @@ PATCH_DIST_ARGS= -d ${WRKSRC:S/src$//} --forward --quiet -E ${PATCH_DIST_STRIP}
#PATCH_DIST_ARGS= -t #PATCH_DIST_ARGS= -t
MAKE_ARGS+= CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib ${CSCOPE_ARG}" MAKE_ARGS+= CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib ${CSCOPE_ARG}"
ALL_TARGET= # ALL_TARGET= #
PLIST_SUB= VIM_VER=${DISTNAME:S/-//:S/.//} _DATADIR= ${DISTNAME:C/.[0-9]*$//:S/-//g:S/.//g}
DATADIR= ${PREFIX}/share/vim/vim${PORTVERSION:C/\.[0-9]*$//:S/.//g} DATADIR= ${PREFIX}/share/vim/${_DATADIR}
PLIST_SUB= VIM_VER=${_DATADIR}
MAN1= evim.1 vim.1 vimdiff.1 vimtutor.1 xxd.1 MAN1= evim.1 vim.1 vimdiff.1 vimtutor.1 xxd.1
MLINKS= vim.1 rvim.1 vim.1 rview.1 MLINKS= vim.1 rvim.1 vim.1 rview.1
.if !defined(LITE) .if !defined(LITE)
@ -154,12 +155,12 @@ post-install:
|| (cd ${PREFIX}/bin ; ${LN} -sf vim gvimdiff) || (cd ${PREFIX}/bin ; ${LN} -sf vim gvimdiff)
${INSTALL_DATA} ${FILESDIR}/vietnamese_viscii.vim ${DATADIR}/keymap ${INSTALL_DATA} ${FILESDIR}/vietnamese_viscii.vim ${DATADIR}/keymap
cd ${PREFIX} ;\ cd ${PREFIX} ;\
${FIND} ${DATADIR:S/^${PREFIX}\///} -type f -o -type l \ ${FIND} share/vim/${_DATADIR} -type f -o -type l \
| sort \ | sort \
>${WRKDIR}/PLIST.share-vim >${WRKDIR}/PLIST.share-vim
cd ${PREFIX} ;\ cd ${PREFIX} ;\
${FIND} ${DATADIR:S/^${PREFIX}\///} -type d \ ${FIND} share/vim/${_DATADIR} -type d \
| sort -r | ${SED} -e 's/^/@dirrm /g' \ | sort -r | ${SED} -e 's/^/@dirrm /g' \
>>${WRKDIR}/PLIST.share-vim >>${WRKDIR}/PLIST.share-vim
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script ${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
${ECHO_CMD} "/Insert PLIST.share-vim" >> ${WRKDIR}/ex.script ${ECHO_CMD} "/Insert PLIST.share-vim" >> ${WRKDIR}/ex.script