Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#46265 closed submission (fixed)

New port: Neovim (nvim)

Reported by: franck@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: _@…, kevin.krouse@…, jstrater@…, wladston (Wladston Ferreira Filho), clayton@…, grimreaper (Eitan Adler), raimue (Rainer Müller)
Port: neovim

Description

Portfile for Neovim (a modern refactor of Vim).

Attachments (2)

Portfile.2 (1.3 KB) - added by franck@… 10 years ago.
Portfile (1.2 KB) - added by franck@… 10 years ago.
Updated to the latest nightly build.

Download all attachments as: .zip

Change History (19)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Keywords: vim nvim removed
Version: 2.3.3

Thanks. This should be modified to use the Github and cmake portgroups since it uses both.

comment:2 Changed 10 years ago by franck@…

Portfile has been modified as recommended.

Last edited 10 years ago by franck@… (previous) (diff)

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Fetching from master is not allowed. Disabling the checksum phase is not allowed. You need to fetch and checksum a specific version of the code that you have verified works correctly.

When using the cmake portgroup, you probably shouldn't use use_configure no; doing so defeats the purpose of using the cmake portgroup. You probably don't need to set build.args to CMAKE_EXTRA_FLAGS=\"-DCMAKE_INSTALL_PREFIX:PATH=${prefix}\" because the cmake portgroup already sets configure.pre_args to -DCMAKE_INSTALL_PREFIX=${prefix}.

Don't set test.cmd to make test. The default value of test.cmd is make and the default value of test.target is test which should work fine.

comment:4 Changed 10 years ago by franck@…

Hi Ryan,

It is now pointing to a specific commit with the relevant checksums. The redundant test entries have been removed.

As it stands, Neovim cannot be built with the cmake portgroup as there are many pre-built (and alpha) dependencies.

I have started to look at the missing libs and will submit them separatly such as libuv, libunibilium, libtermkey and libtickit.

Feel free to modify it to your liking.

Last edited 10 years ago by franck@… (previous) (diff)

Changed 10 years ago by franck@…

Attachment: Portfile.2 added

comment:5 Changed 10 years ago by franck@…

"Portfile.2" was uploaded by mistake -- only "Portfile" is of interest.

Changed 10 years ago by franck@…

Attachment: Portfile added

Updated to the latest nightly build.

comment:6 Changed 10 years ago by franck@…

Eager to get this into Macports -- Homebrew has had a brew for ages. Long and dormant incubation here does not benefit anyone...

I requested SVN access a while back and never heard anything?

comment:7 Changed 10 years ago by _@…

Cc: _@… added

Cc Me!

comment:8 Changed 10 years ago by kevin.krouse@…

Cc: kevin.krouse@… added

Cc Me!

comment:9 Changed 9 years ago by jstrater@…

Cc: jstrater@… added

Cc Me!

comment:10 Changed 9 years ago by wladston (Wladston Ferreira Filho)

Cc: wladston@… added

Cc Me!

comment:11 Changed 9 years ago by clayton@…

Cc: clayton@… added

Cc Me!

comment:12 Changed 9 years ago by grimreaper (Eitan Adler)

Cc: lists@… added

Cc Me!

comment:13 Changed 9 years ago by raimue (Rainer Müller)

Cc: raimue@… added
Resolution: fixed
Status: newclosed

This neovim Portfile tried to download lots of third-party projects and build them for static linking. I am against this kind of bundling, we should always create ports for dependencies.

I added the missing dependencies:

The NeoVim port was committed in r143048, providing the latest stable release 0.1.0. A neovim-devel following the development would be possible as well, if there is interest.

Last edited 9 years ago by raimue (Rainer Müller) (previous) (diff)

comment:14 Changed 9 years ago by aaron@…

Thanks for adding this port! Unfortunately it failed to build for me with this error:

OS X 10.10.5 / XCode 7.1.1 / MacPorts 2.3.4

:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/runtime/doc && /opt/local/bin/cmake -E copy_directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/runtime/doc /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/runtime/doc
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/runtime/doc && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/bin/nvim -u NONE -i NONE -esX --headless -c helptags\ ++t\ . -c quit
:info:build dyld: Symbol not found: _cur_term
:info:build   Referenced from: /opt/local/lib/libtermkey.1.dylib
:info:build   Expected in: flat namespace
:info:build  in /opt/local/lib/libtermkey.1.dylib
:info:build /bin/sh: line 1: 16485 Trace/BPT trap: 5       /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/bin/nvim -u NONE -i NONE -esX --headless -c helptags\ ++t\ . -c quit
:info:build make[2]: *** [runtime/doc/tags] Error 133
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0'
:info:build make[1]: *** [runtime/CMakeFiles/runtime.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0" && /usr/bin/make -j8 -w all VERBOSE=ON
:info:build Exit code: 2
:error:build org.macports.build for port neovim returned: command execution failed

comment:15 Changed 9 years ago by aaron@…

Could be this? https://github.com/neovim/neovim/issues/2033#issuecomment-75364945 "This error happens when libtermkey fails to find unibilium and tries to link against libterminfo"

comment:16 Changed 9 years ago by mf2k (Frank Schima)

Please not add comments to closed tickets. You should open a new issue for this with the main.log attached and the maintainer added to Cc.

comment:17 Changed 9 years ago by aaron@…

Filed new ticket #49882

Note: See TracTickets for help on using tickets.