diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-30 19:43:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-30 19:43:03 +0100 |
commit | 162945d2a91899b637bbb9e163b406350de12906 (patch) | |
tree | 49cc2cc66f724a7c6f033f93aaba4ae3be1f2259 /app-editors/vim/vim-9999.ebuild | |
parent | f660c6de84558324d784218831d8f0782ee41e2e (diff) |
gentoo resync : 30.10.2021
Diffstat (limited to 'app-editors/vim/vim-9999.ebuild')
-rw-r--r-- | app-editors/vim/vim-9999.ebuild | 46 |
1 files changed, 31 insertions, 15 deletions
diff --git a/app-editors/vim/vim-9999.ebuild b/app-editors/vim/vim-9999.ebuild index d15fa2f9dcc8..e95a8438fc8b 100644 --- a/app-editors/vim/vim-9999.ebuild +++ b/app-editors/vim/vim-9999.ebuild @@ -2,6 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + +# Please bump with app-editors/vim-core and app-editors/gvim + VIM_VERSION="8.2" LUA_COMPAT=( lua5-1 luajit ) PYTHON_COMPAT=( python3_{7..10} ) @@ -22,8 +25,8 @@ fi DESCRIPTION="Vim, an improved vi-style text editor" HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" -SLOT="0" LICENSE="vim" +SLOT="0" IUSE="X acl crypt cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager" REQUIRED_USE=" lua? ( ${LUA_REQUIRED_USE} ) @@ -53,17 +56,16 @@ RDEPEND=" tcl? ( dev-lang/tcl:0= ) X? ( x11-libs/libXt ) " - -DEPEND=" - ${RDEPEND} +DEPEND="${RDEPEND}" +# configure runs the Lua interpreter +BDEPEND=" sys-devel/autoconf + lua? ( ${LUA_DEPS} ) nls? ( sys-devel/gettext ) " -# configure runs the Lua interpreter -BDEPEND="lua? ( ${LUA_DEPS} )" pkg_setup() { - # people with broken alphabets run into trouble. bug 82186. + # people with broken alphabets run into trouble. bug #82186. unset LANG LC_ALL export LC_COLLATE="C" @@ -94,7 +96,7 @@ src_prepare() { # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. # Hopefully this pattern won't break for a while at least. - # This fixes bug 29398 (27 Sep 2003 agriffis) + # This fixes bug #29398 (27 Sep 2003 agriffis) sed -i -e \ 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ "${S}"/runtime/doc/syntax.txt \ @@ -105,7 +107,7 @@ src_prepare() { # Don't be fooled by /usr/include/libc.h. When found, vim thinks # this is NeXT, but it's actually just a file in dev-libs/9libs - # This fixes bug 43885 (20 Mar 2004 agriffis) + # This fixes bug #43885 (20 Mar 2004 agriffis) sed -i -e \ 's/ libc\.h / /' \ "${S}"/src/configure.ac || die 'sed failed' @@ -150,8 +152,8 @@ src_prepare() { src_configure() { local myconf=() - # Fix bug 37354: Disallow -funroll-all-loops on amd64 - # Bug 57859 suggests that we want to do this for all archs + # Fix bug #37354: Disallow -funroll-all-loops on amd64 + # Bug #57859 suggests that we want to do this for all archs filter-flags -funroll-all-loops # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for @@ -168,11 +170,11 @@ src_configure() { rm src/auto/configure || die "rm failed" emake -j1 -C src autoconf - # This should fix a sandbox violation (see bug 24447). The hvc - # things are for ppc64, see bug 86433. + # This should fix a sandbox violation (see bug #24447). The hvc + # things are for ppc64, see bug #86433. for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do if [[ -e "${file}" ]]; then - addwrite $file + addwrite ${file} fi done @@ -270,11 +272,25 @@ src_test() { # Don't let vim talk to X unset DISPLAY + # See https://github.com/vim/vim/blob/f08b0eb8691ff09f98bc4beef986ece1c521655f/src/testdir/runtest.vim#L5 + # for more information on test variables we can use. + # Note that certain variables need vim-compatible regex (not PCRE), see e.g. + # http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml. + # + # Skipped tests: + # - Test_expand_star_star + # Hangs because of a recursive symlink in /usr/include/nodejs (bug #616680) + # - Test_exrc + # Looks in wrong location? (bug #742710) + # - Test_job_tty_in_out + # Fragile and depends on TERM(?) + export TEST_SKIP_PAT='\(Test_expand_star_star\|Test_exrc\|Test_job_tty_in_out\)' + emake -j1 -C src/testdir nongui } # Call eselect vi update with --if-unset -# to respect user's choice (bug 187449) +# to respect user's choice (bug #187449) eselect_vi_update() { einfo "Calling eselect vi update..." eselect vi update --if-unset |