diff options
Diffstat (limited to 'development/neovim')
-rw-r--r-- | development/neovim/README | 14 | ||||
-rw-r--r-- | development/neovim/doinst.sh | 5 | ||||
-rw-r--r-- | development/neovim/neovim.SlackBuild | 64 | ||||
-rw-r--r-- | development/neovim/neovim.info | 34 | ||||
-rw-r--r-- | development/neovim/slack-desc | 2 |
5 files changed, 85 insertions, 34 deletions
diff --git a/development/neovim/README b/development/neovim/README index a03c5e5a97..f20d90a7a8 100644 --- a/development/neovim/README +++ b/development/neovim/README @@ -2,12 +2,10 @@ Neovim is a project that seeks to aggressively refactor Vim in order to: * Simplify maintenance and encourage contributions * Split the work between multiple developers -* Enable the implementation of new/modern user interfaces without any - modifications to the core source -* Improve extensibility with a new plugin architecture +* Enable advanced UIs without modifications to the core +* Maximize extensibility -note on building: -be sure to have lua (5.1) installed so that the lua-libraries neovim -depends on are packaged for 5.1 (e.g. lpeg). the lua used in neovim is -shipped with it, so lua isn't a direct dependency for neovim and not -listed in REQUIRES. +Optional run-time dependencies: +* python3-neovim and python2-neovim: for python 3/2 plugin support; +* xclip or xsel: for X11 clipboard support; +* wl-clipboard: for clipboard support on wayland diff --git a/development/neovim/doinst.sh b/development/neovim/doinst.sh index 5fb28930db..fd1bca3b49 100644 --- a/development/neovim/doinst.sh +++ b/development/neovim/doinst.sh @@ -1,3 +1,8 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/development/neovim/neovim.SlackBuild b/development/neovim/neovim.SlackBuild index a5c3794542..2fc53993eb 100644 --- a/development/neovim/neovim.SlackBuild +++ b/development/neovim/neovim.SlackBuild @@ -2,8 +2,9 @@ # SlackBuild script for neovim -# Copyright 2021-2022 Ruben Schuller <sb@rbn.im> # Copyright 2014-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2021-2022 Ruben Schuller <sb@rbn.im> +# Copyright 2023-2024 Alexander Verbovetsky, Moscow, Russia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=neovim -VERSION=${VERSION:-0.7.0} +VERSION=${VERSION:-0.10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +40,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -72,7 +70,32 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION + +mkdir -p $PRGNAM-$VERSION/.deps/build/src + +cd $PRGNAM-$VERSION/.deps/build/src +for d in LuaJIT-*.tar.gz luv-*.tar.gz lua-compat-5.3-*.tar.gz \ + tree-sitter-bash-*.tar.gz tree-sitter-c-*.tar.gz \ + tree-sitter-lua-*.tar.gz tree-sitter-markdown-*.tar.gz \ + tree-sitter-python-*.tar.gz tree-sitter-query-*.tar.gz \ + tree-sitter-vimdoc-*.tar.gz tree-sitter-vim-*.tar.gz +do + tar xvf $CWD/$d +done +mv LuaJIT-* luajit +mv luv-* luv +mv lua-compat-5.3-* lua_compat53 +mv tree-sitter-bash-* treesitter_bash +mv tree-sitter-c-* treesitter_c +mv tree-sitter-lua-* treesitter_lua +mv tree-sitter-markdown-* treesitter_markdown +mv tree-sitter-python-* treesitter_python +mv tree-sitter-query-* treesitter_query +mv tree-sitter-vimdoc-* treesitter_vimdoc +mv tree-sitter-vim-* treesitter_vim + +cd $TMP/$PRGNAM-$VERSION + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -80,17 +103,22 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIBUV_LIBRARY=/usr/lib${LIBDIRSUFFIX}/libuv.so \ +export NVIM_LOG_FILE=$TMP/$PRGNAM-$VERSION/log +make \ + CMAKE_INSTALL_PREFIX=/usr \ + CMAKE_EXTRA_FLAGS=" \ -DCMAKE_INSTALL_MANDIR=/usr/man \ - -DCMAKE_BUILD_TYPE=Release \ - .. - make install DESTDIR=$PKG -cd .. + -DCMAKE_C_FLAGS:STRING=\"$SLKCFLAGS\"" \ + BUNDLED_CMAKE_FLAG=" \ + -DUSE_EXISTING_SRC_DIR=ON \ + -DUSE_BUNDLED=OFF \ + -DUSE_BUNDLED_LUV=ON \ + -DUSE_BUNDLED_LUAJIT=ON \ + -DUSE_BUNDLED_TS_PARSERS=ON" \ + CMAKE_BUILD_TYPE=Release +make install DESTDIR=$PKG + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -99,9 +127,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - CONTRIBUTING.md README.md \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CONTRIBUTING.md README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/development/neovim/neovim.info b/development/neovim/neovim.info index 597fb33b32..fb656b64e7 100644 --- a/development/neovim/neovim.info +++ b/development/neovim/neovim.info @@ -1,10 +1,32 @@ PRGNAM="neovim" -VERSION="0.7.0" +VERSION="0.10.0" HOMEPAGE="https://neovim.io" -DOWNLOAD="https://github.com/neovim/neovim/archive/v0.7.0/neovim-0.7.0.tar.gz" -MD5SUM="96d634871c9a0791fb5643eb764869e5" +DOWNLOAD="https://github.com/neovim/neovim/archive/v0.10.0/neovim-0.10.0.tar.gz \ + https://github.com/LuaJIT/LuaJIT/archive/75e9277/LuaJIT-75e92777988017fe47c5eb290998021bbf972d1f.tar.gz \ + https://github.com/luvit/luv/archive/1.48.0-2/luv-1.48.0-2.tar.gz \ + https://github.com/lunarmodules/lua-compat-5.3/archive/v0.13/lua-compat-5.3-0.13.tar.gz \ + https://github.com/tree-sitter/tree-sitter-bash/archive/v0.21.0/tree-sitter-bash-0.21.0.tar.gz \ + https://github.com/tree-sitter/tree-sitter-c/archive/v0.21.0/tree-sitter-c-0.21.0.tar.gz \ + https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/v0.1.0/tree-sitter-lua-0.1.0.tar.gz \ + https://github.com/MDeiml/tree-sitter-markdown/archive/v0.2.3/tree-sitter-markdown-0.2.3.tar.gz \ + https://github.com/tree-sitter/tree-sitter-python/archive/v0.21.0/tree-sitter-python-0.21.0.tar.gz \ + https://github.com/tree-sitter-grammars/tree-sitter-query/archive/v0.3.0/tree-sitter-query-0.3.0.tar.gz \ + https://github.com/neovim/tree-sitter-vimdoc/archive/v2.5.1/tree-sitter-vimdoc-2.5.1.tar.gz \ + https://github.com/neovim/tree-sitter-vim/archive/v0.4.0/tree-sitter-vim-0.4.0.tar.gz" +MD5SUM="b5ad54391b6a1a30930c1ab392d506ec \ + aee865a769321f40b28067c3568e92ef \ + 8efb4574249415a888a4197468529a9b \ + 4b53edbd6222230a50f58ca8f9a98d18 \ + 3afd19bcf08cfbc16a8d0ab8d6b59967 \ + 88647250b19636fe4d1a99456674d69a \ + 14eff66b003bb77623f111fe3528f224 \ + b6ea171a2c434992d9ddb965361513c2 \ + 229538336d4d052c301ea63cd33c8486 \ + f50c1885b101d392b106dac75bb0536e \ + 74b91692ada89a1e5904bc4d5f60943f \ + 8f3d1c3319673e20b83da6c23962dc45" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="msgpack-c lua-mpack lua-lpeg lua-luv libtermkey libvterm tree-sitter" -MAINTAINER="Ruben Schuller" -EMAIL="sb@rbn.im" +REQUIRES="lua-lpeg msgpack-c-c libtermkey libvterm tree-sitter" +MAINTAINER="Alexander Verbovetsky" +EMAIL="alik@ejik.org" diff --git a/development/neovim/slack-desc b/development/neovim/slack-desc index 59a0ea0dcf..c70f007271 100644 --- a/development/neovim/slack-desc +++ b/development/neovim/slack-desc @@ -15,5 +15,5 @@ neovim: clever-but none are Vim. Neovim is built for users who want the good neovim: parts of Vim, and more. neovim: neovim: See a list of differences at :help vim-differences. -neovim: +neovim: Homepage: https://neovim.io neovim: |