aboutsummaryrefslogtreecommitdiffstats
path: root/editors/vim/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vim/Makefile')
-rw-r--r--editors/vim/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index a409c2a9dad0..a0307706a911 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -58,7 +58,7 @@ INSTALL_WRKSRC= ${WRKDIR}/${VIM_VER}/src
WRKSRC= ${WRKDIR}/${VIM_VER}
PLIST_SUB= VIM_VER=${VIM_VER}
-PORTDATA= *
+PORTDATA= ${VIM_VER}
VIM_VER= ${PORTNAME}${PORTVERSION:R:S/.//g}
@@ -126,6 +126,9 @@ IGNORE= this port has new UI option (CONSOLE) for users who do not need GUI sup
.if ${PORT_OPTIONS:MDEFAULT_VIMRC}
DEFAULT_VIMRC_LOCATION=${PREFIX}/share/vim
+PLIST_SUB+= DEFAULT_VIMRC="@sample "
+.else
+PLIST_SUB+= DEFAULT_VIMRC="@comment "
.endif
.if ${PORT_OPTIONS:MCONSOLE} || ${PORT_OPTIONS:MX11}
@@ -191,7 +194,8 @@ post-install:
${INSTALL_DATA} ${FILESDIR}/vietnamese_viscii.vim ${STAGEDIR}${DATADIR}/${VIM_VER}/keymap/
${TOUCH} ${STAGEDIR}${DATADIR}/${VIM_VER}/lang/.keepme
.if ${PORT_OPTIONS:MDEFAULT_VIMRC}
- ${INSTALL_DATA} ${FILESDIR}/vimrc ${STAGEDIR}${DEFAULT_VIMRC_LOCATION}/vimrc
+ ${INSTALL_DATA} ${WRKSRC}/runtime/vimrc_example.vim ${STAGEDIR}${DEFAULT_VIMRC_LOCATION}/vimrc
+ ${INSTALL_DATA} ${WRKSRC}/runtime/gvimrc_example.vim ${STAGEDIR}${DEFAULT_VIMRC_LOCATION}/gvimrc
.endif
.include <bsd.port.post.mk>