app-vim/editorconfig-vim: Version bump to 1.0.0_beta
authorPatrick McLean <patrick.mclean@sony.com>
Mon, 13 Jan 2020 21:39:36 +0000 (13:39 -0800)
committerPatrick McLean <chutzpah@gentoo.org>
Tue, 14 Jan 2020 00:06:02 +0000 (16:06 -0800)
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
app-vim/editorconfig-vim/Manifest
app-vim/editorconfig-vim/editorconfig-vim-1.0.0_beta.ebuild [new file with mode: 0644]
app-vim/editorconfig-vim/files/editorconfig-vim-1.0.0_beta-wildcard-slash.patch [new file with mode: 0644]

index c8518d7e7788b426acb084337dcc2c70d564c59e..5e8f5599689723d4ce70276bbf50cd280a84e027 100644 (file)
@@ -1 +1,2 @@
 DIST editorconfig-vim-0.3.3.tar.gz 35395 BLAKE2B a7b65c1472024017dd408e5c4ac5048004d0bd55f44c7cfba49b5973cb445125ed89cc3d4363fb902a4c5fbb507f3ee5ed0ca48aece3fb6915e643bae0dbf70c SHA512 2dd968cf6bb162db8e6242ffb60cc61fb05a8042804b6b46b9f9cd35be968f83b473f04797e47c5cff11d7c052ff523bf8ba1d568992d44b72b97b54a81425a1
+DIST editorconfig-vim-1.0.0-beta.tar.gz 31519 BLAKE2B 2d5e8e55e8dccc0b45453b8da9ecad80867a84d1ea20146581886f793c093c201521a7d1d4451122ae441d30f58acec28d29aa20da9de737b5beb7f44d55c0ed SHA512 159e3ca32a7ffe71853ba62a14d0469310b81345b0e704dd6a9f42c56f6f6b9a3f63502ccabcf43a15443acf4acefdaf078063ae747f49315b89f5518d7f9816
diff --git a/app-vim/editorconfig-vim/editorconfig-vim-1.0.0_beta.ebuild b/app-vim/editorconfig-vim/editorconfig-vim-1.0.0_beta.ebuild
new file mode 100644 (file)
index 0000000..5bf01ab
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils vim-plugin
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="vim plugin: Support EditorConfig files "
+HOMEPAGE="https://editorconfig.org/"
+SRC_URI="https://github.com/${PN%-vim}/${PN}/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD-2 PSF-2"
+KEYWORDS="~amd64 ~x86"
+
+VIM_PLUGIN_HELPFILES="${PN%-vim}.txt"
+
+PATCHES=(
+       "${FILESDIR}/editorconfig-vim-1.0.0_beta-wildcard-slash.patch"
+)
+
+src_prepare() {
+       default
+
+       rm LICENSE LICENSE.PSF \
+               mkzip.sh .editorconfig \
+               .git{ignore,modules} \
+               .{travis,appveyor}.yml || die
+}
+
+src_install() {
+       # we don't want to install the tests
+       rm -r tests || die
+
+       vim-plugin_src_install
+}
diff --git a/app-vim/editorconfig-vim/files/editorconfig-vim-1.0.0_beta-wildcard-slash.patch b/app-vim/editorconfig-vim/files/editorconfig-vim-1.0.0_beta-wildcard-slash.patch
new file mode 100644 (file)
index 0000000..d3dc812
--- /dev/null
@@ -0,0 +1,22 @@
+From 8b533e933f1e4904daae72e9d84f939cd18ffca8 Mon Sep 17 00:00:00 2001
+From: Chris White <cxwembedded@gmail.com>
+Date: Sat, 20 Jul 2019 13:14:57 -0400
+Subject: [PATCH] '?' wildcard does not match '/' (fixes #124)
+
+---
+ autoload/editorconfig_core/fnmatch.vim | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/autoload/editorconfig_core/fnmatch.vim b/autoload/editorconfig_core/fnmatch.vim
+index 14833bf0..6f60db5d 100644
+--- a/autoload/editorconfig_core/fnmatch.vim
++++ b/autoload/editorconfig_core/fnmatch.vim
+@@ -199,7 +199,7 @@ function! editorconfig_core#fnmatch#translate(pat, ...)
+             endif
+         elseif l:current_char ==# '?'
+-            let l:result .= '\_.'
++            let l:result .= '\_[^/]'
+         elseif l:current_char ==# '['
+             if l:in_brackets