Recompile MacPim MacPort with Python, Ruby & Perl

Linux guy makes the switch to Mac (10.8). Because I'm lazy ...

I used MacPorts to install MacVim. It seemed that it was installed without errors. I just need python, ruby ​​and perl support in mvim.

$ /opt/local/bin/mvim --version | egrep 'patches|python|ruby|perl' Included patches: 1-244, 246-646 +multi_lang -mzscheme +netbeans_intg +odbeditor +path_extra -perl +persistent_undo +postscript +printer -profile -python -python3 +quickfix +reltime -rightleft -ruby +scrollbind +signs +smartindent -sniff +startuptime 

I searched the src directory as described on github but did not find anything:

 $ find /opt/local/ -name src -type d | grep -i vim 

I found and extracted this file in / tmp / macvim

 /opt/local/var/macports/software/MacVim/MacVim-7.3.snapshot65_1.darwin_12.x86_64.tbz2 

Then grep'd + PORTFILE to prefix the string:

 $ grep prefix +PORTFILE PYTHON=${prefix}/bin/python2.7 copy ${worksrcpath}/src/MacVim/mvim ${destroot}${prefix}/bin ln -s mvim ${destroot}${prefix}/bin/mvimdiff ln -s mvim ${destroot}${prefix}/bin/mview ln -s mvim ${destroot}${prefix}/bin/mvimex configure.args-append --enable-pythoninterp --with-python=${prefix}/bin/python2.5 configure.args-append --enable-pythoninterp --with-python=${prefix}/bin/python2.6 configure.args-append --enable-pythoninterp --with-python=${prefix}/bin/python2.7 configure.args-append --enable-python3interp --with-python3=${prefix}/bin/python3.1 configure.args-append --enable-python3interp --with-python3=${prefix}/bin/python3.2 

At the moment, it seems that all the interpreters that I care about should have been turned on. So, now I'm confused.

Now the question is:

  • Is there a way to fix my MacPorts version? or
  • Give it up and run with github package?
  • It seems that the version of Homebrew is quite flexible.

Anyway, I'm a little lost in the Mac world. Any recommendations would be appreciated.

+4
source share
2 answers

If you run port info macvim , you will see that it has several options:

 MacVim @7.3.snapshot65, Revision 1 (editors) Variants: big, cscope, huge, perl, python, python25, python26, python27, python31, python32, ruby, tcl, universal, xim Description: MacVim is a port of the text editor Vim to Mac OS X that is meant to look better and integrate more seamlessly with the Mac than vim-app. Homepage: http://code.google.com/p/macvim ... 

You can install MacVim with Python, Ruby, and Perl support by selecting these options using:

 sudo port install macvim +python +perl +ruby 
+15
source

My decision:

Use the Macvim Binary installer that has no headaches. Then go and uninstall MacPorts from your system . Now install Homebrew and enjoy a properly working package manager; -)

0
source

Source: https://habr.com/ru/post/1442454/


All Articles