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: Tue, 23 Oct 2018 10:21:07
Message-Id: 1540290051.651f1c3a2a0d2cbe65eeee8548bedad19f04b47d.mgorny@gentoo
1 commit: 651f1c3a2a0d2cbe65eeee8548bedad19f04b47d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 23 10:18:58 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 23 10:20:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=651f1c3a
7
8 app-vim/gentoo-syntax: Bump to 20181023, with copyright updates
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-20181023.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 cf23411f58f..c4cd26a2644 100644
18 --- a/app-vim/gentoo-syntax/Manifest
19 +++ b/app-vim/gentoo-syntax/Manifest
20 @@ -1 +1,2 @@
21 DIST gentoo-syntax-20180821.tar.bz2 18361 BLAKE2B 4134fd0a3d75d86f3984f135021063b68588083f191efcb94d7b599460703d6eb501bad7de2aa0cc9cdc4447d73b83e4b36cee2acdd113e7d0a879e1e864e2fb SHA512 09c70ded667b489e03f02e0e72fca32f13a40501a5e319b387967e75f616c7f3dc44ceab3a46b776a509263f58668223eb85d51ba58ca3fbc48e4c05d7345dfc
22 +DIST gentoo-syntax-20181023.tar.bz2 18299 BLAKE2B ea037425ab00b05e4a52f943817fb264492793c842b6c9250450ab715fafebc55d0b5b95ff49945f62258f2dc70f357eeef3a5d908592c995cdc6e940f2f15af SHA512 a6bd592dd46ad80a4126321826dbbc4c130624027e7e71f0ea87fb164963e980e3ab3e1db1e87ee0ddad602f2ea2e9e7d955a0016c00eb8aef4c01c29057b737
23
24 diff --git a/app-vim/gentoo-syntax/gentoo-syntax-20181023.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-20181023.ebuild
25 new file mode 100644
26 index 00000000000..c40de243f4b
27 --- /dev/null
28 +++ b/app-vim/gentoo-syntax/gentoo-syntax-20181023.ebuild
29 @@ -0,0 +1,42 @@
30 +# Copyright 1999-2018 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
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 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~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 +}