Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-vim/gentoo-syntax/
Date: Wed, 01 Sep 2021 16:24:50
Message-Id: 1630513364.40c016ea3658637dd245d3099d5b21c9621fbd22.mgorny@gentoo
1 commit: 40c016ea3658637dd245d3099d5b21c9621fbd22
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 1 16:22:44 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 1 16:22:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40c016ea
7
8 app-vim/gentoo-syntax: Bump to 20210901
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-vim/gentoo-syntax/Manifest | 1 +
13 .../gentoo-syntax/gentoo-syntax-20210901.ebuild | 42 ++++++++++++++++++++++
14 2 files changed, 43 insertions(+)
15
16 diff --git a/app-vim/gentoo-syntax/Manifest b/app-vim/gentoo-syntax/Manifest
17 index abf01dfad4f..e7a0493c614 100644
18 --- a/app-vim/gentoo-syntax/Manifest
19 +++ b/app-vim/gentoo-syntax/Manifest
20 @@ -1,2 +1,3 @@
21 DIST gentoo-syntax-20210716.tar.bz2 18872 BLAKE2B faef2f356331c8560cb8e8014ad1a32a299f94fe8d05be499955cb78f1537f85abe44864b782df34244c3e606443b2146bd58a55047b23d327a548a436e818dc SHA512 f1a374fb5cf05563ea8cafa2209c9e8ba62bc072cac99202f486c3f7412cbb63432a33830e285ba706f8f73ee7f7bfd4e0b30bfad6feee1643e862b86495b82e
22 DIST gentoo-syntax-20210828.tar.bz2 18872 BLAKE2B bd3e152718b921aef8ce93e2d3e66d6195ab01801ea60987f62f9cb541fb726c2d552b6ec341943c1ca0e0cc1419c1cb75266e653b8bc958c8103855688f3d54 SHA512 e148c42b3e3281780d4f23ff1e464ba3c8404b3a4ba566a1a685c8364b6dd174830b489d5c7b561c3e30375fd9f510cfbf56d92f81c3f8fec8ab792ab48aa62a
23 +DIST gentoo-syntax-20210901.tar.bz2 18876 BLAKE2B ef3913d8e631903003f469a8500c24f751ab70c17b1718cb9cd06b1e81b2dc7c07ed686b03be1da05afd5c238b8fddf67d35a63e7f381176be9340371cdc5dc9 SHA512 40c4f8522ce90bb529fd1cb050d1dd50010547006e385827980559a9febaa78f6d29b4798f6580a0c00de32db21a5528a051c2906d9dec95b62b992ea4875afe
24
25 diff --git a/app-vim/gentoo-syntax/gentoo-syntax-20210901.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-20210901.ebuild
26 new file mode 100644
27 index 00000000000..72f25ef766b
28 --- /dev/null
29 +++ b/app-vim/gentoo-syntax/gentoo-syntax-20210901.ebuild
30 @@ -0,0 +1,42 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit vim-plugin
37 +
38 +DESCRIPTION="vim plugin: Gentoo and Portage syntax highlighting"
39 +HOMEPAGE="https://github.com/gentoo/gentoo-syntax"
40 +SRC_URI="https://gitweb.gentoo.org/proj/gentoo-syntax.git/snapshot/${P}.tar.bz2"
41 +
42 +LICENSE="vim"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="ignore-glep31"
46 +
47 +VIM_PLUGIN_HELPFILES="gentoo-syntax"
48 +VIM_PLUGIN_MESSAGES="filetype"
49 +
50 +src_prepare() {
51 + default
52 + if use ignore-glep31 ; then
53 + for f in ftplugin/*.vim ; do
54 + ebegin "Removing UTF-8 rules from ${f} ..."
55 + sed -i -e 's~\(setlocal fileencoding=utf-8\)~" \1~' ${f} \
56 + || die "waah! bad sed voodoo. need more goats."
57 + eend $?
58 + done
59 + fi
60 +}
61 +
62 +pkg_postinst() {
63 + vim-plugin_pkg_postinst
64 +
65 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
66 + if use ignore-glep31 1>/dev/null ; then
67 + ewarn "You have chosen to disable the rules which ensure GLEP 31"
68 + ewarn "compliance. When editing ebuilds, please make sure you get"
69 + ewarn "the character set correct."
70 + fi
71 + fi
72 +}