Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macvim.org #2756

Merged
merged 16 commits into from
Sep 7, 2023
2 changes: 2 additions & 0 deletions projects/macvim.org/commands.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:python3 import vim; vim.current.buffer[0] = 'hello python3'
:wq
83 changes: 83 additions & 0 deletions projects/macvim.org/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
distributable:
url: https://github.com/macvim-dev/macvim/archive/release-{{version.major}}.tar.gz
strip-components: 1

versions:
github: macvim-dev/macvim/tags
match: /release-\d+/
strip:
- /^release-/

platforms:
- darwin

dependencies:
cscope.sourceforge.io: '*'
invisible-island.net/ncurses: '*'
lua.org: '*'
python.org: ^3.11
ruby-lang.org: '*'
libsodium.org: '*'
gnu.org/gettext: '*'

runtime:
env:
PYTHONHOME: "{{deps.python.org.prefix}}"

build:
dependencies:
tea.xyz/gx/cc: c99
gnu.org/make: '*'
script:
- ./configure $ARGS
- make --jobs {{ hw.concurrency }}
- run: cp -a $SRCROOT/src/MacVim/build/Release/MacVim.app .
working-directory: ${{prefix}}/libexec
- run: |
for file in {g,m,}{view,vim,vimdiff,vimtutor}; do
ln -s ../libexec/MacVim.app/Contents/bin/$file $file
done
working-directory: ${{prefix}}/bin
env:
CC: "{{deps.tea.xyz/gx/cc.prefix}}/bin/clang"
ARGS:
- --with-features=huge
- --enable-multibyte
- --enable-perlinterp
- --enable-rubyinterp
- --enable-tclinterp
- --enable-terminal
- --without-x
- --with-compiledby=tea.xyz
- --without-local-dir
- --enable-cscope
- --enable-luainterp
- --with-lua-prefix={{deps.lua.org.prefix}}
- --enable-luainterp
- --enable-python3interp
- --disable-sparkle
- --disable-gpm
- --disable-canberra
- --enable-fail-if-missing
- --with-macarchs=$(uname -m)
- --with-tlib=ncurses

provides:
- bin/gview
- bin/gvim
- bin/gvimdiff
- bin/gvimtutor
- bin/mview
- bin/mvim
- bin/mvimdiff
- bin/mvimtutor
- bin/view
- bin/vim
- bin/vimdiff
- bin/vimtutor

test:
script:
- mvim --version | grep VIM
- mvim -v -T dump -s commands.vim test.txt <<< $'\n'
- cat test.txt | grep "hello python3"
Loading