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: Mon, 20 Jan 2020 08:16:19
Message-Id: 1579508167.55fc7d6d2de04d96f6ae1145733d6941609f98a6.mgorny@gentoo
1 commit: 55fc7d6d2de04d96f6ae1145733d6941609f98a6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 20 05:43:13 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 20 08:16:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55fc7d6d
7
8 app-vim/gentoo-syntax: Bump to 20200120
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-20200120.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 9529453f751..e325b2f30cb 100644
18 --- a/app-vim/gentoo-syntax/Manifest
19 +++ b/app-vim/gentoo-syntax/Manifest
20 @@ -1,2 +1,3 @@
21 DIST gentoo-syntax-20190609.tar.bz2 18401 BLAKE2B db738540fc85d8edd0269ade33e174db08b9231237f1138da9a3f6ecff7c188a041b312975629be652a5384d0c914ad8d7a3ac5ef14670e4bc0859fbdf3dcbc7 SHA512 70fbf6e37eee2e5b007eb59b76492f41046884a8310a6074ca5fbab666ec74d46ab3e57bbf2ae784db2e17bfd1c4801b18b71cf37f746e02ff640de1f6821ec7
22 DIST gentoo-syntax-20191127.tar.bz2 18635 BLAKE2B 79db829602df5795e32c44db71e28cfcda06ef014e9d5e5cf47d6f7fcb0b054c46caef1bb594c4fceae318df8a8cd0c6a619771ae5438eb21deed530842ce53d SHA512 654b69cf55719b9c254c376364f404c393189ec70d7b8a9284349774e00118fb636dbfefa86eb57220a49a5a7324e9f0484879d69afb199bb1c8ae7f0b5e591e
23 +DIST gentoo-syntax-20200120.tar.bz2 18593 BLAKE2B c29dd3b3896bdb78e5c07b40474434c5ba6fa8b3a89f8ec237136d0474e8eaace8a72c7e3974ff63eaa24d3e57a1e61785bfc7889a93f7263ef9387caa651936 SHA512 ab57707b4a44f33c085a39eb745ca206312d84ca49680e24a462eb75d65cc37694a545f4a31b4ee2919d0f6b30276ce25f6caa7e20782511c7534bf2319e8a4f
24
25 diff --git a/app-vim/gentoo-syntax/gentoo-syntax-20200120.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-20200120.ebuild
26 new file mode 100644
27 index 00000000000..8390f974fc5
28 --- /dev/null
29 +++ b/app-vim/gentoo-syntax/gentoo-syntax-20200120.ebuild
30 @@ -0,0 +1,42 @@
31 +# Copyright 1999-2020 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 ~sh ~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"
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 +}