Skip to content

Instantly share code, notes, and snippets.

@vishesh
Created May 28, 2012 21:12
Show Gist options
  • Save vishesh/2821230 to your computer and use it in GitHub Desktop.
Save vishesh/2821230 to your computer and use it in GitHub Desktop.
pkgsrc/editors/vim-share: enable python extension
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/editors/vim-share/Makefile.common,v
retrieving revision 1.143
diff -u -p -r1.143 Makefile.common
--- Makefile.common 31 Oct 2010 23:50:51 -0000 1.143
+++ Makefile.common 13 May 2012 10:52:19 -0000
@@ -76,7 +76,7 @@ ALTERNATIVES_SRC= ${.CURDIR}/../../edito
ALTERNATIVES_SRC=
.endif
-PKG_SUPPORTED_OPTIONS+= ruby
+PKG_SUPPORTED_OPTIONS+= ruby python
PKG_OPTIONS_VAR= PKG_OPTIONS.vim
.include "../../mk/bsd.options.mk"
@@ -86,5 +86,11 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.vim
CONFIGURE_ARGS+= --enable-rubyinterp
.endif
+.if !empty(PKG_OPTIONS:Mpython)
+.include "../../lang/python/pyversion.mk"
+CONFIGURE_ARGS+= --enable-pythoninterp
+CONFIGURE_ENV+= vi_cv_path_python=${PYTHONBIN}
+.endif
+
post-patch:
find ${WRKDIR} -name '*.orig_dist' -exec rm -f {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment