[70950] trunk/dports/editors/MacVim
raimue at macports.org
raimue at macports.org
Fri Aug 27 02:04:54 PDT 2010
Revision: 70950
http://trac.macports.org/changeset/70950
Author: raimue at macports.org
Date: 2010-08-27 02:04:52 -0700 (Fri, 27 Aug 2010)
Log Message:
-----------
editors/MacVim: Add +python31 variant
Modified Paths:
--------------
trunk/dports/editors/MacVim/Portfile
Added Paths:
-----------
trunk/dports/editors/MacVim/files/patch-python3.diff
Modified: trunk/dports/editors/MacVim/Portfile
===================================================================
--- trunk/dports/editors/MacVim/Portfile 2010-08-27 08:59:05 UTC (rev 70949)
+++ trunk/dports/editors/MacVim/Portfile 2010-08-27 09:04:52 UTC (rev 70950)
@@ -84,20 +84,34 @@
depends_lib-append path:bin/perl:perl5
}
variant python requires python25 description {Compatibility variant, requires +python25} {}
-variant python25 conflicts python26 description {Enable Python scripting} {
+variant python25 conflicts python26 python27 python31 description {Enable Python scripting} {
configure.args-append --enable-pythoninterp --with-python=${prefix}/bin/python2.5
patchfiles-append patch-python.diff
depends_lib-append port:python25
use_autoconf yes
}
-variant python26 conflicts python25 description {Enable Python scripting} {
+variant python26 conflicts python25 python27 python31 description {Enable Python scripting} {
configure.args-append --enable-pythoninterp --with-python=${prefix}/bin/python2.6
patchfiles-append patch-python.diff
depends_lib-append port:python26
use_autoconf yes
}
+variant python27 conflicts python25 python26 python31 description {Enable Python scripting} {
+ configure.args-append --enable-pythoninterp --with-python=${prefix}/bin/python2.7
+ patchfiles-append patch-python.diff
+ depends_lib-append port:python27
+
+ use_autoconf yes
+}
+variant python31 conflicts python25 python26 python27 description {Enable Python scripting} {
+ configure.args-append --enable-python3interp --with-python=${prefix}/bin/python3.1
+ patchfiles-append patch-python3.diff
+ depends_lib-append port:python31
+
+ use_autoconf yes
+}
variant ruby description {Enable Ruby scripting} {
configure.args-append --enable-rubyinterp
depends_lib-append port:ruby
Added: trunk/dports/editors/MacVim/files/patch-python3.diff
===================================================================
--- trunk/dports/editors/MacVim/files/patch-python3.diff (rev 0)
+++ trunk/dports/editors/MacVim/files/patch-python3.diff 2010-08-27 09:04:52 UTC (rev 70950)
@@ -0,0 +1,15 @@
+--- src/configure.in.old 2008-12-07 02:58:32.000000000 +0100
++++ src/configure.in 2008-12-07 02:58:58.000000000 +0100
+@@ -949,7 +949,11 @@
+ AC_MSG_RESULT($enable_python3interp)
+ if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
+ dnl -- find the python3 executable
+- AC_PATH_PROG(vi_cv_path_python3, python3)
++ AC_MSG_CHECKING(--with-python argument)
++ AC_ARG_WITH(python, [ --with-python=PATH which python to use (default: python)],
++ python_name="$withval"; AC_MSG_RESULT($python_name),
++ python_name="python"; AC_MSG_RESULT(no))
++ AC_SUBST(vi_cv_path_python, $python_name)
+ if test "X$vi_cv_path_python3" != "X"; then
+
+ dnl -- get its version number
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100827/7cccfc63/attachment.html>
More information about the macports-changes
mailing list