diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2003-04-07 00:28:32 +0800 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2003-04-07 00:28:32 +0800 |
commit | d5c7b7c72665e208da67b054649af1fb12e71e46 (patch) | |
tree | b42affd2c360000e7a1017e1d2326118382879ef /editors/vim | |
parent | 6fb546432abd4d83520c2f72c077886b0ed7b3eb (diff) | |
download | freebsd-ports-gnome-d5c7b7c72665e208da67b054649af1fb12e71e46.tar.gz freebsd-ports-gnome-d5c7b7c72665e208da67b054649af1fb12e71e46.tar.zst freebsd-ports-gnome-d5c7b7c72665e208da67b054649af1fb12e71e46.zip |
Fix another place where having the patch level in the distfile caused problems.
PR: 50618
Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com>
Diffstat (limited to 'editors/vim')
-rw-r--r-- | editors/vim/Makefile | 13 |
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 |