summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2019-11-02 19:57:01 +0000
committertnn <tnn@pkgsrc.org>2019-11-02 19:57:01 +0000
commit532c4f58dadaa7962580a96f4a9c72e39aa92446 (patch)
treead79b76bb516f2231afd2d87e5affe4b63cc2f8b
parentb456194580263e1e48dd7da909810b61a34a141b (diff)
downloadpkgsrc-532c4f58dadaa7962580a96f4a9c72e39aa92446.tar.gz
vim: fix python option
-rw-r--r--editors/vim-share/options.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/vim-share/options.mk b/editors/vim-share/options.mk
index 7091faa2e46..98826390b2f 100644
--- a/editors/vim-share/options.mk
+++ b/editors/vim-share/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.7 2017/12/10 12:39:47 adam Exp $
+# $NetBSD: options.mk,v 1.8 2019/11/02 19:57:01 tnn Exp $
PKG_SUPPORTED_OPTIONS+= ruby python perl lua luajit
PKG_OPTIONS_VAR= PKG_OPTIONS.vim
@@ -15,10 +15,11 @@ CONFIGURE_ENV+= vi_cv_path_ruby=${RUBY}
.include "../../lang/python/pyversion.mk"
. if empty(_PYTHON_VERSION:M3*)
CONFIGURE_ARGS+= --enable-pythoninterp
+CONFIGURE_ARGS+= --with-python-command=${PYTHONBIN}
. else
CONFIGURE_ARGS+= --enable-python3interp
+CONFIGURE_ARGS+= --with-python3-command=${PYTHONBIN}
. endif
-CONFIGURE_ENV+= vi_cv_path_python=${PYTHONBIN}
.endif
.if !empty(PKG_OPTIONS:Mperl)