1 |
commit: 6788cd2ffe4a0f17dadfe42246337b8d8875d82e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 19:08:35 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 19:08:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6788cd2f |
7 |
|
8 |
app-vim/gentoo-syntax: Bump to v2 |
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-2.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 ee91cd5b0e90..4323314ca39e 100644 |
18 |
--- a/app-vim/gentoo-syntax/Manifest |
19 |
+++ b/app-vim/gentoo-syntax/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST gentoo-syntax-1.tar.bz2 20223 BLAKE2B 846e07354660b4859cc4131a9fbf4f78d3a2ddeda60fc6a3687b649788a52725602dcd22befa9ab9fe88b173eab1470e569076d587326935efaf40d3aaba5b57 SHA512 1e4d947f0edbf6bd24142d683944f30d43b7e0ca86b90311f2e80516d299d9a634a9842cdc90d98a43e7a693f0dd29b3ff8048256bc3fe688591cc2b84808289 |
22 |
+DIST gentoo-syntax-2.tar.bz2 20302 BLAKE2B fa15fe5e8ef547dfa402b1742df3d6d38231528bcf6c6836e4d31e81ec2bce55ffa8c10400823c97688304f9dc6324ed3d257939c3077eb29a2fc3c191295604 SHA512 30e8e374382dc736febd1ee8031a7ccc14dfc61feade1815e3366988658189ac8670ff26532436ae608ff66c828e2de7327d0b39db37967206bcd9f418d26ea2 |
23 |
|
24 |
diff --git a/app-vim/gentoo-syntax/gentoo-syntax-2.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..cc256f13f274 |
27 |
--- /dev/null |
28 |
+++ b/app-vim/gentoo-syntax/gentoo-syntax-2.ebuild |
29 |
@@ -0,0 +1,42 @@ |
30 |
+# Copyright 1999-2022 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 |
+} |