* update vim to 9.0.1676-2
This commit is contained in:
parent
49432b1628
commit
db91634567
@ -14,7 +14,7 @@ pkgbase=vim
|
||||
pkgname=('vim' 'gvim' 'vim-runtime')
|
||||
pkgver=9.0.1676
|
||||
_versiondir=90
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor'
|
||||
url='https://www.vim.org'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
@ -22,20 +22,24 @@ license=('custom:vim')
|
||||
makedepends=('glibc' 'libgcrypt' 'gpm' 'python' 'ruby' 'libxt' 'gtk3' 'lua'
|
||||
'gawk' 'tcl' 'zlib' 'libcanberra')
|
||||
source=(https://github.com/vim/vim/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz
|
||||
fix-perl-build.patch
|
||||
vimrc
|
||||
archlinux.vim
|
||||
vimdoc.hook)
|
||||
sha256sums=('213efdf292b758e34349a83143e69907da2a6abaff61690f3df2eeefbb5cf2b4'
|
||||
'f79c2afd26bbe0b21375293203d8f0e8dad2424146014ceafc4e8eca6ecf7d39'
|
||||
'b16e85e457397ab2043a7ee0a3c84307c6b4eac157fd0b721694761f25b3ed5b'
|
||||
'cc3d931129854c298eb22e993ec14c2ad86cc1e70a08a64496f5e06559289972'
|
||||
'8e9656934d9d7793063230d15a689e10455e6db9b9fe73afa0f294792795d8ae')
|
||||
sha512sums=('89e2e142d2dcbd162efd3f552ac745c2f2aaa905c08f8ffb88122feb53c9150a8906cfbfbba6203c186d7651276c8582ffc39c0b54f5bbf81e9a32546e7b1715'
|
||||
'184dd232db5b4a346e9751e58ad0a9b2f60d50d1a2aa2050415d288445606d80c239745f0d8987ff822d2acf6826104a81f8e59c8f1785095d1f319c0fe4abf0'
|
||||
'4b5bed0813f22af9e158ea9aa56a4a9862dd786ba2d201f20159ccf652da6190164aaed0b6b7217d578f7b25c33a8adcc307bfcf3caa8d173a7ff29e2a00fee7'
|
||||
'fe091d289d876f45319c898f6021ef86d6a238b540c225a279c46efc5c36fa7d868cd0cee73a111811c4be90df160f85340bb251be3a437727dbe5c699950363'
|
||||
'a02ad0d66f300160911aeb81d8886c6c558436ac4ee3fcd161dd65c6b1e5d1f41b9005a7f5bb5ba68d57027fc1c8e43daabf055bd6207fb5a216a67f758df8d1')
|
||||
|
||||
prepare() {
|
||||
(cd vim-${pkgver}/src
|
||||
patch -Np2 -i ../../fix-perl-build.patch
|
||||
# define the place for the global (g)vimrc file (set to /etc/vimrc)
|
||||
sed -E 's|^.*(#define SYS_.*VIMRC_FILE.*").*$|\1|g' -i feature.h
|
||||
sed -E 's|^.*(#define VIMRC_FILE.*").*$|\1|g' -i feature.h
|
||||
|
66
vim/fix-perl-build.patch
Normal file
66
vim/fix-perl-build.patch
Normal file
@ -0,0 +1,66 @@
|
||||
diff --git a/src/if_perl.xs b/src/if_perl.xs
|
||||
index c69ed9e..6c1003c 100644
|
||||
--- a/src/if_perl.xs
|
||||
+++ b/src/if_perl.xs
|
||||
@@ -40,7 +40,7 @@
|
||||
/* Work around for perl-5.18.
|
||||
* Don't include "perl\lib\CORE\inline.h" for now,
|
||||
* include it after Perl_sv_free2 is defined. */
|
||||
-#ifdef DYNAMIC_PERL
|
||||
+#if (PERL_REVISION == 5) && (PERL_VERSION >= 18)
|
||||
# define PERL_NO_INLINE_FUNCTIONS
|
||||
#endif
|
||||
|
||||
@@ -402,14 +402,14 @@ static bool (*Perl_sv_2bool)(pTHX_ SV*);
|
||||
static IV (*Perl_sv_2iv)(pTHX_ SV*);
|
||||
static SV* (*Perl_sv_2mortal)(pTHX_ SV*);
|
||||
# if (PERL_REVISION == 5) && (PERL_VERSION >= 8)
|
||||
-static char* (*Perl_sv_2pv_flags)(pTHX_ SV*, STRLEN*, I32);
|
||||
+static char* (*Perl_sv_2pv_flags)(pTHX_ SV*, STRLEN* const, const U32);
|
||||
static char* (*Perl_sv_2pv_nolen)(pTHX_ SV*);
|
||||
# else
|
||||
static char* (*Perl_sv_2pv)(pTHX_ SV*, STRLEN*);
|
||||
# endif
|
||||
static char* (*Perl_sv_2pvbyte)(pTHX_ SV*, STRLEN*);
|
||||
# if (PERL_REVISION == 5) && (PERL_VERSION >= 32)
|
||||
-static char* (*Perl_sv_2pvbyte_flags)(pTHX_ SV*, STRLEN*, I32);
|
||||
+static char* (*Perl_sv_2pvbyte_flags)(pTHX_ SV*, STRLEN* const, const U32);
|
||||
# endif
|
||||
static SV* (*Perl_sv_bless)(pTHX_ SV*, HV*);
|
||||
# if (PERL_REVISION == 5) && (PERL_VERSION >= 8)
|
||||
@@ -710,7 +710,7 @@ S_POPMARK(pTHX)
|
||||
# endif
|
||||
|
||||
/* perl-5.34 needs Perl_SvTRUE_common; used in SvTRUE_nomg_NN */
|
||||
-# if (PERL_REVISION == 5) && (PERL_VERSION >= 34)
|
||||
+# if (PERL_REVISION == 5) && (PERL_VERSION == 34)
|
||||
PERL_STATIC_INLINE bool
|
||||
Perl_SvTRUE_common(pTHX_ SV * sv, const bool sv_2bool_is_fallback)
|
||||
{
|
||||
@@ -737,7 +737,7 @@ Perl_SvTRUE_common(pTHX_ SV * sv, const bool sv_2bool_is_fallback)
|
||||
# endif
|
||||
|
||||
/* perl-5.32 needs Perl_SvTRUE */
|
||||
-# if (PERL_REVISION == 5) && (PERL_VERSION >= 32)
|
||||
+# if (PERL_REVISION == 5) && (PERL_VERSION == 32)
|
||||
PERL_STATIC_INLINE bool
|
||||
Perl_SvTRUE(pTHX_ SV *sv) {
|
||||
if (!LIKELY(sv))
|
||||
@@ -1649,7 +1649,7 @@ Buffers(...)
|
||||
PPCODE:
|
||||
if (items == 0)
|
||||
{
|
||||
- if (GIMME == G_SCALAR)
|
||||
+ if (GIMME_V == G_SCALAR)
|
||||
{
|
||||
i = 0;
|
||||
FOR_ALL_BUFFERS(vimbuf)
|
||||
@@ -1700,7 +1700,7 @@ Windows(...)
|
||||
PPCODE:
|
||||
if (items == 0)
|
||||
{
|
||||
- if (GIMME == G_SCALAR)
|
||||
+ if (GIMME_V == G_SCALAR)
|
||||
XPUSHs(sv_2mortal(newSViv(win_count())));
|
||||
else
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user