aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-07-07 01:46:30 +0800
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-07-07 01:46:30 +0800
commit57769ab34ba08f11567a5ece721ca4600044c3bf (patch)
tree194639a64c8003b9d51c7c2bd3630375e827ecfd /editors
parentfdc29d42880e7b316b3e96ee2a99c6fc2a506dd3 (diff)
downloadfreebsd-ports-gnome-57769ab34ba08f11567a5ece721ca4600044c3bf.tar.gz
freebsd-ports-gnome-57769ab34ba08f11567a5ece721ca4600044c3bf.tar.zst
freebsd-ports-gnome-57769ab34ba08f11567a5ece721ca4600044c3bf.zip
- Convert to new option target helper
Diffstat (limited to 'editors')
-rw-r--r--editors/vim/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index dc85041bcf36..52894102ee1e 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -152,15 +152,18 @@ post-install:
${TEST} -e ${STAGEDIR}${PREFIX}/bin/${file} || ${LN} -fs vim ${STAGEDIR}${PREFIX}/bin/${file}
.endfor
.endif
-.if ${PORT_OPTIONS:MDEFAULT_VIMRC}
+
+post-install-DEFAULT_VIMRC-on:
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${FILESDIR}/vimrc ${STAGEDIR}${ETCDIR}/gvimrc.sample
${INSTALL_DATA} ${FILESDIR}/vimrc ${STAGEDIR}${ETCDIR}/vimrc.sample
-.endif
-.if !${PORT_OPTIONS:MNLS}
+
+post-install-NLS-off:
${MKDIR} ${STAGEDIR}${DATADIR}/${VIM_VER}/keymap/
${INSTALL_DATA} ${WRKSRC}/runtime/keymap/* ${STAGEDIR}${DATADIR}/${VIM_VER}/keymap/
-.endif
+ ${INSTALL_DATA} ${FILESDIR}/vietnamese_viscii.vim ${STAGEDIR}${DATADIR}/${VIM_VER}/keymap/
+
+post-install-NLS-on:
${INSTALL_DATA} ${FILESDIR}/vietnamese_viscii.vim ${STAGEDIR}${DATADIR}/${VIM_VER}/keymap/
.include <bsd.port.post.mk>