1 |
commit: 4313ad6cc6cec0e7a97f02776ecfc1ce3c99bbc9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 15 08:30:07 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 15 08:32:41 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4313ad6c |
7 |
|
8 |
app-vim/gentoo-syntax: Bump to v10 |
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-10.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 508af9ec6d14..564a07c272f2 100644 |
18 |
--- a/app-vim/gentoo-syntax/Manifest |
19 |
+++ b/app-vim/gentoo-syntax/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
+DIST gentoo-syntax-10.tar.bz2 20945 BLAKE2B 7e081ae2d1498fc0b0616c750881c6f47cbae21d88d876c33d54bae0ff32f5eca44a004e31714fa4af0d351656c72df9e69f33ff0f97e6a2c59d835aacbd44a6 SHA512 790e24ac5427b50f1cd332b895e477bc9715a681cf8c21aaaff722151e6245b45fb33f49465258280eab6a903f3b0c8a8d40b935f44942b6b93f5c0d3c7c420a |
22 |
DIST gentoo-syntax-4.tar.bz2 20344 BLAKE2B 3e9b75c1e9e395e04547a95bb6abd17e7404389ccc5a47d9cf9ca2973a55666ce17607c72fbd15a9b167033bf0f7d1447817b9346d56e2ddbd48c2acbdfdcffa SHA512 4aec2c40c4f582f697cc11ac73fe9301ce25bb38f240cc3c9e426247a4bd38fb83aa05407b65ac68313793735eafc71a3b1b55e0db4301941afe7c720a51bc85 |
23 |
DIST gentoo-syntax-5.tar.bz2 20386 BLAKE2B 8f5ba5bdf4a5caff400d4af0f0e88b2bfe36ab550a4cb6045dd2c2b00a00fc3a95fd6394eabf0316fb36bdb454c774fd3a4e86818230bbab5c54996c29fae581 SHA512 e57d0b9eeff27ce591ce3f6a759b18f08a272e44d59063dd34a6543ce909e03509c8503f92d8c67aba092944e549ff43672c3ebc9f97100e84abeba4a7a322f6 |
24 |
DIST gentoo-syntax-6.tar.bz2 21077 BLAKE2B 76d3cfff7eb8c6ea393770126eef8a39df010292edd95bf2599e0a341cd4d7399b17c27a1d3dfdc420268c9c3f14b8cd477b325c7b9525c547c5ae1b864061c3 SHA512 97792795d42f3fdb42bf8d1d2b531e47bbed463f14d2acdb1e801b96c980829dfd2a858f7b46d48892152b36f22ec0e478f6bb7ee374cdd3c69d7316641aa307 |
25 |
|
26 |
diff --git a/app-vim/gentoo-syntax/gentoo-syntax-10.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-10.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..c560022b6db4 |
29 |
--- /dev/null |
30 |
+++ b/app-vim/gentoo-syntax/gentoo-syntax-10.ebuild |
31 |
@@ -0,0 +1,42 @@ |
32 |
+# Copyright 1999-2023 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 ~loong ~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 |
+} |