Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-vim/openbsd-style/
Date: Mon, 19 Jul 2021 08:11:07
Message-Id: 1626682227.a12a430a0268368d72a7f68b7224b7601bbaae92.cybertailor@gentoo
1 commit: a12a430a0268368d72a7f68b7224b7601bbaae92
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Mon Jul 19 08:06:30 2021 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Mon Jul 19 08:10:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a12a430a
7
8 app-vim/openbsd-style: initial import
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 app-vim/openbsd-style/Manifest | 1 +
13 app-vim/openbsd-style/metadata.xml | 8 ++++++++
14 app-vim/openbsd-style/openbsd-style-1.1.ebuild | 27 ++++++++++++++++++++++++++
15 3 files changed, 36 insertions(+)
16
17 diff --git a/app-vim/openbsd-style/Manifest b/app-vim/openbsd-style/Manifest
18 new file mode 100644
19 index 000000000..f83d3f690
20 --- /dev/null
21 +++ b/app-vim/openbsd-style/Manifest
22 @@ -0,0 +1 @@
23 +DIST openbsd-style-1.1.vim 2669 BLAKE2B 5b2bcca3024c1a743ed0be42510f47340b4f57f7c5866933b01adc1399e40210676c7b8b4631fbdf59231cb9af9c2443af2915b982eb3fa5fc5a03c2b207ee81 SHA512 55f3fd84ae2f3d86b84756165da02d56f221baa81eb42e1df8e7a0e3f243b498e95d343c9ed04fc21db89bc676fa671eeaf424587a77aeef421a62db0e0ed41a
24
25 diff --git a/app-vim/openbsd-style/metadata.xml b/app-vim/openbsd-style/metadata.xml
26 new file mode 100644
27 index 000000000..46ff3593d
28 --- /dev/null
29 +++ b/app-vim/openbsd-style/metadata.xml
30 @@ -0,0 +1,8 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>cyber@×××××.in</email>
36 + <name>Anna</name>
37 + </maintainer>
38 +</pkgmetadata>
39
40 diff --git a/app-vim/openbsd-style/openbsd-style-1.1.ebuild b/app-vim/openbsd-style/openbsd-style-1.1.ebuild
41 new file mode 100644
42 index 000000000..925c5c636
43 --- /dev/null
44 +++ b/app-vim/openbsd-style/openbsd-style-1.1.ebuild
45 @@ -0,0 +1,27 @@
46 +# Copyright 2021 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=7
50 +
51 +VIM_PLUGIN_VIM_VERSION="7.1"
52 +inherit vim-plugin
53 +
54 +MY_PN=${PN%-style}
55 +DESCRIPTION="vim plugin: indent code according to the OpenBSD and FreeBSD style(9)"
56 +HOMEPAGE="https://wiki.freebsd.org/DevTools"
57 +SRC_URI="https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/editors/vim/files/${MY_PN}.vim?rev=${PV} -> ${P}.vim"
58 +
59 +LICENSE="BSD-2"
60 +SLOT="0"
61 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
62 +
63 +VIM_PLUGIN_HELPTEXT=\
64 +"This plugin registers OpenBSD_Style() macro for changing a buffer's
65 +indentation rules but does not change the indentation of existing code.
66 +
67 +To activate it, simply type \\f in normal mode."
68 +
69 +src_unpack() {
70 + mkdir -p "${S}"/syntax || die
71 + cp "${DISTDIR}"/${P}.vim "${S}"/syntax/${MY_PN}.vim || die
72 +}