1 |
commit: 9fd4df4d45cf72d153bd36aacbf333b42fc6c5f5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 16 15:31:27 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 16 15:32:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fd4df4d |
7 |
|
8 |
app-vim/gentoo-syntax: Bump to 20210716 |
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-20210716.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 686b81778ce..db9e26b764a 100644 |
18 |
--- a/app-vim/gentoo-syntax/Manifest |
19 |
+++ b/app-vim/gentoo-syntax/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST gentoo-syntax-20210428.tar.bz2 18737 BLAKE2B 437bf954e2bca61e3f612761a056de3c248d8f1f7afd3d07fab01770b1ff6e0ed8adb7222a61683770f369392d2c6f52ec5594b946c9e7a69d1cc1f6033caa5b SHA512 db64f53e0c6dd0c9b7fa9142422e4b24f037e9fb012235756443556a20a2bbce9c0b712a5375f482d3caf83760bc96239afc17a1a4f2ad89e9a6166063c6af68 |
22 |
+DIST gentoo-syntax-20210716.tar.bz2 18872 BLAKE2B faef2f356331c8560cb8e8014ad1a32a299f94fe8d05be499955cb78f1537f85abe44864b782df34244c3e606443b2146bd58a55047b23d327a548a436e818dc SHA512 f1a374fb5cf05563ea8cafa2209c9e8ba62bc072cac99202f486c3f7412cbb63432a33830e285ba706f8f73ee7f7bfd4e0b30bfad6feee1643e862b86495b82e |
23 |
|
24 |
diff --git a/app-vim/gentoo-syntax/gentoo-syntax-20210716.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-20210716.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..72f25ef766b |
27 |
--- /dev/null |
28 |
+++ b/app-vim/gentoo-syntax/gentoo-syntax-20210716.ebuild |
29 |
@@ -0,0 +1,42 @@ |
30 |
+# Copyright 1999-2021 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 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~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 |
+} |