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, 07 Oct 2020 10:16:55
Message-Id: 1602065809.7c3cace17361c5770ac60fe386609125a48fcf43.mgorny@gentoo
1 commit: 7c3cace17361c5770ac60fe386609125a48fcf43
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 7 10:12:23 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 7 10:16:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c3cace1
7
8 app-vim/gentoo-syntax: Bump to 20201007
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-20201007.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 020f3439ea2..05ad58ebd74 100644
18 --- a/app-vim/gentoo-syntax/Manifest
19 +++ b/app-vim/gentoo-syntax/Manifest
20 @@ -1 +1,2 @@
21 DIST gentoo-syntax-20200120.tar.bz2 18593 BLAKE2B c29dd3b3896bdb78e5c07b40474434c5ba6fa8b3a89f8ec237136d0474e8eaace8a72c7e3974ff63eaa24d3e57a1e61785bfc7889a93f7263ef9387caa651936 SHA512 ab57707b4a44f33c085a39eb745ca206312d84ca49680e24a462eb75d65cc37694a545f4a31b4ee2919d0f6b30276ce25f6caa7e20782511c7534bf2319e8a4f
22 +DIST gentoo-syntax-20201007.tar.bz2 18645 BLAKE2B 5ec28f03dde8d0be7dc24b337fabc02b0fbd53f4a97e4f22b9d042c0d3631f1be3a1e6e7d270b39e43688eb414f04525014acc3ac6e450dc9737341471fc15a7 SHA512 7b5554fdc68616177c906f6185c7c0843a75aac14ed28516d86ab7a37f67c5934e84c15b88c23e39c34665c1a3bb43deeff53e09ec665a4b4822309f77110ca9
23
24 diff --git a/app-vim/gentoo-syntax/gentoo-syntax-20201007.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-20201007.ebuild
25 new file mode 100644
26 index 00000000000..4651f7723a9
27 --- /dev/null
28 +++ b/app-vim/gentoo-syntax/gentoo-syntax-20201007.ebuild
29 @@ -0,0 +1,42 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit vim-plugin
36 +
37 +DESCRIPTION="vim plugin: Gentoo and Portage syntax highlighting"
38 +HOMEPAGE="https://github.com/gentoo/gentoo-syntax"
39 +SRC_URI="https://gitweb.gentoo.org/proj/gentoo-syntax.git/snapshot/${P}.tar.bz2"
40 +
41 +LICENSE="vim"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
44 +IUSE="ignore-glep31"
45 +
46 +VIM_PLUGIN_HELPFILES="gentoo-syntax"
47 +VIM_PLUGIN_MESSAGES="filetype"
48 +
49 +src_prepare() {
50 + default
51 + if use ignore-glep31 ; then
52 + for f in ftplugin/*.vim ; do
53 + ebegin "Removing UTF-8 rules from ${f} ..."
54 + sed -i -e 's~\(setlocal fileencoding=utf-8\)~" \1~' ${f} \
55 + || die "waah! bad sed voodoo. need more goats."
56 + eend $?
57 + done
58 + fi
59 +}
60 +
61 +pkg_postinst() {
62 + vim-plugin_pkg_postinst
63 +
64 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
65 + if use ignore-glep31 1>/dev/null ; then
66 + ewarn "You have chosen to disable the rules which ensure GLEP 31"
67 + ewarn "compliance. When editing ebuilds, please make sure you get"
68 + ewarn "the character set correct."
69 + fi
70 + fi
71 +}