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 Feb 2023 05:07:06
Message-Id: 1675227859.3b07427720a337d57e6ed5126d6838294e6b9bb8.mgorny@gentoo
1 commit: 3b07427720a337d57e6ed5126d6838294e6b9bb8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 1 05:04:19 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 05:04:19 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b074277
7
8 app-vim/gentoo-syntax: Bump to v5
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-vim/gentoo-syntax/Manifest | 1 +
13 app-vim/gentoo-syntax/gentoo-syntax-5.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 cd0c2bea7926..ca6fab4f1d70 100644
18 --- a/app-vim/gentoo-syntax/Manifest
19 +++ b/app-vim/gentoo-syntax/Manifest
20 @@ -1,2 +1,3 @@
21 DIST gentoo-syntax-2.tar.bz2 20302 BLAKE2B fa15fe5e8ef547dfa402b1742df3d6d38231528bcf6c6836e4d31e81ec2bce55ffa8c10400823c97688304f9dc6324ed3d257939c3077eb29a2fc3c191295604 SHA512 30e8e374382dc736febd1ee8031a7ccc14dfc61feade1815e3366988658189ac8670ff26532436ae608ff66c828e2de7327d0b39db37967206bcd9f418d26ea2
22 DIST gentoo-syntax-4.tar.bz2 20344 BLAKE2B 3e9b75c1e9e395e04547a95bb6abd17e7404389ccc5a47d9cf9ca2973a55666ce17607c72fbd15a9b167033bf0f7d1447817b9346d56e2ddbd48c2acbdfdcffa SHA512 4aec2c40c4f582f697cc11ac73fe9301ce25bb38f240cc3c9e426247a4bd38fb83aa05407b65ac68313793735eafc71a3b1b55e0db4301941afe7c720a51bc85
23 +DIST gentoo-syntax-5.tar.bz2 20386 BLAKE2B 8f5ba5bdf4a5caff400d4af0f0e88b2bfe36ab550a4cb6045dd2c2b00a00fc3a95fd6394eabf0316fb36bdb454c774fd3a4e86818230bbab5c54996c29fae581 SHA512 e57d0b9eeff27ce591ce3f6a759b18f08a272e44d59063dd34a6543ce909e03509c8503f92d8c67aba092944e549ff43672c3ebc9f97100e84abeba4a7a322f6
24
25 diff --git a/app-vim/gentoo-syntax/gentoo-syntax-5.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-5.ebuild
26 new file mode 100644
27 index 000000000000..c560022b6db4
28 --- /dev/null
29 +++ b/app-vim/gentoo-syntax/gentoo-syntax-5.ebuild
30 @@ -0,0 +1,42 @@
31 +# Copyright 1999-2023 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 ~loong ~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 +}