logo

overlay

My (experimental) gentoo overlay
commit: 791a18ea43e708996d07def98d77edce7a629da9
parent: 29db6511704bb2ad7e40839509668e3bfb908897
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  6 Mar 2019 01:47:33 +0100

app-editors/vim: “New” Package (1.24)

Thanks to https://passy.svbtle.com/building-vim-from-1993-today for the hints

Diffstat:

Aapp-editors/vim/Manifest1+
Aapp-editors/vim/vim-1.24.ebuild37+++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/app-editors/vim/Manifest b/app-editors/vim/Manifest @@ -0,0 +1 @@ +DIST vim-1.24.tar.gz 191310 BLAKE2B d0682d8cbfbaa5a9de59f0ff4fee7459c38162b3d16112d8803bb169abf5900a22890fd26f9d96fa815e3158249df40fff034a76cf5458bd808c1c7ecc24e87d SHA512 5dac8fba378d520f2e6734bb86019a28064113b37b28a310ecb00cd240620c9ce639050edd9a5b384237606740559dfec4fabc0324a5db2636e43e574257d6bb diff --git a/app-editors/vim/vim-1.24.ebuild b/app-editors/vim/vim-1.24.ebuild @@ -0,0 +1,37 @@ +# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +# vim-1.14 can also be found but the first version of vim to work on Unix +# is version 1.22, which I didn’t found. + +EAPI=7 + +DESCRIPTION="Vi IMitation" +HOMEPAGE="https://www.vim.org/ https://ftp.nluug.nl/pub/vim/old/" +SRC_URI="https://ftp.nluug.nl/pub/vim/old/${P}.tar.gz" +SLOT="${PV}" + +S="${WORKDIR}/${P}/src" + +src_prepare() { + default + + ln makefile.unix makefile || die + sed -r -i \ + -e 's/^(DEFS = .*) -DTERMCAP(.*)/\1\2/' \ + -e 's/^(DEFS = .*) -DSOME_BUILTIN_TCAPS(.*)/\1\2/' \ + -e 's/LIBS = -ltermlib/LIBS =/' \ + -e '165s;mkcmdtab;./mkcmdtab;' \ + makefile || die + + sed -i '28s/#ifdef SYSV/#ifndef SYSV/' unix.c +} + +src_install() { + cd .. + newbin vim vim-${PV} +} + +pkg_post_install() { + einfo 'You will need to do have VIMINIT="" in your enviroment to prevent a segfault of vim' +}