diff options
author | alfred <alfred@FreeBSD.org> | 2014-11-17 06:55:10 +0800 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2014-11-17 06:55:10 +0800 |
commit | 80c3a61bef4882d8d70b9d5fd07c1d3563168c8e (patch) | |
tree | 2ec141dc587ce1939dc6719f7255b9dc618787fd /editors/vim/Makefile | |
parent | 8559606aae966a487ea3b565bc3e266c04b7e3ce (diff) | |
download | freebsd-ports-gnome-80c3a61bef4882d8d70b9d5fd07c1d3563168c8e.tar.gz freebsd-ports-gnome-80c3a61bef4882d8d70b9d5fd07c1d3563168c8e.tar.zst freebsd-ports-gnome-80c3a61bef4882d8d70b9d5fd07c1d3563168c8e.zip |
Use vimrc from distribution.
Suggested by: many.
Diffstat (limited to 'editors/vim/Makefile')
-rw-r--r-- | editors/vim/Makefile | 8 |
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> |