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: Sun, 20 Feb 2022 16:05:38
Message-Id: 1645373132.9f667bf96013b2edac473db335c62e28590ab959.mgorny@gentoo
1 commit: 9f667bf96013b2edac473db335c62e28590ab959
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 20 16:04:10 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 16:05:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f667bf9
7
8 app-vim/gentoo-syntax: Bump to 20220220
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-20220220.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 c17f4e323256..5fb727bf38ec 100644
18 --- a/app-vim/gentoo-syntax/Manifest
19 +++ b/app-vim/gentoo-syntax/Manifest
20 @@ -1,3 +1,4 @@
21 DIST gentoo-syntax-20211208.tar.bz2 18844 BLAKE2B 52e7025d46f5101f2e1c44afcbf3cba0756a1ec9c626f7af312bb5bbae518645c06c94bfc48822a721e2e3c1ed5f61376e88a074a9688cf4b5b3c352a99c87c9 SHA512 f1cfe2af440f7ed3042cbaa16558cb6df8038f439a2c3e7067f81751a37098854a3afb1653c7c3656ef85ad1874d2db9271429b92a25f494da6ee5c68819e631
22 DIST gentoo-syntax-20220126.tar.bz2 19267 BLAKE2B c18f50e29f4aa75e4cc8d629b5086de3cef629b99454389bfe5eecbc61288e4344921360a2d64ea021be7f0269178e6348abf0d1481e0fc8b88e16a16fb73215 SHA512 bbedf2bf98eaf7b80abac2e6a66dcbba2f5024f1a4327535e5d956c4c034fa9be0395a36784a576caeaee81df27eb153687238388bfc2aeaf210498d8377c99d
23 DIST gentoo-syntax-20220206.tar.bz2 19354 BLAKE2B e0eb286ec211d3cbdf9f5466b89cdd9483ee1ed66b282243d9638b60aeee1e01c1d9e8cb6d081998db9ec0e0e85ceabe4000a77c14e25e112d91d5a5ca15fcc9 SHA512 931bdcf2ccb8c98a1a547ecb0970af609b4f8d9f0040a6e389151a9cb3d16f227d45d00f49a760616f2f8e2e666b1cb56699e60f0f663bb5a5e6c8143a9fbe06
24 +DIST gentoo-syntax-20220220.tar.bz2 19433 BLAKE2B 8f7fbbb56e41f4d682c824deb980035441195785f9ce80fd45808b55cf900c8e0455b5c670f82b1fc639c052792b78de5f0be1142eab853b0cabbd44c6ed0776 SHA512 4b515ca7936a16279c48310d1fa0f58979e35b1d84a2971bdcf4a004784efa3de99619851ac9da5ee0ee77a1f65eb28550d01013cffebd45e39fb70c0136ba12
25
26 diff --git a/app-vim/gentoo-syntax/gentoo-syntax-20220220.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-20220220.ebuild
27 new file mode 100644
28 index 000000000000..cc256f13f274
29 --- /dev/null
30 +++ b/app-vim/gentoo-syntax/gentoo-syntax-20220220.ebuild
31 @@ -0,0 +1,42 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit vim-plugin
38 +
39 +DESCRIPTION="vim plugin: Gentoo and Portage syntax highlighting"
40 +HOMEPAGE="https://github.com/gentoo/gentoo-syntax"
41 +SRC_URI="https://gitweb.gentoo.org/proj/gentoo-syntax.git/snapshot/${P}.tar.bz2"
42 +
43 +LICENSE="vim"
44 +SLOT="0"
45 +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"
46 +IUSE="ignore-glep31"
47 +
48 +VIM_PLUGIN_HELPFILES="gentoo-syntax"
49 +VIM_PLUGIN_MESSAGES="filetype"
50 +
51 +src_prepare() {
52 + default
53 + if use ignore-glep31 ; then
54 + for f in ftplugin/*.vim ; do
55 + ebegin "Removing UTF-8 rules from ${f} ..."
56 + sed -i -e 's~\(setlocal fileencoding=utf-8\)~" \1~' ${f} \
57 + || die "waah! bad sed voodoo. need more goats."
58 + eend $?
59 + done
60 + fi
61 +}
62 +
63 +pkg_postinst() {
64 + vim-plugin_pkg_postinst
65 +
66 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
67 + if use ignore-glep31 1>/dev/null ; then
68 + ewarn "You have chosen to disable the rules which ensure GLEP 31"
69 + ewarn "compliance. When editing ebuilds, please make sure you get"
70 + ewarn "the character set correct."
71 + fi
72 + fi
73 +}