1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Next generation Vim
8 HOMEPAGE= https://neovim.io/
12 SITES[main]= GITHUB/neovim:neovim:v0.5.0
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 BUILD_DEPENDS= gperf:primary:standard
24 lua-bitop:single:lua52
25 lua-mpack:single:lua52
26 BUILDRUN_DEPENDS= msgpack:single:standard
27 libtermkey:single:standard
28 libvterm:single:standard
30 libluv:single:standard
31 tree-sitter:single:standard
33 USES= cmake gmake libtool pkgconfig lua:5.2 gettext-tools
34 gettext-runtime desktop-utils:primary
36 LICENSE= APACHE20:primary CUSTOM1:primary
37 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
38 LICENSE_NAME= CUSTOM1:"VIM license"
39 LICENSE_FILE= APACHE20:{{WRKDIR}}/LICENSE_APACHE
40 CUSTOM1:{{WRKDIR}}/LICENSE_VIM
43 FPC_EQUIVALENT= editors/neovim
45 INSTALL_REQ_TOOLCHAIN= yes
47 CMAKE_ARGS= -DCMAKE_SKIP_BUILD_RPATH:BOOL=YES
48 -DDEPS_PREFIX:PATH="{{LOCALBASE}}"
49 -DLUA_PRG:FILEPATH="{{LOCALBASE}}/bin/{{LUA_CMD}}"
51 -DENABLE_JEMALLOC:BOOL=NO
54 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nvim
55 ${RMDIR} ${STAGEDIR}${PREFIX}/lib/nvim
58 ${AWK} '/Apache License/,/^====$$/' \
59 ${WRKSRC}/LICENSE > ${WRKDIR}/LICENSE_APACHE
60 ${AWK} '/^VIM LICENSE/,/at your option/' \
61 ${WRKSRC}/LICENSE > ${WRKDIR}/LICENSE_VIM
62 ${AWK} '/^====/{exit}; {print}' \
63 ${WRKSRC}/LICENSE > ${WRKDIR}/TERMS
64 echo "[See APACHE20.standard file]" >> ${WRKDIR}/TERMS
65 echo >> ${WRKDIR}/TERMS
66 ${AWK} '/^The above license/,/^The Vim license follows/' \
67 ${WRKSRC}/LICENSE >> ${WRKDIR}/TERMS
68 echo "[See CUSTOM1.standard file]" >> ${WRKDIR}/TERMS
71 ${REINPLACE_CMD} -e 's|STR(|STR_(|g' \
72 ${WRKSRC}/src/nvim/eval/typval_encode.c.h \
73 ${WRKSRC}/src/nvim/version.c
74 ${REINPLACE_CMD} -e 's|util||' \
75 ${WRKSRC}/src/nvim/CMakeLists.txt
77 [FILE:395:descriptions/desc.primary]
78 Neovim is a refactor, and sometimes redactor, in the tradition of Vim
79 (which itself derives from Stevie). It is not a rewrite but a continuation
80 and extension of Vim. Many clones and derivatives exist, some very
81 clever -- but none are Vim.
83 Neovim strives to be a superset of Vim except for some intentionally
84 removed misfeatures. It is built for users who want the good parts of
89 2294caa9d2011996499fbd70e4006e4ef55db75b99b6719154c09262e23764ef 10337976 neovim-neovim-0.5.0.tar.gz
90 4ce91395d81ccea97d3ad4cb962f8540d166e59d3e2ddce8a22979b49f108956 32966 libmpack-libmpack-1.0.5.tar.gz
91 2ebe9c8972c378040c9b8505f5fb40a0c64d990cd68be6a62989362b18294d0a 15606 libmpack-libmpack-lua-1.0.7.tar.gz
94 [FILE:19926:manifests/plist.primary]
96 share/applications/nvim.desktop
97 share/icons/hicolor/128x128/apps/nvim.png
98 share/man/man1/nvim.1.gz
116 share/nvim/runtime/autoload/
131 javascriptcomplete.vim
135 netrwFileHandlers.vim
157 share/nvim/runtime/autoload/dist/ft.vim
158 share/nvim/runtime/autoload/health/
162 share/nvim/runtime/autoload/provider/
171 share/nvim/runtime/autoload/remote/
174 share/nvim/runtime/autoload/xml/
188 share/nvim/runtime/colors/
207 share/nvim/runtime/compiler/
301 share/nvim/runtime/doc/
348 nvim_terminal_emulator.txt
422 share/nvim/runtime/ftplugin/
668 share/nvim/runtime/indent/
802 share/nvim/runtime/indent/testdir/runtest.vim
803 share/nvim/runtime/keymap/
807 armenian-eastern_utf-8.vim
808 armenian-western_utf-8.vim
809 belarusian-jcuken.vim
811 bulgarian-phonetic.vim
815 croatian_iso-8859-2.vim
831 hebrew_iso-8859-8.vim
835 hebrewp_iso-8859-8.vim
839 korean-dubeolsik_utf-8.vim
841 lithuanian-baltic.vim
844 oldturkic-orkhon_utf-8.vim
845 oldturkic-yenisei_utf-8.vim
846 persian-iranian_utf-8.vim
850 polish-slash_cp1250.vim
851 polish-slash_cp852.vim
852 polish-slash_iso-8859-2.vim
853 polish-slash_utf-8.vim
856 russian-jcukenmac.vim
857 russian-jcukenwin.vim
858 russian-jcukenwintype.vim
859 russian-typograph.vim
862 serbian-latin_utf-8.vim
866 serbian_iso-8859-2.vim
867 serbian_iso-8859-5.vim
869 sinhala-phonetic_utf-8.vim
873 slovak_iso-8859-2.vim
876 thaana-phonetic_utf-8.vim
882 vietnamese-telex_utf-8.vim
883 vietnamese-viqr_utf-8.vim
884 vietnamese-vni_utf-8.vim
885 share/nvim/runtime/lua/man.lua
886 share/nvim/runtime/lua/vim/
896 share/nvim/runtime/lua/vim/lsp/
905 share/nvim/runtime/lua/vim/treesitter/
911 share/nvim/runtime/macros/
920 share/nvim/runtime/pack/dist/opt/cfilter/plugin/cfilter.vim
921 share/nvim/runtime/pack/dist/opt/justify/plugin/justify.vim
922 share/nvim/runtime/pack/dist/opt/matchit/autoload/matchit.vim
923 share/nvim/runtime/pack/dist/opt/matchit/doc/
926 share/nvim/runtime/pack/dist/opt/matchit/plugin/matchit.vim
927 share/nvim/runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim
928 share/nvim/runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim
929 share/nvim/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
930 share/nvim/runtime/pack/dist/opt/vimball/autoload/vimball.vim
931 share/nvim/runtime/pack/dist/opt/vimball/doc/
934 share/nvim/runtime/pack/dist/opt/vimball/plugin/vimballPlugin.vim
935 share/nvim/runtime/plugin/
949 share/nvim/runtime/print/
981 share/nvim/runtime/spell/en.utf-8.spl
982 share/nvim/runtime/syntax/
1094 cyn%%LUA_LIBDIR%%.vim
1557 typescriptcommon.vim
1567 upstreaminstalllog.vim
1621 share/nvim/runtime/syntax/vim/generated.vim
1622 share/nvim/runtime/tools/check_colors.vim
1623 share/nvim/runtime/tutor/
1626 share/nvim/runtime/tutor/en/
1627 vim-01-beginner.tutor
1628 vim-01-beginner.tutor.json
1631 [FILE:1137:manifests/plist.nls]
1632 share/locale/af/LC_MESSAGES/nvim.mo
1633 share/locale/ca/LC_MESSAGES/nvim.mo
1634 share/locale/cs.cp1250/LC_MESSAGES/nvim.mo
1635 share/locale/cs/LC_MESSAGES/nvim.mo
1636 share/locale/da/LC_MESSAGES/nvim.mo
1637 share/locale/de/LC_MESSAGES/nvim.mo
1638 share/locale/en_GB/LC_MESSAGES/nvim.mo
1639 share/locale/eo/LC_MESSAGES/nvim.mo
1640 share/locale/es/LC_MESSAGES/nvim.mo
1641 share/locale/fi/LC_MESSAGES/nvim.mo
1642 share/locale/fr/LC_MESSAGES/nvim.mo
1643 share/locale/ga/LC_MESSAGES/nvim.mo
1644 share/locale/it/LC_MESSAGES/nvim.mo
1645 share/locale/ja.euc-jp/LC_MESSAGES/nvim.mo
1646 share/locale/ja/LC_MESSAGES/nvim.mo
1647 share/locale/ko.UTF-8/LC_MESSAGES/nvim.mo
1648 share/locale/nb/LC_MESSAGES/nvim.mo
1649 share/locale/nl/LC_MESSAGES/nvim.mo
1650 share/locale/no/LC_MESSAGES/nvim.mo
1651 share/locale/pl.UTF-8/LC_MESSAGES/nvim.mo
1652 share/locale/pt_BR/LC_MESSAGES/nvim.mo
1653 share/locale/ru/LC_MESSAGES/nvim.mo
1654 share/locale/sk.cp1250/LC_MESSAGES/nvim.mo
1655 share/locale/sk/LC_MESSAGES/nvim.mo
1656 share/locale/sv/LC_MESSAGES/nvim.mo
1657 share/locale/tr/LC_MESSAGES/nvim.mo
1658 share/locale/uk/LC_MESSAGES/nvim.mo
1659 share/locale/vi/LC_MESSAGES/nvim.mo
1660 share/locale/zh_CN.UTF-8/LC_MESSAGES/nvim.mo
1661 share/locale/zh_TW.UTF-8/LC_MESSAGES/nvim.mo
1664 [FILE:1413:patches/patch-CMakeLists.txt]
1665 --- CMakeLists.txt.orig 2021-07-02 15:54:29 UTC
1667 @@ -310,19 +310,6 @@ if(HAS_WVLA_FLAG)
1668 add_compile_options(-Wvla)
1672 - # -fstack-protector breaks non Unix builds even in Mingw-w64
1673 - check_c_compiler_flag(-fstack-protector-strong HAS_FSTACK_PROTECTOR_STRONG_FLAG)
1674 - check_c_compiler_flag(-fstack-protector HAS_FSTACK_PROTECTOR_FLAG)
1676 - if(HAS_FSTACK_PROTECTOR_STRONG_FLAG)
1677 - add_compile_options(-fstack-protector-strong)
1678 - link_libraries(-fstack-protector-strong)
1679 - elseif(HAS_FSTACK_PROTECTOR_FLAG)
1680 - add_compile_options(-fstack-protector --param ssp-buffer-size=4)
1681 - link_libraries(-fstack-protector --param ssp-buffer-size=4)
1685 check_c_compiler_flag(-fno-common HAVE_FNO_COMMON)
1686 if (HAVE_FNO_COMMON)
1687 @@ -355,7 +342,7 @@ add_definitions(-DINCLUDE_GENERATED_DECL
1689 if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
1690 if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
1691 - set(NO_UNDEFINED "-Wl,--no-undefined -lsocket")
1692 + set(NO_UNDEFINED "-lsocket")
1693 elseif(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
1694 set(NO_UNDEFINED "-Wl,--no-undefined")
1696 @@ -517,7 +504,7 @@ endforeach()
1698 # Find Lua interpreter
1700 -set(LUA_DEPENDENCIES lpeg mpack bit)
1701 +set(LUA_DEPENDENCIES lpeg bit)
1703 foreach(CURRENT_LUA_PRG luajit lua5.1 lua5.2 lua)
1704 unset(_CHECK_LUA_PRG CACHE)
1707 [FILE:562:patches/patch-src_nvim_lua_executor.c]
1708 --- src/nvim/lua/executor.c.orig 2021-07-02 15:54:29 UTC
1709 +++ src/nvim/lua/executor.c
1710 @@ -454,7 +454,11 @@ static int nlua_state_init(lua_State *co
1711 lua_pushcfunction(lstate, &nlua_regex);
1712 lua_setfield(lstate, -2, "regex");
1713 luaL_newmetatable(lstate, "nvim_regex");
1714 +#if LUA_VERSION_NUM >= 502
1715 + luaL_setfuncs(lstate, regex_meta, 0); /* 5.2 */
1717 luaL_register(lstate, NULL, regex_meta);
1719 lua_pushvalue(lstate, -1); // [meta, meta]
1720 lua_setfield(lstate, -2, "__index"); // [meta]
1721 lua_pop(lstate, 1); // don't use metatable now
1724 [FILE:1909:patches/patch-src_nvim_lua_treesitter.c]
1725 --- src/nvim/lua/treesitter.c.orig 2021-07-02 15:54:29 UTC
1726 +++ src/nvim/lua/treesitter.c
1727 @@ -106,7 +106,11 @@ static PMap(cstr_t) *langs;
1728 static void build_meta(lua_State *L, const char *tname, const luaL_Reg *meta)
1730 if (luaL_newmetatable(L, tname)) { // [meta]
1731 +#if LUA_VERSION_NUM >= 502
1732 + luaL_setfuncs(L, meta, 0); /* 5.2 */
1734 luaL_register(L, NULL, meta);
1737 lua_pushvalue(L, -1); // [meta, meta]
1738 lua_setfield(L, -2, "__index"); // [meta]
1739 @@ -449,7 +453,11 @@ static void range_from_lua(lua_State *L,
1741 if (lua_istable(L, -1)) {
1742 // should be a table of 6 elements
1743 +#if LUA_VERSION_NUM >= 502
1744 + if (lua_rawlen(L, -1) != 6) {
1746 if (lua_objlen(L, -1) != 6) {
1751 @@ -526,7 +534,11 @@ static int parser_set_ranges(lua_State *
1752 "argument for parser:set_included_ranges() should be a table.");
1755 +#if LUA_VERSION_NUM >= 502
1756 + size_t tbl_len = lua_rawlen(L, 2);
1758 size_t tbl_len = lua_objlen(L, 2);
1760 TSRange *ranges = xmalloc(sizeof(TSRange) * tbl_len);
1763 @@ -587,7 +599,11 @@ void push_tree(lua_State *L, TSTree *tre
1764 lua_createtable(L, 1, 0); // [udata, reftable]
1765 lua_pushvalue(L, -2); // [udata, reftable, udata]
1766 lua_rawseti(L, -2, 1); // [udata, reftable]
1767 +#if LUA_VERSION_NUM >= 502
1768 + lua_setuservalue(L, -2);
1770 lua_setfenv(L, -2); // [udata]
1774 static TSTree **tree_check(lua_State *L, uint16_t index)
1775 @@ -642,8 +658,13 @@ static void push_node(lua_State *L, TSNo
1777 lua_getfield(L, LUA_REGISTRYINDEX, TS_META_NODE); // [udata, meta]
1778 lua_setmetatable(L, -2); // [udata]
1779 +#if LUA_VERSION_NUM >= 502
1780 + lua_getuservalue(L, uindex);
1781 + lua_setuservalue(L, -2);
1783 lua_getfenv(L, uindex); // [udata, reftable]
1784 lua_setfenv(L, -2); // [udata]
1788 static bool node_check(lua_State *L, int index, TSNode *res)
1791 [FILE:271:patches/patch-src_nvim_macros.h]
1792 --- src/nvim/macros.h.orig 2021-07-02 15:54:29 UTC
1793 +++ src/nvim/macros.h
1795 #define RGB_(r, g, b) ((r << 16) | (g << 8) | b)
1799 #define STR(x) STR_(x)
1802 #ifndef __has_include
1803 # define NVIM_HAS_INCLUDE(x) 0
1806 [FILE:279:patches/patch-src_nvim_os_os__defs.h]
1807 --- src/nvim/os/os_defs.h.orig 2021-07-02 15:54:29 UTC
1808 +++ src/nvim/os/os_defs.h
1810 # include "nvim/os/unix_defs.h"
1814 +#define NAME_MAX 255
1817 #define BASENAMELEN (NAME_MAX - 5)
1819 // Use the system path length if it makes sense.
1822 [FILE:819:patches/patch-src_nvim_os_process.c]
1823 --- src/nvim/os/process.c.orig 2021-07-02 15:54:29 UTC
1824 +++ src/nvim/os/process.c
1826 # include <tlhelp32.h> // for CreateToolhelp32Snapshot
1829 -#if defined(__FreeBSD__) // XXX: OpenBSD ?
1830 +#if defined(__FreeBSD__) || defined(__DragonFly__)
1831 # include <string.h>
1832 # include <sys/types.h>
1833 # include <sys/user.h>
1836 -#if defined(__NetBSD__) || defined(__OpenBSD__)
1837 +#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
1838 # include <sys/param.h>
1841 @@ -146,6 +146,9 @@ int os_proc_children(int ppid, int **pro
1842 # elif defined(__FreeBSD__)
1843 # define KP_PID(o) o.ki_pid
1844 # define KP_PPID(o) o.ki_ppid
1845 +# elif defined(__DragonFly__)
1846 +# define KP_PID(o) o.kp_pid
1847 +# define KP_PPID(o) o.kp_ppid
1849 # define KP_PID(o) o.p_pid
1850 # define KP_PPID(o) o.p_ppid
1853 [FILE:1739:patches/patch-src_nvim_os_pty__process__unix.c]
1854 --- src/nvim/os/pty_process_unix.c.orig 2021-07-02 15:54:29 UTC
1855 +++ src/nvim/os/pty_process_unix.c
1857 # include <libutil.h>
1858 #elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
1860 +#elif defined __sun__
1862 +#include <strings.h>
1863 +#include <unistd.h>
1864 +#include <stropts.h>
1865 +#include <nvim/log.h>
1868 +cfsetspeed(struct termios *t, speed_t speed) {
1869 + cfsetispeed(t, speed);
1870 + cfsetospeed(t, speed);
1875 +forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
1881 + if ((*master = open("/dev/ptmx", O_RDWR|O_NOCTTY)) == -1)
1883 + if (grantpt(*master) != 0)
1885 + if (unlockpt(*master) != 0)
1888 + if ((path = ptsname(*master)) == NULL)
1891 + strlcpy(name, path, _SC_TTY_NAME_MAX);
1892 + if ((slave = open(path, O_RDWR|O_NOCTTY)) == -1)
1895 + switch (pid = fork()) {
1902 + if (ioctl(slave, TIOCSCTTY, NULL) == -1)
1903 + ELOG("ioctl failed");
1904 + if (ioctl(slave, I_PUSH, "ptem") == -1)
1905 + ELOG("ioctl failed");
1906 + if (ioctl(slave, I_PUSH, "ldterm") == -1)
1907 + ELOG("ioctl failed");
1909 + if (tio != NULL && tcsetattr(slave, TCSAFLUSH, tio) == -1)
1910 + ELOG("tcsetattr failed");
1911 + if (ioctl(slave, TIOCSWINSZ, ws) == -1)
1912 + ELOG("ioctl failed");
1926 + if (*master != -1)