]> Cypherpunks repositories - bass.git/commitdiff
Vim skel
authorSergey Matveev <stargrave@stargrave.org>
Fri, 14 Jun 2024 12:41:43 +0000 (15:41 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 14 Jun 2024 12:41:43 +0000 (15:41 +0300)
build/distfiles/.gitignore
build/distfiles/vim-v9.1.0482.tar.zst.do [new file with mode: 0644]
build/skel/deskutils/vim-v9.1.0482.do [new file with mode: 0644]

index 5b1a04c4c052969dd9303c916f819b058f741e0b7d609747f548a1de107b97b3..ce40cc26a239fa7e5c27278593c8418bdab84071cccd048929fe1f273759ec8a 100644 (file)
 /tmux-3.3.tar.gz
 /ucspi-tcp-0.88-ipv6.diff20.bz2
 /ucspi-tcp-0.88.tar.gz
+/vim-v9.1.0482.tar.zst
+/vim.git/
 /vorbis-tools-1.4.2.tar.gz
 /wavpack-5.7.0.tar.xz
 /xapian-core-1.4.25.tar.xz
diff --git a/build/distfiles/vim-v9.1.0482.tar.zst.do b/build/distfiles/vim-v9.1.0482.tar.zst.do
new file mode 100644 (file)
index 0000000..26d7178
--- /dev/null
@@ -0,0 +1,7 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+[ -d vim.git ] || git clone --depth 1 --bare https://github.com/vim/vim.git >&2
+cd vim.git
+commit=ef8eab86e29091eaff0d3fb0bc3f7c90f468f6aa
+git fetch origin $commit >&2
+git archive --prefix=${1%.tar.zst}/ $commit | $COMPRESSOR
diff --git a/build/skel/deskutils/vim-v9.1.0482.do b/build/skel/deskutils/vim-v9.1.0482.do
new file mode 100644 (file)
index 0000000..a14f582
--- /dev/null
@@ -0,0 +1,29 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../../../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+. "$BASS_ROOT"/build/skel/common.rc
+
+bdeps="rc-paths stow archivers/zstd devel/pkgconf-2.1.1"
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.zst
+hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
+. "$BASS_ROOT"/build/lib/create-tmp-for-build.rc
+"$BASS_ROOT"/build/bin/pkg-inst $bdeps
+. ./rc
+$TAR xf "$DISTFILES"/$NAME.tar.zst
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd $NAME
+./configure --prefix="$SKELBINS"/$ARCH/$NAME-$hsh \
+    --with-features=huge \
+    --disable-sysmouse \
+    --disable-gpm \
+    --enable-multibyte \
+    --disable-xsmp \
+    --disable-xim \
+    --disable-netbeans \
+    --with-x \
+    --enable-gui=no >&2
+make -j$MAKE_JOBS >&2
+make install >&2
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh