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, 23 Feb 2022 17:04:19
Message-Id: 1645635837.b986133661fa4633ba2c807d89091ec32c378587.mgorny@gentoo
1 commit: b986133661fa4633ba2c807d89091ec32c378587
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 23 16:26:57 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 23 17:03:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9861336
7
8 app-vim/gentoo-syntax: Bump to v1
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-1.ebuild | 44 ++++++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/app-vim/gentoo-syntax/Manifest b/app-vim/gentoo-syntax/Manifest
17 index 48127840a21d..33e8f637344c 100644
18 --- a/app-vim/gentoo-syntax/Manifest
19 +++ b/app-vim/gentoo-syntax/Manifest
20 @@ -1,2 +1,3 @@
21 +DIST gentoo-syntax-1.tar.bz2 20223 BLAKE2B 846e07354660b4859cc4131a9fbf4f78d3a2ddeda60fc6a3687b649788a52725602dcd22befa9ab9fe88b173eab1470e569076d587326935efaf40d3aaba5b57 SHA512 1e4d947f0edbf6bd24142d683944f30d43b7e0ca86b90311f2e80516d299d9a634a9842cdc90d98a43e7a693f0dd29b3ff8048256bc3fe688591cc2b84808289
22 DIST gentoo-syntax-20211208.tar.bz2 18844 BLAKE2B 52e7025d46f5101f2e1c44afcbf3cba0756a1ec9c626f7af312bb5bbae518645c06c94bfc48822a721e2e3c1ed5f61376e88a074a9688cf4b5b3c352a99c87c9 SHA512 f1cfe2af440f7ed3042cbaa16558cb6df8038f439a2c3e7067f81751a37098854a3afb1653c7c3656ef85ad1874d2db9271429b92a25f494da6ee5c68819e631
23 DIST gentoo-syntax-20220220.tar.bz2 19433 BLAKE2B 8f7fbbb56e41f4d682c824deb980035441195785f9ce80fd45808b55cf900c8e0455b5c670f82b1fc639c052792b78de5f0be1142eab853b0cabbd44c6ed0776 SHA512 4b515ca7936a16279c48310d1fa0f58979e35b1d84a2971bdcf4a004784efa3de99619851ac9da5ee0ee77a1f65eb28550d01013cffebd45e39fb70c0136ba12
24
25 diff --git a/app-vim/gentoo-syntax/gentoo-syntax-1.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-1.ebuild
26 new file mode 100644
27 index 000000000000..3cc000eb8ff3
28 --- /dev/null
29 +++ b/app-vim/gentoo-syntax/gentoo-syntax-1.ebuild
30 @@ -0,0 +1,44 @@
31 +# Copyright 1999-2022 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 +MY_P=${P/0.}
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/${MY_P}.tar.bz2"
42 +S=${WORKDIR}/${MY_P}
43 +
44 +LICENSE="vim"
45 +SLOT="0"
46 +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"
47 +IUSE="ignore-glep31"
48 +
49 +VIM_PLUGIN_HELPFILES="gentoo-syntax"
50 +VIM_PLUGIN_MESSAGES="filetype"
51 +
52 +src_prepare() {
53 + default
54 + if use ignore-glep31 ; then
55 + for f in ftplugin/*.vim ; do
56 + ebegin "Removing UTF-8 rules from ${f} ..."
57 + sed -i -e 's~\(setlocal fileencoding=utf-8\)~" \1~' ${f} \
58 + || die "waah! bad sed voodoo. need more goats."
59 + eend $?
60 + done
61 + fi
62 +}
63 +
64 +pkg_postinst() {
65 + vim-plugin_pkg_postinst
66 +
67 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
68 + if use ignore-glep31 1>/dev/null ; then
69 + ewarn "You have chosen to disable the rules which ensure GLEP 31"
70 + ewarn "compliance. When editing ebuilds, please make sure you get"
71 + ewarn "the character set correct."
72 + fi
73 + fi
74 +}