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:
parent
6fb546432a
commit
d5c7b7c726
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78438
1 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue