diff options
author | adam <adam@pkgsrc.org> | 2017-12-10 12:39:47 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2017-12-10 12:39:47 +0000 |
commit | 615749d6348a516aa2d7c39f3250256877072d78 (patch) | |
tree | 5e7c1c271a46cf976067366980294f805a843862 /editors | |
parent | b658c6f02ff3c4b8c7a0de9032b4c3c89e1b3bd4 (diff) | |
download | pkgsrc-615749d6348a516aa2d7c39f3250256877072d78.tar.gz |
vim-share: fix building with Python 3.x (PR 52742)
Diffstat (limited to 'editors')
-rw-r--r-- | editors/vim-share/options.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editors/vim-share/options.mk b/editors/vim-share/options.mk index d4956b41ec5..7091faa2e46 100644 --- a/editors/vim-share/options.mk +++ b/editors/vim-share/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.6 2015/07/13 09:33:13 morr Exp $ +# $NetBSD: options.mk,v 1.7 2017/12/10 12:39:47 adam Exp $ PKG_SUPPORTED_OPTIONS+= ruby python perl lua luajit PKG_OPTIONS_VAR= PKG_OPTIONS.vim @@ -13,14 +13,18 @@ CONFIGURE_ENV+= vi_cv_path_ruby=${RUBY} .if !empty(PKG_OPTIONS:Mpython) .include "../../lang/python/pyversion.mk" +. if empty(_PYTHON_VERSION:M3*) CONFIGURE_ARGS+= --enable-pythoninterp +. else +CONFIGURE_ARGS+= --enable-python3interp +. endif CONFIGURE_ENV+= vi_cv_path_python=${PYTHONBIN} .endif .if !empty(PKG_OPTIONS:Mperl) .include "../../lang/perl5/buildlink3.mk" CONFIGURE_ARGS+= --enable-perlinterp -CONFIGURE_ENV+= vi_cv_path_perl=${PERL5} +CONFIGURE_ENV+= vi_cv_path_perl=${PERL5:Q} .endif .if !empty(PKG_OPTIONS:Mlua) |