summaryrefslogtreecommitdiffstats
path: root/development/neovim
diff options
context:
space:
mode:
author Alexander Verbovetsky <alik@ejik.org>2023-05-12 23:56:56 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-13 19:27:13 +0700
commit8290e58cf6e3c8bf664c6afc9351cd2e5f8138ed (patch)
treeb1bbedd6d7abde403861d77bd4ffa71595882338 /development/neovim
parent555dbc00b3930d76ab2d69fc237197710b89b5fb (diff)
downloadslackbuilds-8290e58cf6e3c8bf664c6afc9351cd2e5f8138ed.tar.gz
slackbuilds-8290e58cf6e3c8bf664c6afc9351cd2e5f8138ed.tar.xz
development/neovim: Updated for version 0.9.0.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/neovim')
-rw-r--r--development/neovim/README16
-rw-r--r--development/neovim/doinst.sh5
-rw-r--r--development/neovim/neovim.SlackBuild44
-rw-r--r--development/neovim/neovim.info18
-rw-r--r--development/neovim/slack-desc2
5 files changed, 52 insertions, 33 deletions
diff --git a/development/neovim/README b/development/neovim/README
index a03c5e5a97..f5294d4ff6 100644
--- a/development/neovim/README
+++ b/development/neovim/README
@@ -2,12 +2,12 @@ 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
+
+lua, lua-mpack, lua-lpeg, LuaBitOp are needed only at build time.
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 b076a97cc3..6dc2ff0b16 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 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.8.1}
+VERSION=${VERSION:-0.9.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
@@ -73,6 +71,14 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+
+install -Dm644 $CWD/LuaJIT-505e2c03de35e2718eef0d2d3660712e06dadf1f.tar.gz \
+ .deps/build/downloads/luajit/505e2c03de35e2718eef0d2d3660712e06dadf1f.tar.gz
+install -Dm644 $CWD/luv-093a977b82077591baefe1e880d37dfa2730bd54.tar.gz \
+ .deps/build/downloads/luv/093a977b82077591baefe1e880d37dfa2730bd54.tar.gz
+install -Dm644 $CWD/lua-compat-5.3-0.9.tar.gz \
+ .deps/build/downloads/lua-compat-5.3/v0.9.tar.gz
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -80,17 +86,21 @@ 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 \
+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_BUNDLED=OFF \
+ -DUSE_BUNDLED_LUV=ON \
+ -DUSE_BUNDLED_LUAJIT=ON" \
+ CMAKE_BUILD_TYPE=Release
+make install DESTDIR=$PKG
+
+rmdir $PKG/usr/lib${LIBDIRSUFFIX}/nvim $PKG/usr/lib${LIBDIRSUFFIX}
+
+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 +109,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 2c8ca23c92..d3280c818d 100644
--- a/development/neovim/neovim.info
+++ b/development/neovim/neovim.info
@@ -1,10 +1,16 @@
PRGNAM="neovim"
-VERSION="0.8.1"
+VERSION="0.9.0"
HOMEPAGE="https://neovim.io"
-DOWNLOAD="https://github.com/neovim/neovim/archive/v0.8.1/neovim-0.8.1.tar.gz"
-MD5SUM="61c323fdeb948c31d780dd33f2b764f6"
+DOWNLOAD="https://github.com/neovim/neovim/archive/v0.9.0/neovim-0.9.0.tar.gz \
+ https://github.com/LuaJIT/LuaJIT/archive/505e2c0/LuaJIT-505e2c03de35e2718eef0d2d3660712e06dadf1f.tar.gz \
+ https://github.com/luvit/luv/archive/093a977/luv-093a977b82077591baefe1e880d37dfa2730bd54.tar.gz \
+ https://github.com/keplerproject/lua-compat-5.3/archive/v0.9/lua-compat-5.3-0.9.tar.gz"
+MD5SUM="86b762639f29ee92d37f8ec0f78b7074 \
+ bbf308354cf8f67d821c32adbfe52a50 \
+ 9f6cd99a215ef21ef93c273e4b664066 \
+ 7c0530123479804e40971b069ea6b0da"
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 lua-mpack lua-lpeg LuaBitOp msgpack-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: