From 3390af661523f15b7c6c80fb06f0ef0eb90a913e Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Thu, 7 Sep 2023 19:30:10 +0300 Subject: [PATCH] macvim.org (#2756) * new file: projects/macvim.org/package.yml * macvim.org * invisible-island.net/ncurses * DYLD_LIBRARY_PATH * DYLD_LIBRARY_PATH * without ncurses * DYLD_LIBRARY_PATH * wip * wip * wip * wip * ncurses * move .app to libexec (so fix-machos fixes it) * libsodium > runtime * well, there can't be any more --------- Co-authored-by: Jacob Heider --- projects/macvim.org/commands.vim | 2 + projects/macvim.org/package.yml | 83 ++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 projects/macvim.org/commands.vim create mode 100644 projects/macvim.org/package.yml diff --git a/projects/macvim.org/commands.vim b/projects/macvim.org/commands.vim new file mode 100644 index 00000000..c5a48ece --- /dev/null +++ b/projects/macvim.org/commands.vim @@ -0,0 +1,2 @@ +:python3 import vim; vim.current.buffer[0] = 'hello python3' +:wq \ No newline at end of file diff --git a/projects/macvim.org/package.yml b/projects/macvim.org/package.yml new file mode 100644 index 00000000..854b74e0 --- /dev/null +++ b/projects/macvim.org/package.yml @@ -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"