Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-vim/gentoo-syntax/
Date: Sat, 11 Sep 2021 14:13:30
Message-Id: 1631369591.d9a9231536e7be884c1a8cb3b276180cde3cc64d.floppym@gentoo
1 commit: d9a9231536e7be884c1a8cb3b276180cde3cc64d
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 11 14:13:11 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 11 14:13:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9a92315
7
8 app-vim/gentoo-syntax: add 20210911
9
10 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
11
12 app-vim/gentoo-syntax/Manifest | 1 +
13 .../gentoo-syntax/gentoo-syntax-20210911.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 e7a0493c614..8192b2f72e1 100644
18 --- a/app-vim/gentoo-syntax/Manifest
19 +++ b/app-vim/gentoo-syntax/Manifest
20 @@ -1,3 +1,4 @@
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 +DIST gentoo-syntax-20210911.tar.bz2 18865 BLAKE2B 14dfe4b1eaab39a7de11c9b2e00c6a39385cd81d5717522dbac1f9ff265047c9ded745c335cca88413f6ad622f2858d996bdb39c5f4b1b4796ef7740c48c5f68 SHA512 b7ac7aba50c086e1e550692426bb38dbca5bf4770c148ff4989686ef043a2d990710bec782f1baba582ff67da3b3db007a4dbc6dec16f69830312205f1a45d3c
25
26 diff --git a/app-vim/gentoo-syntax/gentoo-syntax-20210911.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-20210911.ebuild
27 new file mode 100644
28 index 00000000000..72f25ef766b
29 --- /dev/null
30 +++ b/app-vim/gentoo-syntax/gentoo-syntax-20210911.ebuild
31 @@ -0,0 +1,42 @@
32 +# Copyright 1999-2021 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 +}